ATLAS Offline Software
MuonSegmentTruthAssociationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRUTHPARTICLEALGS_MUONSEGMENTTRUTHASSOCIATION_H
6 #define TRUTHPARTICLEALGS_MUONSEGMENTTRUTHASSOCIATION_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
22 
23 namespace Muon {
24 
26  public:
27  // Constructor with parameters:
28  MuonSegmentTruthAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator);
29 
30  // Basic algorithm methods:
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext &ctx) const override;
33 
34  private:
35  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
36 
37  PublicToolHandle<Muon::MuonEDMPrinterTool> m_printer{this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"};
38  ToolHandle<Muon::IMuonTrackTruthTool> m_muonTrackTruthTool{this, "MuonTrackTruthTool",
39  "Muon::MuonTrackTruthTool/MuonTrackTruthTool"};
40 
42  this, "MuonTruthSegmentName", "MuonTruthSegments", "muon truth segment container name"};
44  "muon segment container name"};
45 
46  SG::ReadHandleKey<McEventCollection> m_mcEventColl{this, "McEventCollectionKey", "TruthEvent", "McEventCollection"};
48  this, "MuonSimDataNames", {"MDT_SDO", "RPC_SDO", "TGC_SDO", "sTGC_SDO", "MM_SDO"}, "Muon SDO maps"};
49  SG::ReadHandleKey<CscSimDataCollection> m_cscSimData{this, "CSC_SDO_Container", "CSC_SDO", "CSC SDO"};
50  SG::ReadHandleKey<TrackRecordCollection> m_trackRecord{this, "TrackRecord", "MuonEntryLayerFilter", "Track Record Collection"};
51 
52  };
53 
54 } // namespace Muon
55 
56 #endif // TRUTHPARTICLEALGS_MUONTRUTHDECORATIONALG_H
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
Muon::MuonSegmentTruthAssociationAlg::m_printer
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
Definition: MuonSegmentTruthAssociationAlg.h:37
MuonEDMPrinterTool.h
Muon::MuonSegmentTruthAssociationAlg::m_trackRecord
SG::ReadHandleKey< TrackRecordCollection > m_trackRecord
Definition: MuonSegmentTruthAssociationAlg.h:50
CscSimDataCollection.h
Muon::MuonSegmentTruthAssociationAlg
Definition: MuonSegmentTruthAssociationAlg.h:25
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
SG::ReadHandleKey< McEventCollection >
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::MuonSegmentTruthAssociationAlg::initialize
virtual StatusCode initialize() override
Definition: MuonSegmentTruthAssociationAlg.cxx:24
MuonSegmentContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
Muon::MuonSegmentTruthAssociationAlg::MuonSegmentTruthAssociationAlg
MuonSegmentTruthAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonSegmentTruthAssociationAlg.cxx:20
Muon::MuonSegmentTruthAssociationAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonSegmentTruthAssociationAlg.h:35
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
McEventCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrackCollection.h
Muon::MuonSegmentTruthAssociationAlg::m_muonTruthSegmentContainerName
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_muonTruthSegmentContainerName
Definition: MuonSegmentTruthAssociationAlg.h:41
IMuonTrackTruthTool.h
Muon::MuonSegmentTruthAssociationAlg::m_muonSegmentCollectionName
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_muonSegmentCollectionName
Definition: MuonSegmentTruthAssociationAlg.h:43
Muon::MuonSegmentTruthAssociationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonSegmentTruthAssociationAlg.cxx:41
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Muon::MuonSegmentTruthAssociationAlg::m_muonSimData
SG::ReadHandleKeyArray< MuonSimDataCollection > m_muonSimData
Definition: MuonSegmentTruthAssociationAlg.h:47
TrackRecordCollection.h
Muon::MuonSegmentTruthAssociationAlg::m_muonTrackTruthTool
ToolHandle< Muon::IMuonTrackTruthTool > m_muonTrackTruthTool
Definition: MuonSegmentTruthAssociationAlg.h:38
Muon::MuonSegmentTruthAssociationAlg::m_mcEventColl
SG::ReadHandleKey< McEventCollection > m_mcEventColl
Definition: MuonSegmentTruthAssociationAlg.h:46
MuonSimDataCollection.h
Muon::MuonSegmentTruthAssociationAlg::m_cscSimData
SG::ReadHandleKey< CscSimDataCollection > m_cscSimData
Definition: MuonSegmentTruthAssociationAlg.h:49
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >