test
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 //
11 //
12 //--------------------------------------------------
13 #ifndef DT_TRACO_LUTS_H
14 #define DT_TRACO_LUTS_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 #include <vector>
21 #include <string>
22 
23 //------------------------------------
24 // Collaborating Class Declarations --
25 //------------------------------------
26 
27 
28 // ---------------------
29 // -- Class Interface --
30 // ---------------------
31 
32 typedef std::vector<unsigned short int> LUT;
33 
35 
36  public:
37 // typedef static std::vector<unsigned short int> LUT;
38 
41 
43  virtual ~DTTracoLUTs();
44 
46  void reset();
47 
49  int load();
50 
52  void print() const;
53 
55  unsigned short int getPhiRad(int pos, int qualflag) const;
56 
58  unsigned short int getPsi(int ang) const;
59 
61  unsigned short int getBendAng(int pos, int ang, int qualflag) const;
62 
64  inline int size_psiLUT() const { return psi_lut.size(); }
65  inline int size_phiLUT(int i) const { return phi_lut[i].size(); }
66 
67  private:
68 
69  LUT phi_lut[3]; // phi rad: elem.0: inner; elem.1: outer; elem.2: corr.
70  LUT psi_lut; // psi
72 
73 };
74 
75 #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:69
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:64
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:71
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:32
int size_phiLUT(int i) const
Definition: DTTracoLUTs.h:65