ATLAS Offline Software
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
11 
12 // Athena includes
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 
43  "TileTMDBThreshold", "TileTMDBThreshold", "Input Tile TMDB threshold calibration constants"};
44 
46  "TileTMDBDelay", "TileTMDBDelay", "Input Tile TMDB delay calibration constants"};
47 
49  "TileTMDBTMF", "TileTMDBTMF", "Input Tile TMDB TMF calibration constants"};
50 
52  "TileTMDBCalib", "TileTMDBCalib", "Input Tile TMDB calibration constants"};
53 
54 
55 
56 };
57 
58 #endif
TMDB::Weights
std::array< float, 7 > Weights
Definition: ITileCondToolTMDB.h:14
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileCondToolTMDB::getDelay
virtual float getDelay(unsigned int drawerIdx, unsigned int channel) const override
Definition: TileCondToolTMDB.cxx:67
TileCalibData.h
TileCondToolTMDB::TileCondToolTMDB
TileCondToolTMDB(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolTMDB.cxx:18
TileCondToolTMDB::getCalib
virtual void getCalib(unsigned int drawerIdx, unsigned int channel, float &a, float &b) const override
Definition: TileCondToolTMDB.cxx:76
TileCondToolTMDB::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCondToolTMDB.h:20
TileCondToolTMDB::channelCalib
virtual float channelCalib(unsigned int drawerIdx, unsigned int channel, const std::vector< float > &samples) const override
Definition: TileCondToolTMDB.cxx:121
TileCondToolTMDB::getThreshold
virtual float getThreshold(unsigned int drawerIdx, unsigned int threshold) const override
Definition: TileCondToolTMDB.cxx:57
TileCondToolTMDB::~TileCondToolTMDB
virtual ~TileCondToolTMDB()
Definition: TileCondToolTMDB.cxx:27
ITileCondToolTMDB.h
TileCondToolTMDB::m_calibDelayKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibDelayKey
Definition: TileCondToolTMDB.h:45
TileCondToolTMDB::m_calibDataKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibDataKey
Definition: TileCondToolTMDB.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCondToolTMDB::m_calibThresholdKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibThresholdKey
Definition: TileCondToolTMDB.h:42
AthAlgTool.h
TileCondToolTMDB::m_calibTmfKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibTmfKey
Definition: TileCondToolTMDB.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ITileCondToolTMDB
Definition: ITileCondToolTMDB.h:18
ReadCondHandleKey.h
TileCondToolTMDB::getWeights
virtual unsigned int getWeights(unsigned int drawerIdx, unsigned int channel, TMDB::Weights &weights) const override
Definition: TileCondToolTMDB.cxx:87
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
threshold
Definition: chainparser.cxx:74
weights
Definition: herwig7_interface.h:44
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
TileCondToolTMDB::initialize
virtual StatusCode initialize() override
Definition: TileCondToolTMDB.cxx:32
a
TList * a
Definition: liststreamerinfos.cxx:10
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
TileCondToolTMDB
Definition: TileCondToolTMDB.h:16
TileCondToolTMDB::finalize
virtual StatusCode finalize() override
Definition: TileCondToolTMDB.cxx:47