88 if ( filePSI.
open() != 0 )
return -1;
94 for(
int u=0;u<1024;u++){
106 if ( filePHI.
open() != 0 )
return -1;
109 for(
int y=0;
y<3;
y++){
110 for(
int h=0;
h<512;
h++){
132 cout <<
"L1 barrel Traco look-up tables :" << endl;
133 cout <<
"====================================================" << endl;
138 for(
int x=0;
x<1024;
x++)
140 for(
int m=0;
m<512;
m++)
141 cout <<
"X=" <<
m <<
" ---> " << hex << (
phi_lut[0])[
m] <<
" "
151 unsigned short int phi = (
phi_lut[flag])[pos] & 0xFFF;
164 unsigned short int ipsi = (
psi_lut)[ang+512];
186 unsigned short int BendAng = ( (
psi_lut)[ang+512] - ((
phi_lut[flag])[pos]/8) ) & 0x3FF;
unsigned short int getBendAng(int pos, int ang, int qualflag) const
return bending angle from pos and ang
DTTracoLUTs(std::string filename)
constructor
void reset()
reset look-up tables
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
virtual ~DTTracoLUTs()
destructor
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
int load()
load look-up tables
unsigned short int getPhiRad(int pos, int qualflag) const
get radial angle from traco position and flag: 0=outer, 1=inner, 2=correl.
int readHex()
read one hex from file
void print() const
print look-up tables
unsigned short int getPsi(int ang) const
get psi angle from traco k parameter