ATLAS Offline Software
Loading...
Searching...
No Matches
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
22namespace 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) {
37 readT0File(file_name);
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
72 // is true if t0s are loaded correctly
74 };
75
76} // namespace MuonCalib
77
78#endif
static Double_t t0
MdtStationT0Container(const std::string &file_name)
Constructor: Initialize the class with the t0s stored in the file "file_name".
MdtStationT0Container()
Default constructor.
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
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.
STL namespace.