CMS 3D CMS Logo

DTConfigLUTs.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_CONFIG_LUTs_H
15 #define DT_CONFIG_LUTs_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 #include <iostream>
21 
22 //----------------------
23 // Base Class Headers --
24 //----------------------
25 
26 //------------------------------------
27 // Collaborating Class Declarations --
28 //------------------------------------
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
36 class DTConfigLUTs : public DTConfig {
37 public:
40 
43 
45  DTConfigLUTs(bool debug, unsigned short int* buffer);
46 
48  ~DTConfigLUTs() override;
49 
51  inline bool debug() const { return m_debug; }
52 
54  inline int BTIC() const { return m_btic; }
55 
57  inline float D() const { return m_d; }
58 
60  inline float Xcn() const { return m_Xcn; }
61 
63  inline int Wheel() const { return m_wheel; }
64 
66  inline void setDebug(bool debug) { m_debug = debug; }
67  inline void setBTIC(int btic) { m_btic = btic; }
68  inline void setD(float d) { m_d = d; }
69  inline void setXCN(float Xcn) { m_Xcn = Xcn; }
70  inline void setWHEEL(int wheel) { m_wheel = wheel; }
71 
73  void print() const;
74 
76  void DSPtoIEEE32(short DSPmantissa, short DSPexp, float* f) const;
77 
79  void IEEE32toDSP(float f, short int& DSPmantissa, short int& DSPexp) const;
80 
81  /* //! Return pointer to parameter set */
82  /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
83 
84 private:
86  void setDefaults(const edm::ParameterSet& m_ps);
87 
88  bool m_debug;
89  int m_btic;
90  float m_d;
91  float m_Xcn;
92  int m_wheel;
93 };
94 
95 #endif
DTConfigLUTs::setDebug
void setDebug(bool debug)
Set single parameter functions.
Definition: DTConfigLUTs.h:66
DTConfigLUTs::setDefaults
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
Definition: DTConfigLUTs.cc:79
DTConfigLUTs::setXCN
void setXCN(float Xcn)
Definition: DTConfigLUTs.h:69
DTConfigLUTs::m_btic
int m_btic
Definition: DTConfigLUTs.h:89
DTConfigLUTs::m_wheel
int m_wheel
Definition: DTConfigLUTs.h:92
DTConfigLUTs::setWHEEL
void setWHEEL(int wheel)
Definition: DTConfigLUTs.h:70
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DTConfigLUTs::m_Xcn
float m_Xcn
Definition: DTConfigLUTs.h:91
DTConfigLUTs::D
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:57
DTConfigLUTs::print
void print() const
Print the setup.
Definition: DTConfigLUTs.cc:96
DTConfigLUTs::setBTIC
void setBTIC(int btic)
Definition: DTConfigLUTs.h:67
edm::ParameterSet
Definition: ParameterSet.h:47
DTConfigLUTs::Wheel
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:63
DTConfigLUTs::DSPtoIEEE32
void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f) const
DSP to IEEE32 conversion.
Definition: DTConfigLUTs.cc:109
DTConfigLUTs::BTIC
int BTIC() const
BTIC parameter.
Definition: DTConfigLUTs.h:54
DTConfigLUTs::m_debug
bool m_debug
Definition: DTConfigLUTs.h:88
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTConfig.h
DTConfigLUTs::~DTConfigLUTs
~DTConfigLUTs() override
Destructor.
Definition: DTConfigLUTs.cc:73
DTConfigLUTs::Xcn
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:60
DTConfigLUTs::IEEE32toDSP
void IEEE32toDSP(float f, short int &DSPmantissa, short int &DSPexp) const
IEEE32 to DSP conversion.
Definition: DTConfigLUTs.cc:115
DTConfigLUTs::setD
void setD(float d)
Definition: DTConfigLUTs.h:68
DTConfig
Definition: DTConfig.h:32
ztail.d
d
Definition: ztail.py:151
ParameterSet.h
DTConfigLUTs
Definition: DTConfigLUTs.h:36
DTConfigLUTs::debug
bool debug() const
Debug flag.
Definition: DTConfigLUTs.h:51
DTConfigLUTs::m_d
float m_d
Definition: DTConfigLUTs.h:90
DTConfigLUTs::DTConfigLUTs
DTConfigLUTs()
Empty Constructor.
Definition: DTConfigLUTs.h:42