ATLAS Offline Software
MuonPRD_MultiTruthMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MuonPRD_MultiTruthMaker_H
5 #define MuonPRD_MultiTruthMaker_H
6 
7 
20 
22 public:
24  virtual StatusCode initialize() override final;
25  virtual StatusCode execute(const EventContext& ctx) const override final;
26 
27 private:
28  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
29 
30  SG::ReadHandleKey<Muon::MdtPrepDataContainer> m_MdtPrdKey{this, "MdtPrdKey", "MDT_DriftCircles" };
31  SG::ReadHandleKey<Muon::CscPrepDataContainer> m_CscPrdKey{this, "CscPrdKey", "CSC_Clusters" };
32  SG::ReadHandleKey<Muon::RpcPrepDataContainer> m_RpcPrdKey{this, "RpcPrdKey", "RPC_Measurements"};
33  SG::ReadHandleKey<Muon::TgcPrepDataContainer> m_TgcPrdKey{this, "TgcPrdKey", "TGC_Measurements" };
34  SG::ReadHandleKey<Muon::sTgcPrepDataContainer> m_sTgcPrdKey{this, "sTgcPrdKey", "STGC_Measurements" };
35  SG::ReadHandleKey<Muon::MMPrepDataContainer> m_MmPrdKey{this, "MmPrdKey", "MM_Measurements"};
36 
41  SG::ReadHandleKey<MuonSimDataCollection> m_sTgcSDOKey{this, "sTgcSdoKey", "sTGC_SDO"};
43 
44  SG::WriteHandleKey<PRD_MultiTruthCollection> m_MdtTruthMapKey{this, "MdtTruthMapKey", "MDT_TruthMap"};
45  SG::WriteHandleKey<PRD_MultiTruthCollection> m_RpcTruthMapKey{this, "RpcTruthMapKey", "RPC_TruthMap"};
46  SG::WriteHandleKey<PRD_MultiTruthCollection> m_CscTruthMapKey{this, "CscTruthMapKey", "CSC_TruthMap"};
47  SG::WriteHandleKey<PRD_MultiTruthCollection> m_TgcTruthMapKey{this, "TgcTruthMapKey", "TGC_TruthMap"};
48  SG::WriteHandleKey<PRD_MultiTruthCollection> m_sTgcTruthMapKey{this, "sTgcTruthMapKey", "STGC_TruthMap"};
49  SG::WriteHandleKey<PRD_MultiTruthCollection> m_MmTruthMapKey{this, "MmTruthMapKey", "MM_TruthMap" };
50 
51  //----------------------------------------------------------------
52  template <class PrdType, class SimCollection>
53  StatusCode buildPRD_Truth(const EventContext& ctx,
57 };
58 
59 #endif // PRD_MULTITRUTHMAKER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
MuonPRD_MultiTruthMaker::m_MdtSDOKey
SG::ReadHandleKey< MuonSimDataCollection > m_MdtSDOKey
Definition: MuonPRD_MultiTruthMaker.h:37
MuonPRD_MultiTruthMaker::m_MmPrdKey
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_MmPrdKey
Definition: MuonPRD_MultiTruthMaker.h:35
CscSimDataCollection.h
MuonPRD_MultiTruthMaker::m_CscTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_CscTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:46
MuonPRD_MultiTruthMaker::m_sTgcPrdKey
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_sTgcPrdKey
Definition: MuonPRD_MultiTruthMaker.h:34
MMPrepDataContainer.h
MuonPrepDataContainer.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
sTgcPrepDataContainer.h
MuonPRD_MultiTruthMaker::m_CscPrdKey
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_CscPrdKey
Definition: MuonPRD_MultiTruthMaker.h:31
MuonPRD_MultiTruthMaker::m_sTgcSDOKey
SG::ReadHandleKey< MuonSimDataCollection > m_sTgcSDOKey
Definition: MuonPRD_MultiTruthMaker.h:41
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonPRD_MultiTruthMaker::initialize
virtual StatusCode initialize() override final
Definition: MuonPRD_MultiTruthMaker.cxx:13
TileDigitizationConfig.outputKey
outputKey
Definition: TileDigitizationConfig.py:104
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey< PRD_MultiTruthCollection >
MuonPrepDataCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonPRD_MultiTruthMaker::m_CscSDOKey
SG::ReadHandleKey< CscSimDataCollection > m_CscSDOKey
Definition: MuonPRD_MultiTruthMaker.h:38
MuonPRD_MultiTruthMaker::m_TgcTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_TgcTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:47
MuonPRD_MultiTruthMaker::m_MmTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_MmTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:49
MuonPRD_MultiTruthMaker::m_RpcPrdKey
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_RpcPrdKey
Definition: MuonPRD_MultiTruthMaker.h:32
MuonPRD_MultiTruthMaker::m_sTgcTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_sTgcTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:48
MuonPRD_MultiTruthMaker::m_MdtPrdKey
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_MdtPrdKey
Definition: MuonPRD_MultiTruthMaker.h:30
MuonPRD_MultiTruthMaker::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: MuonPRD_MultiTruthMaker.cxx:40
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
MuonPRD_MultiTruthMaker::m_TgcSDOKey
SG::ReadHandleKey< MuonSimDataCollection > m_TgcSDOKey
Definition: MuonPRD_MultiTruthMaker.h:40
MuonPRD_MultiTruthMaker::buildPRD_Truth
StatusCode buildPRD_Truth(const EventContext &ctx, const SG::ReadHandleKey< Muon::MuonPrepDataContainerT< PrdType >> &prepDataKey, const SG::ReadHandleKey< SimCollection > &sdoKey, const SG::WriteHandleKey< PRD_MultiTruthCollection > &outputKey) const
Definition: MuonPRD_MultiTruthMaker.cxx:53
MuonPRD_MultiTruthMaker
Definition: MuonPRD_MultiTruthMaker.h:21
MuonPRD_MultiTruthMaker::m_MdtTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_MdtTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:44
MuonPRD_MultiTruthMaker::m_RpcSDOKey
SG::ReadHandleKey< MuonSimDataCollection > m_RpcSDOKey
Definition: MuonPRD_MultiTruthMaker.h:39
MuonPRD_MultiTruthMaker::m_MmSDOKey
SG::ReadHandleKey< MuonSimDataCollection > m_MmSDOKey
Definition: MuonPRD_MultiTruthMaker.h:42
PRD_MultiTruthCollection.h
MuonPRD_MultiTruthMaker::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonPRD_MultiTruthMaker.h:28
MuonPRD_MultiTruthMaker::m_RpcTruthMapKey
SG::WriteHandleKey< PRD_MultiTruthCollection > m_RpcTruthMapKey
Definition: MuonPRD_MultiTruthMaker.h:45
MuonSimDataCollection.h
IMuonIdHelperSvc.h
MuonSimData.h
ServiceHandle< Muon::IMuonIdHelperSvc >
MuonPRD_MultiTruthMaker::m_TgcPrdKey
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_TgcPrdKey
Definition: MuonPRD_MultiTruthMaker.h:33