ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonTruthAlgs
src
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
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/ToolHandle.h"
11
#include "
GeneratorObjects/McEventCollection.h
"
12
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
13
#include "
MuonRecHelperTools/MuonEDMPrinterTool.h
"
14
#include "
MuonRecToolInterfaces/IMuonTrackTruthTool.h
"
15
#include "
MuonSimData/CscSimDataCollection.h
"
16
#include "
MuonSimData/MuonSimDataCollection.h
"
17
#include "
StoreGate/ReadHandleKey.h
"
18
#include "
StoreGate/WriteDecorHandleKey.h
"
19
#include "
TrackRecord/TrackRecordCollection.h
"
20
#include "
TrkTrack/TrackCollection.h
"
21
#include "
xAODMuon/MuonSegmentContainer.h
"
22
23
namespace
Muon
{
24
25
class
MuonSegmentTruthAssociationAlg
:
public
AthReentrantAlgorithm
{
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
41
SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer>
m_muonTruthSegmentContainerName
{
42
this
,
"MuonTruthSegmentName"
,
"MuonTruthSegments"
,
"muon truth segment container name"
};
43
SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer>
m_muonSegmentCollectionName
{
this
,
"MuonSegmentLocation"
,
"MuonSegments"
,
44
"muon segment container name"
};
45
46
SG::ReadHandleKey<McEventCollection>
m_mcEventColl
{
this
,
"McEventCollectionKey"
,
"TruthEvent"
,
"McEventCollection"
};
47
SG::ReadHandleKeyArray<MuonSimDataCollection>
m_muonSimData
{
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
AthReentrantAlgorithm.h
CscSimDataCollection.h
IMuonIdHelperSvc.h
IMuonTrackTruthTool.h
McEventCollection.h
MuonEDMPrinterTool.h
MuonSegmentContainer.h
MuonSimDataCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrackCollection.h
TrackRecordCollection.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
Muon::MuonSegmentTruthAssociationAlg::m_muonTrackTruthTool
ToolHandle< Muon::IMuonTrackTruthTool > m_muonTrackTruthTool
Definition
MuonSegmentTruthAssociationAlg.h:38
Muon::MuonSegmentTruthAssociationAlg::m_muonSegmentCollectionName
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_muonSegmentCollectionName
Definition
MuonSegmentTruthAssociationAlg.h:43
Muon::MuonSegmentTruthAssociationAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MuonSegmentTruthAssociationAlg.h:35
Muon::MuonSegmentTruthAssociationAlg::initialize
virtual StatusCode initialize() override
Definition
MuonSegmentTruthAssociationAlg.cxx:24
Muon::MuonSegmentTruthAssociationAlg::MuonSegmentTruthAssociationAlg
MuonSegmentTruthAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
MuonSegmentTruthAssociationAlg.cxx:20
Muon::MuonSegmentTruthAssociationAlg::m_muonSimData
SG::ReadHandleKeyArray< MuonSimDataCollection > m_muonSimData
Definition
MuonSegmentTruthAssociationAlg.h:47
Muon::MuonSegmentTruthAssociationAlg::m_printer
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
Definition
MuonSegmentTruthAssociationAlg.h:37
Muon::MuonSegmentTruthAssociationAlg::m_mcEventColl
SG::ReadHandleKey< McEventCollection > m_mcEventColl
Definition
MuonSegmentTruthAssociationAlg.h:46
Muon::MuonSegmentTruthAssociationAlg::m_cscSimData
SG::ReadHandleKey< CscSimDataCollection > m_cscSimData
Definition
MuonSegmentTruthAssociationAlg.h:49
Muon::MuonSegmentTruthAssociationAlg::m_muonTruthSegmentContainerName
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_muonTruthSegmentContainerName
Definition
MuonSegmentTruthAssociationAlg.h:41
Muon::MuonSegmentTruthAssociationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
MuonSegmentTruthAssociationAlg.cxx:41
Muon::MuonSegmentTruthAssociationAlg::m_trackRecord
SG::ReadHandleKey< TrackRecordCollection > m_trackRecord
Definition
MuonSegmentTruthAssociationAlg.h:50
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
ServiceHandle
Definition
ClusterMakerTool.h:36
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0