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()
Default Constructor.
DTTPGParameters const * my_tpgParams
void setES(DTTPGParameters const *tpgParams, DTT0 const *t0Params=nullptr)
Set parameters from ES.
void setDebug(bool debug)
Set debug flag.
Definition: DTT0.h:48
void setUseT0(bool useT0)
Set t0i subtraction.
bool useT0() const
Use t0i.
void print() const
Print the setup.
float getOffset(const DTWireId &wire) const
Get wire by wire delay.
int debug() const
Debug flag.
~DTConfigPedestals() override
Destructor.