OpDetWaveformMixer.h
Go to the documentation of this file.
1 /**
2  * \file OpDetWaveformMixer.h
3  *
4  * \ingroup DataOverlay
5  *
6  * \brief Mixer function for putting together two raw digit collections
7  *
8  * @author wketchum
9  */
10 
11 /** \addtogroup DataOverlay
12 
13  @{*/
14 #ifndef OVERLAY_DATAOVERLAY_OPDETWAVEFORMMIXER_H
15 #define OVERLAY_DATAOVERLAY_OPDETWAVEFORMMIXER_H
16 
17 #include <vector>
18 #include <string>
19 #include <unordered_map>
20 
23 
24 
25 /**
26  \class OpDetWaveformMixer
27  Add two raw digit collections together.
28 
29 */
30 
31 namespace mix {
32  class OpDetWaveformMixer;
33 }
34 
36 
37 public:
38 
39  /// Default constructor
40  OpDetWaveformMixer(bool p=false):
41  _printWarnings(p){};
42 
43  void DeclareData(std::vector<raw::OpDetWaveform> const& dataVector,
44  std::vector<raw::OpDetWaveform> & outputVector);
45  void Mix(std::vector<raw::OpDetWaveform> const& mcVector,
46  std::unordered_map<raw::Channel_t,float> const& map,
47  std::vector<raw::OpDetWaveform> & outputVector);
48 
49  void SetSaturationPoint(short x)
51 
52  void SetMinSampleSize(size_t x)
53  { fMinSampleSize = x; }
54 
55  /// Default destructor
56  virtual ~OpDetWaveformMixer(){};
57 
58 
59  private:
60 
61  bool _printWarnings;
62 
63  std::unordered_map<raw::Channel_t,size_t> fChannelIndexMap;
64 
66 
68 
69 };
70 
71 #endif
72 /** @} */ // end of doxygen group
73 
std::unordered_map< raw::Channel_t, size_t > fChannelIndexMap
virtual ~OpDetWaveformMixer()
Default destructor.
void SetSaturationPoint(short x)
void DeclareData(std::vector< raw::OpDetWaveform > const &dataVector, std::vector< raw::OpDetWaveform > &outputVector)
Defintion for a class to add two vectors together, and give an "added" waveform. Takes in a saturatio...
p
Definition: test.py:223
RawDigitAdder_HardSaturate fRDAdderAlg
list x
Definition: train.py:276
void SetMinSampleSize(size_t x)
OpDetWaveformMixer(bool p=false)
Default constructor.
void Mix(std::vector< raw::OpDetWaveform > const &mcVector, std::unordered_map< raw::Channel_t, float > const &map, std::vector< raw::OpDetWaveform > &outputVector)