26 Xcn_corr = Xcn_corr - SL_shift;
28 Xcn_corr = Xcn_corr + SL_shift;
50 tracoPos[ 0] = -120.19;
51 tracoPos[ 1] = -103.39;
52 tracoPos[ 2] = -86.59;
53 tracoPos[ 3] = -69.80;
54 tracoPos[10] = -52.99;
55 tracoPos[11] = -36.19;
56 tracoPos[12] = -19.39;
66 float m_Xc = tracoPos[ ( nBoard * 10 ) + nTraco ];
74 tracoPos[ 0] = -165.45;
75 tracoPos[ 1] = -148.65;
76 tracoPos[ 2] = -131.85;
77 tracoPos[ 3] = -115.05;
78 tracoPos[10] = -98.25;
79 tracoPos[11] = -81.45;
80 tracoPos[12] = -64.65;
81 tracoPos[13] = -47.85;
82 tracoPos[20] = -31.05;
83 tracoPos[21] = -14.25;
90 tracoPos[40] = 103.34;
91 tracoPos[41] = 120.14;
92 tracoPos[42] = 136.94;
93 tracoPos[43] = 153.74;
97 float m_Xc = tracoPos[ ( nBoard * 10 ) + nTraco ];
152 if ( i < 10 )
return ( i +
'0' );
153 else return ( ( i - 10 ) +
'A' );
157 char* buf =
new char[6];
171 std::string
s( buf );
410 *f = DSPmantissa * (float)
pow( 2.0, DSPexp );
423 union {
float f; uint32_t
i; } u;
437 if((*pl & 0x80000000)!=0)
439 lm =( 0x800000 | (*pl & 0x7FFFFF));
442 *DSPexp = ((*pl>>23)&0xFF)-126;
443 *DSPmantissa = (short)lm;
445 *DSPmantissa = - *DSPmantissa;
void IEEE32toDSP(float f, short *DSPmantissa, short *DSPexp)
DTConfigLUTs * _conf_luts
int Wheel() const
wheel sign (-1 or +1)
std::string lutFmt(int i)
void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f)
int BTIC() const
BTIC parameter.
void setForTestBeam(int station, int board, int traco)
float Xcn() const
Xcn: distance vertex to normal, unit cm.
float D() const
d: distance vertex to normal, unit cm.
Power< A, B >::type pow(const A &a, const B &b)