ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MuonCalibStandAlone
MuonCalibStandAloneBase
MuonCalibStandAloneBase
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
24
class
MdtStationT0Container
{
25
public
:
26
// Constructors //
27
MdtStationT0Container
() :
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
73
bool
m_t0_loaded
;
74
};
75
76
}
// namespace MuonCalib
77
78
#endif
t0
static Double_t t0
Definition
LArPhysWaveHECTool.cxx:38
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::MdtStationT0Container
MdtStationT0Container()
Default constructor.
Definition
MdtStationT0Container.h:27
MuonCalib::MdtStationT0Container::m_adc
std::vector< std::vector< std::vector< double > > > m_adc
Definition
MdtStationT0Container.h:69
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
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
MuonCalib::MdtStationT0Container::m_t0_loaded
bool m_t0_loaded
Definition
MdtStationT0Container.h:73
MuonCalib::MdtStationT0Container::t0_loaded
bool t0_loaded() const
Definition
MdtStationT0Container.h:64
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
vector
Definition
MultiHisto.h:13
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0