CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Lut.h
Go to the documentation of this file.
1 //---------------------------------------------------------
2 //
11 //
12 //---------------------------------------------------------
13 #ifndef LUT_H
14 #define LUT_H
15 
16 
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 #include <iostream>
23 #include <fstream>
24 #include <string>
25 #include <math.h>
26 
27 #define ANGRESOL 512.0
28 #define POSRESOL 4096.0
29 #define SL_D 23.5 //(cm)SL Distance
30 #define CELL_PITCH 4.2 //(cm)Wire Distance
31 #define SL_DIFF 11.75 // (cm )Distance of SL from station center
32 
33 class Lut {
34 
35  public:
36  Lut() {};
37  Lut(DTConfigLUTs* conf, int ntc);
38  ~Lut();
39 
40  // set lut parameters methods
41  void setForTestBeam( int station, int board, int traco );
42 
43  // get luts
44  int get_x( int addr );
45  int get_k( int addr );
46 
47  // DSP <-> IEEE32 conversions
48  void IEEE32toDSP(float f, short *DSPmantissa, short *DSPexp);
49  void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f);
50 
51 public:
52  float m_d; //distance vertex - normal
53  float m_Xcn; //Distance correlator - normal
54  int m_ST; //TRACO BTIC parameter
55  int m_wheel; //Wheel sign (+1 or -1)
56 
57 private:
58  float m_pitch_d_ST; //=pitch/ST private:
59 
61 
62 };
63 #endif
void IEEE32toDSP(float f, short *DSPmantissa, short *DSPexp)
int m_ST
Definition: Lut.h:54
DTConfigLUTs * _conf_luts
Definition: Lut.h:60
float m_Xcn
Definition: Lut.h:53
~Lut()
Definition: Lut.cc:25
float m_pitch_d_ST
Definition: Lut.h:58
int get_x(int addr)
Definition: Lut.cc:109
double f[11][100]
void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f)
tuple conf
Definition: dbtoconf.py:185
float m_d
Definition: Lut.h:52
int get_k(int addr)
Definition: Lut.cc:95
void setForTestBeam(int station, int board, int traco)
Definition: Lut.cc:27
int m_wheel
Definition: Lut.h:55
Definition: Lut.h:33
Lut()
Definition: Lut.h:36