ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
TileConditions
TileCondToolTMDB.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 TILECONDITIONS_TILECONDTOOLTMDB_H
6
#define TILECONDITIONS_TILECONDTOOLTMDB_H
7
8
// Tile includes
9
#include "
TileConditions/ITileCondToolTMDB.h
"
10
#include "
TileConditions/TileCalibData.h
"
11
12
// Athena includes
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
16
class
TileCondToolTMDB
:
public
AthAlgTool
,
virtual
public
ITileCondToolTMDB
{
17
18
public
:
19
20
static
const
InterfaceID&
interfaceID
() {
21
static
const
InterfaceID IID_TileCondToolTMDB(
"TileCondToolTMDB"
, 1, 0);
22
return
IID_TileCondToolTMDB;
23
};
24
25
TileCondToolTMDB
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
26
virtual
~TileCondToolTMDB
();
27
28
virtual
StatusCode
initialize
()
override
;
29
virtual
StatusCode
finalize
()
override
;
30
31
virtual
float
getThreshold
(
unsigned
int
drawerIdx,
unsigned
int
threshold
)
const override
;
32
virtual
float
getDelay
(
unsigned
int
drawerIdx,
unsigned
int
channel)
const override
;
33
34
virtual
void
getCalib
(
unsigned
int
drawerIdx,
unsigned
int
channel,
float
&
a
,
float
& b)
const override
;
35
virtual
unsigned
int
getWeights
(
unsigned
int
drawerIdx,
unsigned
int
channel,
TMDB::Weights
&
weights
)
const override
;
36
37
virtual
float
channelCalib
(
unsigned
int
drawerIdx,
unsigned
int
channel,
const
std::vector<float>& samples)
const override
;
38
virtual
float
channelCalib
(
unsigned
int
drawerIdx,
unsigned
int
channel,
float
amplitude)
const override
;
39
40
private
:
41
42
SG::ReadCondHandleKey<TileCalibDataFlt>
m_calibThresholdKey
{
this
,
43
"TileTMDBThreshold"
,
"TileTMDBThreshold"
,
"Input Tile TMDB threshold calibration constants"
};
44
45
SG::ReadCondHandleKey<TileCalibDataFlt>
m_calibDelayKey
{
this
,
46
"TileTMDBDelay"
,
"TileTMDBDelay"
,
"Input Tile TMDB delay calibration constants"
};
47
48
SG::ReadCondHandleKey<TileCalibDataFlt>
m_calibTmfKey
{
this
,
49
"TileTMDBTMF"
,
"TileTMDBTMF"
,
"Input Tile TMDB TMF calibration constants"
};
50
51
SG::ReadCondHandleKey<TileCalibDataFlt>
m_calibDataKey
{
this
,
52
"TileTMDBCalib"
,
"TileTMDBCalib"
,
"Input Tile TMDB calibration constants"
};
53
54
55
56
};
57
58
#endif
AthAlgTool.h
ITileCondToolTMDB.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
ReadCondHandleKey.h
TileCalibData.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
ITileCondToolTMDB
Definition
ITileCondToolTMDB.h:18
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
TileCondToolTMDB::interfaceID
static const InterfaceID & interfaceID()
Definition
TileCondToolTMDB.h:20
TileCondToolTMDB::m_calibDelayKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibDelayKey
Definition
TileCondToolTMDB.h:45
TileCondToolTMDB::m_calibTmfKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibTmfKey
Definition
TileCondToolTMDB.h:48
TileCondToolTMDB::initialize
virtual StatusCode initialize() override
Definition
TileCondToolTMDB.cxx:32
TileCondToolTMDB::getThreshold
virtual float getThreshold(unsigned int drawerIdx, unsigned int threshold) const override
Definition
TileCondToolTMDB.cxx:57
TileCondToolTMDB::getDelay
virtual float getDelay(unsigned int drawerIdx, unsigned int channel) const override
Definition
TileCondToolTMDB.cxx:67
TileCondToolTMDB::getWeights
virtual unsigned int getWeights(unsigned int drawerIdx, unsigned int channel, TMDB::Weights &weights) const override
Definition
TileCondToolTMDB.cxx:87
TileCondToolTMDB::m_calibDataKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibDataKey
Definition
TileCondToolTMDB.h:51
TileCondToolTMDB::finalize
virtual StatusCode finalize() override
Definition
TileCondToolTMDB.cxx:47
TileCondToolTMDB::TileCondToolTMDB
TileCondToolTMDB(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileCondToolTMDB.cxx:18
TileCondToolTMDB::~TileCondToolTMDB
virtual ~TileCondToolTMDB()
Definition
TileCondToolTMDB.cxx:27
TileCondToolTMDB::getCalib
virtual void getCalib(unsigned int drawerIdx, unsigned int channel, float &a, float &b) const override
Definition
TileCondToolTMDB.cxx:76
TileCondToolTMDB::m_calibThresholdKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibThresholdKey
Definition
TileCondToolTMDB.h:42
TileCondToolTMDB::channelCalib
virtual float channelCalib(unsigned int drawerIdx, unsigned int channel, const std::vector< float > &samples) const override
Definition
TileCondToolTMDB.cxx:121
TMDB::Weights
std::array< float, 7 > Weights
Definition
ITileCondToolTMDB.h:14
type
threshold
Definition
chainparser.cxx:74
weights
Definition
herwig7_interface.h:38
Generated on
for ATLAS Offline Software by
1.17.0