23 return m_t0[ml - 1][ly - 1][tb - 1];
34 return m_adc[ml - 1][ly - 1][tb - 1];
44 m_t0[ml - 1][ly - 1][tb - 1] =
t0;
72 infile.open(file_name.c_str());
74 throw std::runtime_error(
75 Form(
"File: %s, Line: %d\nMdtStationT0Container::readT0File - Could not open file %s!", __FILE__, __LINE__, file_name.c_str()));
83 getline(infile, sdummy);
86 while (!infile.eof()) {
89 if (infile.eof()) {
break; }
92 infile >> idummy >> idummy >> idummy;
95 infile >> ml >> ly >> tb;
98 infile >>
m_t0[ml - 1][ly - 1][tb - 1];
99 infile >>
m_adc[ml - 1][ly - 1][tb - 1];
101 if (infile.fail())
return;
104 for (
unsigned k = 0; k < 10; k++) { infile >> dummy; }
std::vector< std::vector< std::vector< double > > > m_adc
void readT0File(const std::string &file_name)
read the t0s stored in the file "file_name"
std::vector< std::vector< std::vector< double > > > m_t0
double adc(const unsigned int &ml, const unsigned int &ly, const unsigned int &tb) const
get the t0 value of the tube tb in layer ly of multilayer ml; tb, ly, ml>0
double t0(const unsigned int &ml, const unsigned int &ly, const unsigned int &tb) const
get the t0 value of the tube tb in layer ly of multilayer ml; tb, ly, ml>0
bool Sett0(const unsigned int &ml, const unsigned int &ly, const unsigned int &tb, double t0, double adc=0)
set t0 value of the tube tb in layer ly of multilayer ml; tb, ly, ml>0
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.