CMS 3D CMS Logo

DTConfigPedestals.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DT_CONFIG_PEDESTALS_H
14 #define DT_CONFIG_PEDESTALS_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 //----------------------
21 // Base Class Headers --
22 //----------------------
23 
24 //------------------------------------
25 // Collaborating Class Declarations --
26 //------------------------------------
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
37 public:
40 
42  ~DTConfigPedestals() override;
43 
45  float getOffset(const DTWireId &wire) const;
46 
48  void setES(DTTPGParameters const *tpgParams, DTT0 const *t0Params = nullptr);
49 
51  void setUseT0(bool useT0) { my_useT0 = useT0; }
52 
54  void setDebug(bool debug) { my_debug = debug; }
55 
57  void print() const;
58 
59 private:
61  inline int debug() const { return my_debug; }
62 
64  inline bool useT0() const { return my_useT0; }
65 
66 private:
67  bool my_debug;
68  bool my_useT0;
70  DTT0 const *my_t0i; // pointed object not owned by this class
71 };
72 
73 #endif
DTConfigPedestals::DTConfigPedestals
DTConfigPedestals()
Default Constructor.
Definition: DTConfigPedestals.cc:34
DTT0.h
DTConfigPedestals::setDebug
void setDebug(bool debug)
Set debug flag.
Definition: DTConfigPedestals.h:54
DTConfigPedestals::setES
void setES(DTTPGParameters const *tpgParams, DTT0 const *t0Params=nullptr)
Set parameters from ES.
Definition: DTConfigPedestals.cc:49
DTConfigPedestals::my_useT0
bool my_useT0
Definition: DTConfigPedestals.h:68
DTWireId
Definition: DTWireId.h:12
DTConfigPedestals::setUseT0
void setUseT0(bool useT0)
Set t0i subtraction.
Definition: DTConfigPedestals.h:51
DTConfigPedestals::useT0
bool useT0() const
Use t0i.
Definition: DTConfigPedestals.h:64
DTConfigPedestals::my_debug
bool my_debug
Definition: DTConfigPedestals.h:67
DTConfigPedestals::print
void print() const
Print the setup.
Definition: DTConfigPedestals.cc:86
DTConfigPedestals::getOffset
float getOffset(const DTWireId &wire) const
Get wire by wire delay.
Definition: DTConfigPedestals.cc:56
DTTPGParameters
Definition: DTTPGParameters.h:62
DTConfig.h
DTTPGParameters.h
DTConfigPedestals
Definition: DTConfigPedestals.h:36
DTConfigPedestals::debug
int debug() const
Debug flag.
Definition: DTConfigPedestals.h:61
DTWireId.h
DTConfigPedestals::~DTConfigPedestals
~DTConfigPedestals() override
Destructor.
Definition: DTConfigPedestals.cc:43
DTConfig
Definition: DTConfig.h:32
DTT0
Definition: DTT0.h:48
DTConfigPedestals::my_tpgParams
const DTTPGParameters * my_tpgParams
Definition: DTConfigPedestals.h:69
DTConfigPedestals::my_t0i
const DTT0 * my_t0i
Definition: DTConfigPedestals.h:70