 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef MUONTRUTHALGS_TruthHitSummaryAlg_H
10 #define MUONTRUTHALGS_TruthHitSummaryAlg_H
33 using AthReentrantAlgorithm::AthReentrantAlgorithm;
43 using ChamberIdMap = std::map<Muon::MuonStationIndex::ChIndex, std::vector<Identifier>>;
52 using WriteDecor_uint8_t = std::unique_ptr<SG::WriteDecorHandle<xAOD::TruthParticleContainer, uint8_t>>;
53 using llvec = std::vector<unsigned long long>;
54 using WriteDecor_llvec = std::unique_ptr<SG::WriteDecorHandle<xAOD::TruthParticleContainer, llvec>>;
59 const EventContext& ctx) :
140 this,
"PRD_TruthMaps", {
"CSC_TruthMap",
"RPC_TruthMap",
"TGC_TruthMap",
"MDT_TruthMap"},
"remove NSW by default for now, can always be changed in the configuration"};
Property holding a SG store/key/clid from which a ReadHandle is made.
std::map< Muon::MuonStationIndex::ChIndex, std::vector< Identifier > > ChamberIdMap
This map contains all the hits corresponding to truth muons classified by chamber layer that recorded...
WriteDecorKey_t m_etaLayer3HitsKey
WriteDecor_llvec truthRpcHitsDecor
WriteDecor_uint8_t extendedLargeHitsDecor
WriteDecor_uint8_t innerSmallHitsDecor
WriteDecorKey_t m_truthMdtHitsKey
WriteDecorKey_t m_phiLayer2HitsKey
WriteDecor_uint8_t middleLargeHitsDecor
WriteDecor_uint8_t etaLayer4HitsDecor
StatusCode addHitIDVectors(const xAOD::TruthParticle &truthParticle, const ChamberIdMap &ids, summaryDecors &myDecors) const
This function collapses the information given by the ChamberIdMap, which contains all hits from a tru...
WriteDecor_uint8_t extendedSmallHitsDecor
WriteDecorKey_t m_outerLargeHitsKey
WriteDecor_uint8_t etaLayer1HitsDecor
WriteDecorKey_t m_etaLayer1HitsKey
WriteDecorKey_t m_truthCscHitsKey
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
WriteDecor_uint8_t phiLayer4HitsDecor
std::vector< unsigned long long > llvec
WriteDecorKey_t m_extendedSmallHitsKey
WriteDecor_uint8_t nprecLayersDecor
WriteDecor_llvec truthTgcHitsDecor
An algorithm that can be simultaneously executed in multiple threads.
WriteDecor_uint8_t etaLayer3HitsDecor
WriteDecor_uint8_t phiLayer1HitsDecor
WriteDecorKey_t m_ntrigEtaLayersKey
WriteDecorKey_t m_truthMMHitsKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteDecorKey_t m_nprecLayersKey
WriteDecorKey_t m_extendedLargeHitsKey
WriteDecor_llvec truthMMHitsDecor
WriteDecor_uint8_t phiLayer3HitsDecor
::StatusCode StatusCode
StatusCode definition for legacy code.
WriteDecor_uint8_t ntrigEtaLayersDecor
Class describing a truth particle in the MC record.
WriteDecorKey_t m_phiLayer3HitsKey
WriteDecorKey_t m_truthStgcHitsKey
Handle class for adding a decoration to an object.
WriteDecorKey_t m_etaLayer4HitsKey
WriteDecorKey_t m_middleLargeHitsKey
WriteDecorKey_t m_innerLargeHitsKey
std::unique_ptr< SG::WriteDecorHandle< xAOD::TruthParticleContainer, uint8_t > > WriteDecor_uint8_t
Struct object encapsulating all write-decorators.
WriteDecor_llvec truthMdtHitsDecor
StatusCode addHitCounts(const EventContext &ctx, const xAOD::TruthParticle &truthParticle, ChamberIdMap &ids, summaryDecors &myDecors) const
This is the actual function that decorates truth muons with hit counts.
WriteDecor_uint8_t innerLargeHitsDecor
WriteDecor_uint8_t outerLargeHitsDecor
summaryDecors(const TruthHitSummaryAlg *parent, const EventContext &ctx)
WriteDecorKey_t m_outerSmallHitsKey
WriteDecor_uint8_t etaLayer2HitsDecor
std::unique_ptr< SG::WriteDecorHandle< xAOD::TruthParticleContainer, llvec > > WriteDecor_llvec
WriteDecorKey_t m_truthTgcHitsKey
WriteDecorKey_t m_phiLayer4HitsKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_muonTruth
Key of the container of truth muons.
WriteDecorKey_t m_truthRpcHitsKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Handle for muonIdHelper service.
const TruthHitSummaryAlg * m_parent
WriteDecor_uint8_t phiLayer2HitsDecor
WriteDecorKey_t m_middleSmallHitsKey
WriteDecorKey_t m_nphiLayersKey
WriteDecorKey_t m_phiLayer1HitsKey
WriteDecorKey_t m_innerSmallHitsKey
WriteDecor_uint8_t outerSmallHitsDecor
SG::ReadHandleKeyArray< PRD_MultiTruthCollection > m_PRD_TruthNames
Keys for the containers of truth hits, grouped by detector technology.
const EventContext & m_ctx
WriteDecorKey_t m_etaLayer2HitsKey
friend struct summaryDecors
WriteDecor_uint8_t middleSmallHitsDecor
WriteDecor_llvec truthStgcHitsDecor
WriteDecor_llvec truthCscHitsDecor
WriteDecor_uint8_t nphiLayersDecor
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override