#include <DTTracoLUTs.h>
Public Member Functions | |
DTTracoLUTs (std::string filename) | |
constructor More... | |
unsigned short int | getBendAng (int pos, int ang, int qualflag) const |
return bending angle from pos and ang More... | |
unsigned short int | getPhiRad (int pos, int qualflag) const |
get radial angle from traco position and flag: 0=outer, 1=inner, 2=correl. More... | |
unsigned short int | getPsi (int ang) const |
get psi angle from traco k parameter More... | |
int | load () |
load look-up tables More... | |
void | print () const |
print look-up tables More... | |
void | reset () |
reset look-up tables More... | |
int | size_phiLUT (int i) const |
int | size_psiLUT () const |
return number of entries in the LUT More... | |
virtual | ~DTTracoLUTs () |
destructor More... | |
Private Attributes | |
std::string | _testfile |
LUT | phi_lut [3] |
LUT | psi_lut |
Look-up tables for traco angle and position
Definition at line 34 of file DTTracoLUTs.h.
DTTracoLUTs::DTTracoLUTs | ( | std::string | filename | ) |
|
virtual |
destructor
Definition at line 54 of file DTTracoLUTs.cc.
References hitfit::clear(), relval_steps::k, phi_lut, and psi_lut.
unsigned short int DTTracoLUTs::getBendAng | ( | int | pos, |
int | ang, | ||
int | qualflag | ||
) | const |
unsigned short int DTTracoLUTs::getPhiRad | ( | int | pos, |
int | qualflag | ||
) | const |
get radial angle from traco position and flag: 0=outer, 1=inner, 2=correl.
Definition at line 150 of file DTTracoLUTs.cc.
unsigned short int DTTracoLUTs::getPsi | ( | int | ang | ) | const |
get psi angle from traco k parameter
Definition at line 162 of file DTTracoLUTs.cc.
References psi_lut.
int DTTracoLUTs::load | ( | ) |
load look-up tables
Definition at line 80 of file DTTracoLUTs.cc.
References _testfile, DTTPGLutFile::close(), h, DTTPGLutFile::open(), phi, phi_lut, psi_lut, DTTPGLutFile::readHex(), and y.
void DTTracoLUTs::print | ( | void | ) | const |
print look-up tables
Definition at line 129 of file DTTracoLUTs.cc.
References gather_cfg::cout, TauDecayModes::dec, contentValuesFiles::m, phi_lut, psi_lut, and x.
void DTTracoLUTs::reset | ( | void | ) |
reset look-up tables
Definition at line 69 of file DTTracoLUTs.cc.
References hitfit::clear(), relval_steps::k, phi_lut, and psi_lut.
|
inline |
Definition at line 65 of file DTTracoLUTs.h.
|
inline |
return number of entries in the LUT
Definition at line 64 of file DTTracoLUTs.h.
References psi_lut.
|
private |
Definition at line 71 of file DTTracoLUTs.h.
Referenced by load().
|
private |
Definition at line 69 of file DTTracoLUTs.h.
Referenced by getBendAng(), getPhiRad(), load(), print(), reset(), size_phiLUT(), and ~DTTracoLUTs().
|
private |
Definition at line 70 of file DTTracoLUTs.h.
Referenced by getBendAng(), getPsi(), load(), print(), reset(), size_psiLUT(), and ~DTTracoLUTs().