CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTracoLUTs.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef DT_TRACO_LUTS_H
16 #define DT_TRACO_LUTS_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
22 #include <vector>
23 #include <string>
24 
25 //------------------------------------
26 // Collaborating Class Declarations --
27 //------------------------------------
28 
29 
30 // ---------------------
31 // -- Class Interface --
32 // ---------------------
33 
34 typedef std::vector<unsigned short int> LUT;
35 
37 
38  public:
39 // typedef static std::vector<unsigned short int> LUT;
40 
43 
45  virtual ~DTTracoLUTs();
46 
48  void reset();
49 
51  int load();
52 
54  void print() const;
55 
57  unsigned short int getPhiRad(int pos, int qualflag) const;
58 
60  unsigned short int getPsi(int ang) const;
61 
63  unsigned short int getBendAng(int pos, int ang, int qualflag) const;
64 
66  inline int size_psiLUT() const { return psi_lut.size(); }
67  inline int size_phiLUT(int i) const { return phi_lut[i].size(); }
68 
69  private:
70 
71  LUT phi_lut[3]; // phi rad: elem.0: inner; elem.1: outer; elem.2: corr.
72  LUT psi_lut; // psi
74 
75 };
76 
77 #endif
int i
Definition: DBlmapReader.cc:9
unsigned short int getBendAng(int pos, int ang, int qualflag) const
return bending angle from pos and ang
Definition: DTTracoLUTs.cc:182
LUT phi_lut[3]
Definition: DTTracoLUTs.h:71
DTTracoLUTs(std::string filename)
constructor
Definition: DTTracoLUTs.cc:45
void reset()
reset look-up tables
Definition: DTTracoLUTs.cc:69
int size_psiLUT() const
return number of entries in the LUT
Definition: DTTracoLUTs.h:66
virtual ~DTTracoLUTs()
destructor
Definition: DTTracoLUTs.cc:54
int load()
load look-up tables
Definition: DTTracoLUTs.cc:80
unsigned short int getPhiRad(int pos, int qualflag) const
get radial angle from traco position and flag: 0=outer, 1=inner, 2=correl.
Definition: DTTracoLUTs.cc:150
std::string _testfile
Definition: DTTracoLUTs.h:73
void print() const
print look-up tables
Definition: DTTracoLUTs.cc:129
unsigned short int getPsi(int ang) const
get psi angle from traco k parameter
Definition: DTTracoLUTs.cc:162
tuple filename
Definition: lut2db_cfg.py:20
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:34
int size_phiLUT(int i) const
Definition: DTTracoLUTs.h:67