ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
src
TileCondToolIntegrator.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Tile includes
6
#include "
TileConditions/TileCondToolIntegrator.h
"
7
#include "
TileCalibBlobObjs/TileCalibDrawerFlt.h
"
8
9
// Athena includes
10
#include "
AthenaKernel/errorcheck.h
"
11
#include "
StoreGate/ReadCondHandle.h
"
12
13
//
14
//____________________________________________________________________
15
static
const
InterfaceID
IID_TileCondToolIntegrator
(
"TileCondToolIntegrator"
, 1, 0);
16
17
const
InterfaceID&
TileCondToolIntegrator::interfaceID
() {
18
return
IID_TileCondToolIntegrator
;
19
}
20
21
//
22
//____________________________________________________________________
23
TileCondToolIntegrator::TileCondToolIntegrator
(
const
std::string&
type
,
const
std::string& name,
24
const
IInterface* parent)
25
:
AthAlgTool
(
type
, name, parent)
26
{
27
declareInterface<TileCondToolIntegrator>(
this
);
28
}
29
30
//
31
//____________________________________________________________________
32
TileCondToolIntegrator::~TileCondToolIntegrator
() {
33
}
34
35
//
36
//____________________________________________________________________
37
StatusCode
TileCondToolIntegrator::initialize
() {
38
ATH_MSG_DEBUG
(
"In initialize()"
);
39
40
//=== Initialize integrator conditions data key
41
ATH_CHECK
(
m_calibIntegratorKey
.initialize() );
42
43
return
StatusCode::SUCCESS;
44
}
45
46
//
47
//____________________________________________________________________
48
StatusCode
TileCondToolIntegrator::finalize
() {
49
ATH_MSG_DEBUG
(
"finalize called"
);
50
return
StatusCode::SUCCESS;
51
}
52
53
//
54
//____________________________________________________________________
55
float
TileCondToolIntegrator::getGain
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
56
57
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
58
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 0);
59
60
}
61
62
//
63
//____________________________________________________________________
64
float
TileCondToolIntegrator::getGainError
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
65
66
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
67
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 1);
68
69
}
70
71
//
72
//____________________________________________________________________
73
float
TileCondToolIntegrator::getChi2
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
74
75
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
76
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 2);
77
78
}
79
80
//
81
//____________________________________________________________________
82
float
TileCondToolIntegrator::getPedestal
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
83
84
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
85
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 3);
86
87
}
88
89
//
90
//____________________________________________________________________
91
float
TileCondToolIntegrator::getDACForPed
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
92
93
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
94
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 4);
95
96
}
97
98
//
99
//____________________________________________________________________
100
float
TileCondToolIntegrator::getSigmaOfPed
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
101
102
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
103
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 5);
104
105
}
106
107
//
108
//____________________________________________________________________
109
float
TileCondToolIntegrator::getRMSOfPed
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
110
111
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
112
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 6);
113
114
}
115
116
//
117
//____________________________________________________________________
118
float
TileCondToolIntegrator::getSigmaOfRMS
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc)
const
{
119
120
SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>
> calibIntegrator(
m_calibIntegratorKey
);
121
return
calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 7);
122
123
}
124
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
errorcheck.h
Helpers for checking error return status codes and reporting errors.
ReadCondHandle.h
TileCalibDrawerFlt.h
IID_TileCondToolIntegrator
static const InterfaceID IID_TileCondToolIntegrator("TileCondToolIntegrator", 1, 0)
TileCondToolIntegrator.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
TileCondToolIntegrator::initialize
virtual StatusCode initialize() override
Definition
TileCondToolIntegrator.cxx:37
TileCondToolIntegrator::getSigmaOfRMS
float getSigmaOfRMS(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:118
TileCondToolIntegrator::getGainError
float getGainError(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:64
TileCondToolIntegrator::getDACForPed
float getDACForPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:91
TileCondToolIntegrator::getPedestal
float getPedestal(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:82
TileCondToolIntegrator::getRMSOfPed
float getRMSOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:109
TileCondToolIntegrator::interfaceID
static const InterfaceID & interfaceID()
Definition
TileCondToolIntegrator.cxx:17
TileCondToolIntegrator::~TileCondToolIntegrator
virtual ~TileCondToolIntegrator()
Definition
TileCondToolIntegrator.cxx:32
TileCondToolIntegrator::getChi2
float getChi2(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:73
TileCondToolIntegrator::finalize
virtual StatusCode finalize() override
Definition
TileCondToolIntegrator.cxx:48
TileCondToolIntegrator::getGain
float getGain(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:55
TileCondToolIntegrator::TileCondToolIntegrator
TileCondToolIntegrator(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileCondToolIntegrator.cxx:23
TileCondToolIntegrator::m_calibIntegratorKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibIntegratorKey
Definition
TileCondToolIntegrator.h:41
TileCondToolIntegrator::getSigmaOfPed
float getSigmaOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition
TileCondToolIntegrator.cxx:100
type
Generated on
for ATLAS Offline Software by
1.17.0