ATLAS Offline Software
MdtStationT0Container.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonCalib_MdtStationT0ContainerH
6 #define MuonCalib_MdtStationT0ContainerH
7 
8 //:::::::::::::::::::::::::::::::::
9 //:: CLASS MdtStationT0Container ::
10 //:::::::::::::::::::::::::::::::::
11 
18 
19 #include <string>
20 #include <vector>
21 
22 namespace MuonCalib {
23 
25  public:
26  // Constructors //
28  m_t0(2, std::vector<std::vector<double> >(4, std::vector<double>(78, 9e9))),
29  m_adc(2, std::vector<std::vector<double> >(4, std::vector<double>(78, 9e9))),
30  m_t0_loaded(false) {}
32 
33  MdtStationT0Container(const std::string& file_name) :
34  m_t0(2, std::vector<std::vector<double> >(4, std::vector<double>(78, 9e9))),
35  m_adc(2, std::vector<std::vector<double> >(4, std::vector<double>(78, 9e9))),
36  m_t0_loaded(false) {
38  }
41 
42  // Methods //
43  // get methods //
44  double t0(const unsigned int& ml, const unsigned int& ly, const unsigned int& tb) const;
48  double adc(const unsigned int& ml, const unsigned int& ly, const unsigned int& tb) const;
52 
53  // set methods //
54  void readT0File(const std::string& file_name);
57 
58  bool Sett0(const unsigned int& ml, const unsigned int& ly, const unsigned int& tb, double t0, double adc = 0);
62 
63  // return true if the t0s are loaded correctly //
64  inline bool t0_loaded() const { return m_t0_loaded; }
65 
66  private:
67  // t0s //
68  std::vector<std::vector<std::vector<double> > > m_t0; // t0 values
69  std::vector<std::vector<std::vector<double> > > m_adc; // t0 values
70 
71  // private methods //
72  // void init(void); // initialization method
73 
74  // is true if t0s are loaded correctly
76  };
77 
78 } // namespace MuonCalib
79 
80 #endif
MuonCalib::MdtStationT0Container::t0
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
Definition: MdtStationT0Container.cxx:21
MuonCalib::MdtStationT0Container::Sett0
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
Definition: MdtStationT0Container.cxx:43
MuonCalib::MdtStationT0Container
Definition: MdtStationT0Container.h:24
MuonCalib::MdtStationT0Container::adc
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
Definition: MdtStationT0Container.cxx:32
physics_parameters.file_name
string file_name
Definition: physics_parameters.py:32
Execution.tb
tb
Definition: Execution.py:15
MuonCalib::MdtStationT0Container::readT0File
void readT0File(const std::string &file_name)
read the t0s stored in the file "file_name"
Definition: MdtStationT0Container.cxx:57
MuonCalib::MdtStationT0Container::m_t0
std::vector< std::vector< std::vector< double > > > m_t0
Definition: MdtStationT0Container.h:68
vector
Definition: MultiHisto.h:13
MuonCalib::MdtStationT0Container::MdtStationT0Container
MdtStationT0Container(void)
Default constructor.
Definition: MdtStationT0Container.h:27
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MdtStationT0Container::m_adc
std::vector< std::vector< std::vector< double > > > m_adc
Definition: MdtStationT0Container.h:69
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
MuonCalib::MdtStationT0Container::t0_loaded
bool t0_loaded() const
Definition: MdtStationT0Container.h:64
MuonCalib::MdtStationT0Container::MdtStationT0Container
MdtStationT0Container(const std::string &file_name)
Constructor: Initialize the class with the t0s stored in the file "file_name".
Definition: MdtStationT0Container.h:33
MuonCalib::MdtStationT0Container::m_t0_loaded
bool m_t0_loaded
Definition: MdtStationT0Container.h:75