ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9// Athena includes
12
13//
14//____________________________________________________________________
15static const InterfaceID IID_TileCondToolIntegrator("TileCondToolIntegrator", 1, 0);
16
20
21//
22//____________________________________________________________________
23TileCondToolIntegrator::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//____________________________________________________________________
34
35//
36//____________________________________________________________________
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//____________________________________________________________________
49 ATH_MSG_DEBUG( "finalize called" );
50 return StatusCode::SUCCESS;
51}
52
53//
54//____________________________________________________________________
55float TileCondToolIntegrator::getGain(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
56
58 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 0);
59
60}
61
62//
63//____________________________________________________________________
64float TileCondToolIntegrator::getGainError(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
65
67 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 1);
68
69}
70
71//
72//____________________________________________________________________
73float TileCondToolIntegrator::getChi2(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
74
76 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 2);
77
78}
79
80//
81//____________________________________________________________________
82float TileCondToolIntegrator::getPedestal(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
83
85 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 3);
86
87}
88
89//
90//____________________________________________________________________
91float TileCondToolIntegrator::getDACForPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
92
94 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 4);
95
96}
97
98//
99//____________________________________________________________________
100float TileCondToolIntegrator::getSigmaOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
101
103 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 5);
104
105}
106
107//
108//____________________________________________________________________
109float TileCondToolIntegrator::getRMSOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
110
112 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 6);
113
114}
115
116//
117//____________________________________________________________________
118float TileCondToolIntegrator::getSigmaOfRMS(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
119
121 return calibIntegrator->getCalibDrawer(drawerIdx)->getData(channel, adc, 7);
122
123}
124
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Helpers for checking error return status codes and reporting errors.
static const InterfaceID IID_TileCondToolIntegrator("TileCondToolIntegrator", 1, 0)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode initialize() override
float getSigmaOfRMS(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
float getGainError(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
float getDACForPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
float getPedestal(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
float getRMSOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
static const InterfaceID & interfaceID()
float getChi2(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
virtual StatusCode finalize() override
float getGain(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
TileCondToolIntegrator(const std::string &type, const std::string &name, const IInterface *parent)
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibIntegratorKey
float getSigmaOfPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const