ATLAS Offline Software
ZdcMCTruthAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZdcMCTruthAlg_H
6 #define ZdcMCTruthAlg_H
7 
8 
15 #include "ZdcIdentifier/ZdcID.h"
16 
17 #include <string>
18 
19 class ZdcMCTruthAlg : public AthAlgorithm {
20 
21 
22 public:
23 
24  ZdcMCTruthAlg(const std::string& name, ISvcLocator* pSvcLocator);
25 
26  virtual ~ZdcMCTruthAlg();
27 
30 
32 
33 
34 
35 private:
36  const ZdcID* m_zdcID;
37 
38  Gaudi::Property<std::string> m_auxSuffix{this, "AuxSuffix", "", "ZdcModuleAuxContainer decoration suffix"};
39 
40  SG::ReadHandleKey<CaloCalibrationHitContainer> m_CaloCalibrationHitContainerKey{this, "ZDC_CaloCalibrationHitContainerName", "ZDC_CalibrationHits"};
42  std::string m_zdcSumContainerName;
43 
44  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcModuleTruthTotalEnergy{this, "ZdcModuleTruthTotalEnergy" , "", "ZDC module Total Truth Energy"};
45  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcModuleTruthInvisEnergy{this, "ZdcModuleTruthInvisibleEnergy", "", "ZDC module Invisible Truth Energy"};
46  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcModuleTruthEMEnergy {this, "ZdcModuleTruthEMEnergy" , "", "ZDC module EM Truth Energy"};
47  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcModuleTruthNonEMEnergy{this, "ZdcModuleTruthNonEMEnergy" , "", "ZDC module Non EM Truth Energy"};
48  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcModuleTruthEscEnergy {this, "ZdcModuleTruthEscapedEnergy" , "", "ZDC module Escaped Truth Energy"};
49  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_rpdTileXpositionRelative {this, "xposRel" , "", "RPD module tile x position relative to the center of the module"};
50  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_rpdTileYpositionRelative {this, "yposRel" , "", "RPD module tile y position relative to the center of the module"};
51  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_rpdTileRowNumber {this, "row" , "", "RPD channel row number"};
52  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_rpdTileColumnNumber {this, "col" , "", "RPD channel column number"};
53  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcSumTruthTotalEnergy {this, "ZdcSumTruthTotalEnergy" , "", "ZDC Sum Total Truth Energy"};
54  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcSumTruthInvisEnergy {this, "ZdcSumTruthInvisibleEnergy" , "", "ZDC Sum Invisible Truth Energy"};
55  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcSumTruthEMEnergy {this, "ZdcSumTruthEMEnergy" , "", "ZDC Sum EM Truth Energy"};
56  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcSumTruthNonEMEnergy {this, "ZdcSumTruthNonEMEnergy" , "", "ZDC Sum Non EM Truth Energy"};
57  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_zdcSumTruthEscEnergy {this, "ZdcSumTruthEscapedEnergy" , "", "ZDC Sum Escaped Truth Energy"};
58 };
59 
60 #endif
61 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
ZdcMCTruthAlg::m_zdcModuleTruthEMEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleTruthEMEnergy
Definition: ZdcMCTruthAlg.h:46
ZdcMCTruthAlg::m_zdcSumTruthNonEMEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcSumTruthNonEMEnergy
Definition: ZdcMCTruthAlg.h:56
ZdcMCTruthAlg::m_rpdTileColumnNumber
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_rpdTileColumnNumber
Definition: ZdcMCTruthAlg.h:52
ZdcMCTruthAlg::m_zdcModuleTruthTotalEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleTruthTotalEnergy
Definition: ZdcMCTruthAlg.h:44
ZdcMCTruthAlg::m_zdcSumTruthInvisEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcSumTruthInvisEnergy
Definition: ZdcMCTruthAlg.h:54
ZdcMCTruthAlg
Definition: ZdcMCTruthAlg.h:19
ZdcMCTruthAlg::ZdcMCTruthAlg
ZdcMCTruthAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ZdcMCTruthAlg.cxx:11
SG::ReadHandleKey< CaloCalibrationHitContainer >
ZdcMCTruthAlg::m_zdcModuleContainerName
std::string m_zdcModuleContainerName
Definition: ZdcMCTruthAlg.h:41
ZdcMCTruthAlg::m_zdcSumTruthEMEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcSumTruthEMEnergy
Definition: ZdcMCTruthAlg.h:55
CaloCalibrationHitContainer.h
ZdcMCTruthAlg::m_zdcSumTruthTotalEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcSumTruthTotalEnergy
Definition: ZdcMCTruthAlg.h:53
ZdcMCTruthAlg::finalize
StatusCode finalize()
Definition: ZdcMCTruthAlg.cxx:231
ZdcModuleAuxContainer.h
AthAlgorithm.h
ZdcMCTruthAlg::execute
StatusCode execute()
Definition: ZdcMCTruthAlg.cxx:79
ZdcMCTruthAlg::m_auxSuffix
Gaudi::Property< std::string > m_auxSuffix
Definition: ZdcMCTruthAlg.h:38
ZdcMCTruthAlg::m_zdcSumTruthEscEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcSumTruthEscEnergy
Definition: ZdcMCTruthAlg.h:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ZdcMCTruthAlg::m_rpdTileRowNumber
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_rpdTileRowNumber
Definition: ZdcMCTruthAlg.h:51
ZdcMCTruthAlg::initialize
StatusCode initialize()
Definition: ZdcMCTruthAlg.cxx:24
ZdcMCTruthAlg::m_zdcModuleTruthInvisEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleTruthInvisEnergy
Definition: ZdcMCTruthAlg.h:45
ZdcMCTruthAlg::m_zdcModuleTruthEscEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleTruthEscEnergy
Definition: ZdcMCTruthAlg.h:48
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ZdcMCTruthAlg::~ZdcMCTruthAlg
virtual ~ZdcMCTruthAlg()
Definition: ZdcMCTruthAlg.cxx:19
WriteDecorHandleKey.h
ZdcID.h
ZdcMCTruthAlg::m_zdcModuleTruthNonEMEnergy
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleTruthNonEMEnergy
Definition: ZdcMCTruthAlg.h:47
ZdcMCTruthAlg::m_CaloCalibrationHitContainerKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_CaloCalibrationHitContainerKey
Definition: ZdcMCTruthAlg.h:40
ZdcMCTruthAlg::m_zdcID
const ZdcID * m_zdcID
Definition: ZdcMCTruthAlg.h:36
ZdcMCTruthAlg::m_rpdTileYpositionRelative
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_rpdTileYpositionRelative
Definition: ZdcMCTruthAlg.h:50
ZdcMCTruthAlg::m_rpdTileXpositionRelative
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_rpdTileXpositionRelative
Definition: ZdcMCTruthAlg.h:49
ZdcID
Definition: ZdcID.h:25
ZdcModuleContainer.h
ZdcMCTruthAlg::m_zdcSumContainerName
std::string m_zdcSumContainerName
Definition: ZdcMCTruthAlg.h:42