RawDigitAdder_HardSaturate.h
Go to the documentation of this file.
1 /**
2  * \file RawDigitAdder_HardSaturate.h
3  *
4  * \ingroup DataOverlay
5  *
6  * \brief Defintion for a class to add two vectors together,
7  * and give an "added" waveform. Takes in a saturation point.
8  *
9  *
10  * @author wketchum
11  */
12 
13 
14 /** \addtogroup DataOverlay
15 
16  @{*/
17 #ifndef OVERLAY_DATAOVERLAY_RAWDIGITADDER_HARDSATURATE_H
18 #define OVERLAY_DATAOVERLAY_RAWDIGITADDER_HARDSATURATE_H
19 
20 #include <vector>
21 #include <string>
22 #include "RawDigitAdder.h"
23 
24 /**
25  \class RawDigitAdder_HardSaturate
26  Add two vectors together. Needs a saturation point set, where
27  everything above that point is just the max.
28  Allows for a scale factor to be applied to inputs: defaults to 1.
29 
30 */
31 namespace mix {
33 }
34 
36 
37 public:
38 
39  RawDigitAdder_HardSaturate(bool t=true);
40  void SetSaturationPoint(short x);
41 
44 
45  void SetScaleInputs(float f1, float f2)
47 
48  std::string Name() { return "RawDigitAdder_HardSaturate"; }
49 
50  private:
51 
52  short _max;
54  void SetScaleInput(float f, float& _scale);
55  void AddRawDigit( short const&, short const&, short&);
56 
57 };
58 
59 #endif
60 /** @} */ // end of doxygen group
61 
Defintion for a templated base class to add two vectors together, and give an "added" waveform...
std::string string
Definition: nybbler.cc:12
void SetScaleInput(float f, float &_scale)
SynchrotronAndGN f2
EmPhysicsFactory f1
list x
Definition: train.py:276
void AddRawDigit(short const &, short const &, short &)