54 for (
int k = 0;
k < 3;
k++)
68 for (
int k = 0;
k < 3;
k++)
83 if (filePSI.
open() != 0)
91 for (
int u = 0; u < 1024; u++) {
103 if (filePHI.
open() != 0)
108 for (
int y = 0;
y < 3;
110 for (
int h = 0;
h < 512;
h++) {
131 cout <<
"L1 barrel Traco look-up tables :" << endl;
132 cout <<
"====================================================" << endl;
137 for (
int x = 0;
x < 1024;
x++)
139 for (
int m = 0;
m < 512;
m++)
140 cout <<
"X=" <<
m <<
" ---> " << hex << (
phi_lut[0])[
m] <<
" " 161 unsigned short int ipsi = (
psi_lut)[ang + 512];
184 unsigned short int BendAng =
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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
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