ATLAS Offline Software
TileTriggerDefaultCalibTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECALIBALG_TILETRIGGERDEFAULTCALIBTOOL_H
6 #define TILECALIBALG_TILETRIGGERDEFAULTCALIBTOOL_H
7 
9 #include "GaudiKernel/ToolHandle.h"
10 
14 #include "TileEvent/TileDQstatus.h"
19 
20 #include <string>
21 
22 class TileCablingService;
23 class CaloLVL1_ID;
24 class TileHWID;
25 class TileID;
26 class TFile;
29 class Identifier;
30 class HWIdentifier;
31 
32 
34 {
35 
36  public:
37  TileTriggerDefaultCalibTool(const std::string& type, const std::string& name,const IInterface* pParent);
39 
40  virtual StatusCode initialize() override;
41  virtual StatusCode initNtuple(int runNumber, int runType, TFile * rootfile) override;
42  virtual StatusCode execute() override;
43  virtual StatusCode finalizeCalculations() override;
44  virtual StatusCode writeNtuple(int runNumber, int runType, TFile * rootfile) override;
45  virtual StatusCode finalize() override;
46 
47  private:
48 
49  // jobOptions
50  std::string m_ntupleID;
51  int m_maxNTT;
52  unsigned int m_nevpmt;
53 
54  // Tools / storegate info
57  const TileID* m_tileID;
59  ToolHandle<TileCondToolEmscale> m_tileToolEmscale{this,
60  "TileCondToolEmscale", "TileCondToolEmscale", "Tile em scale tool"};
62  "TileDQstatus", "TileDQstatus", "TileDQstatus key"};
64  "TileRawChannelContainer", "TileRawChannelFit", "Tile raw channel container"};
66  "TriggerTowerContainer", "xAODTriggerTowers", "Trigger Tower container"};
67 
68  ToolHandle<LVL1::IL1CaloTTIdTools > m_l1CaloTTIdTools{this,
69  "L1CaloTTIdTools", "LVL1::L1CaloTTIdTools/L1CaloTTIdTools", "L1Calo TTId tools"};
70 
72 
73  // Results Tile
82 
83  // Results L1Calo
92 
95 
96  // CISpar parameters
97  float m_charge;
98  unsigned int m_ipmt;
99  unsigned int m_ipmtCount;
100  unsigned int m_ipmtOld;
101 
102  float m_DACvalue;
103 
104  // Events
106 
107 };
108 
109 #endif // #ifndef TILECALIBALG_TILETRIGGERDEFAULTCALIBTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileTriggerDefaultCalibTool::~TileTriggerDefaultCalibTool
virtual ~TileTriggerDefaultCalibTool()
Definition: TileTriggerDefaultCalibTool.cxx:77
TileTriggerDefaultCalibTool::m_tileToolEmscale
ToolHandle< TileCondToolEmscale > m_tileToolEmscale
main Tile Calibration tool
Definition: TileTriggerDefaultCalibTool.h:59
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
TileTriggerDefaultCalibTool::m_TT_ID
const CaloLVL1_ID * m_TT_ID
Definition: TileTriggerDefaultCalibTool.h:55
IL1CaloTTIdTools.h
TileTriggerDefaultCalibTool::m_meanTileL1Calo
float(* m_meanTileL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:93
TileTriggerDefaultCalibTool::TileTriggerDefaultCalibTool
TileTriggerDefaultCalibTool(const std::string &type, const std::string &name, const IInterface *pParent)
Definition: TileTriggerDefaultCalibTool.cxx:37
TileTriggerDefaultCalibTool::m_ipmtOld
unsigned int m_ipmtOld
Definition: TileTriggerDefaultCalibTool.h:100
TileTriggerDefaultCalibTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileTriggerDefaultCalibTool.h:56
TileTriggerDefaultCalibTool::initialize
virtual StatusCode initialize() override
Definition: TileTriggerDefaultCalibTool.cxx:99
TileTriggerDefaultCalibTool::finalize
virtual StatusCode finalize() override
Definition: TileTriggerDefaultCalibTool.cxx:464
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TileTriggerDefaultCalibTool::m_ietaTile
int(* m_ietaTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:78
TileTriggerDefaultCalibTool::m_ipmtL1Calo
int(* m_ipmtL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:90
TriggerTowerContainer.h
TileTriggerDefaultCalibTool::m_ipmtTile
int(* m_ipmtTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:80
TileTriggerDefaultCalibTool::m_ietaL1Calo
int(* m_ietaL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:88
TileTriggerDefaultCalibTool::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileTriggerDefaultCalibTool.h:63
ITileCalibTool
Definition: ITileCalibTool.h:19
TileCalibUtils.h
SG::ReadHandleKey< TileDQstatus >
HWIdentifier
Definition: HWIdentifier.h:13
LArCalib_HVScale2NtupleConfig.rootfile
string rootfile
Definition: LArCalib_HVScale2NtupleConfig.py:74
TileTriggerDefaultCalibTool::m_tileCablingService
const TileCablingService * m_tileCablingService
Definition: TileTriggerDefaultCalibTool.h:58
TileTriggerDefaultCalibTool::m_tileID
const TileID * m_tileID
Definition: TileTriggerDefaultCalibTool.h:57
TileTriggerDefaultCalibTool::m_dqStatusKey
SG::ReadHandleKey< TileDQstatus > m_dqStatusKey
Definition: TileTriggerDefaultCalibTool.h:61
TileCalibUtils::MAX_DRAWER
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
Definition: TileCalibUtils.h:139
TileRawChannelContainer.h
ITileCalibTool.h
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileTriggerDefaultCalibTool::m_ipmtCount
unsigned int m_ipmtCount
Definition: TileTriggerDefaultCalibTool.h:99
Tile
Definition: TileVolumeBuilder.h:43
TileTriggerDefaultCalibTool::m_iphiTile
int(* m_iphiTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:79
TileTriggerDefaultCalibTool::m_triggerTowerContainerKey
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerContainerKey
Definition: TileTriggerDefaultCalibTool.h:65
TileCondToolEmscale.h
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
TileTriggerDefaultCalibTool::m_rmsL1CaloDAC
float(* m_rmsL1CaloDAC)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:87
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileTriggerDefaultCalibTool::m_l1CaloTTIdTools
ToolHandle< LVL1::IL1CaloTTIdTools > m_l1CaloTTIdTools
Definition: TileTriggerDefaultCalibTool.h:68
AthAlgTool.h
TileTriggerDefaultCalibTool::m_nEvtL1Calo
int(* m_nEvtL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:91
TileTriggerDefaultCalibTool::m_ipmt
unsigned int m_ipmt
Definition: TileTriggerDefaultCalibTool.h:98
TileTriggerDefaultCalibTool::m_meanL1CaloDAC
float(* m_meanL1CaloDAC)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:86
TileTriggerDefaultCalibTool::m_charge
float m_charge
Definition: TileTriggerDefaultCalibTool.h:97
TileTriggerDefaultCalibTool::m_maxNTT
int m_maxNTT
Definition: TileTriggerDefaultCalibTool.h:51
TileCablingService
Definition: TileCablingService.h:23
TileBeamElemContainer
Definition: TileBeamElemContainer.h:13
TileDQstatus.h
Information produced by TileDQstatusAlg (used to be done by TileBeamInfoProvider).
python.OnlineISConfiguration.runType
def runType
Definition: OnlineISConfiguration.py:112
TileTriggerDefaultCalibTool::m_meanTileDAC
float(* m_meanTileDAC)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:76
TileTriggerDefaultCalibTool::m_meanTile
float(* m_meanTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:74
TileTriggerDefaultCalibTool::finalizeCalculations
virtual StatusCode finalizeCalculations() override
Definition: TileTriggerDefaultCalibTool.cxx:376
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TileTriggerDefaultCalibTool::m_nevpmt
unsigned int m_nevpmt
Definition: TileTriggerDefaultCalibTool.h:52
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.Classes.TileCalibUtils
TileCalibUtils
Definition: TileCalib/TileCalibBlobObjs/python/Classes.py:5
TileTriggerDefaultCalibTool::m_rmsTileL1Calo
float(* m_rmsTileL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:94
TileTriggerDefaultCalibTool::m_rmsTile
float(* m_rmsTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:75
TileTriggerDefaultCalibTool::m_nEvtTile
int(* m_nEvtTile)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:81
TileTriggerDefaultCalibTool::execute
virtual StatusCode execute() override
Definition: TileTriggerDefaultCalibTool.cxx:135
TileTriggerDefaultCalibTool::initNtuple
virtual StatusCode initNtuple(int runNumber, int runType, TFile *rootfile) override
Definition: TileTriggerDefaultCalibTool.cxx:129
TileTriggerDefaultCalibTool
Definition: TileTriggerDefaultCalibTool.h:34
TileTriggerDefaultCalibTool::m_DACvalue
float m_DACvalue
Definition: TileTriggerDefaultCalibTool.h:102
AthAlgTool
Definition: AthAlgTool.h:26
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
TileTriggerDefaultCalibTool::m_ntupleID
std::string m_ntupleID
Definition: TileTriggerDefaultCalibTool.h:50
TileTriggerDefaultCalibTool::m_iphiL1Calo
int(* m_iphiL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:89
TileTriggerDefaultCalibTool::m_rmsL1Calo
float(* m_rmsL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:85
TileTriggerDefaultCalibTool::m_meanL1Calo
float(* m_meanL1Calo)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:84
TileTriggerDefaultCalibTool::m_nEvtGlobal
int m_nEvtGlobal
Definition: TileTriggerDefaultCalibTool.h:105
TileTriggerDefaultCalibTool::writeNtuple
virtual StatusCode writeNtuple(int runNumber, int runType, TFile *rootfile) override
Definition: TileTriggerDefaultCalibTool.cxx:429
readCCLHist.float
float
Definition: readCCLHist.py:83
TileTriggerDefaultCalibTool::m_rmsTileDAC
float(* m_rmsTileDAC)[Tile::MAX_DRAWER][Tile::MAX_CHAN]
Definition: TileTriggerDefaultCalibTool.h:77
Identifier
Definition: IdentifierFieldParser.cxx:14