ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::TruthHitSummaryAlg Class Reference

#include <TruthHitSummaryAlg.h>

Inheritance diagram for Muon::TruthHitSummaryAlg:
Collaboration diagram for Muon::TruthHitSummaryAlg:

Classes

struct  summaryDecors

Public Types

using ChamberIdMap = std::map<Muon::MuonStationIndex::ChIndex, std::vector<Identifier>>
 This map contains all the hits corresponding to truth muons classified by chamber layer that recorded them.

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

using WriteDecor_uint8_t = std::unique_ptr<SG::WriteDecorHandle<xAOD::TruthParticleContainer, uint8_t>>
 Struct object encapsulating all write-decorators.
using llvec = std::vector<unsigned long long>
using WriteDecor_llvec = std::unique_ptr<SG::WriteDecorHandle<xAOD::TruthParticleContainer, llvec>>
using WriteDecorKey_t = SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
 Key for each write-decorator.
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

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.
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 truth muon classified by chamber, into 6 vectors carrying these hits categorized by detector technology (MDT, TGC, RPC, sTGC, CSC, MM).
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::TruthParticleContainerm_muonTruth {this, "muonTruth", "MuonTruthParticles"}
 Key of the container of truth muons.
SG::ReadHandleKeyArray< PRD_MultiTruthCollectionm_PRD_TruthNames
 Keys for the containers of truth hits, grouped by detector technology.
WriteDecorKey_t m_nprecLayersKey {this, "nprecLayersKey", m_muonTruth, "nprecLayers", ""}
WriteDecorKey_t m_nphiLayersKey {this, "nphiLayersKey", m_muonTruth, "nphiLayers", ""}
WriteDecorKey_t m_ntrigEtaLayersKey {this, "ntrigEtaLayersKey", m_muonTruth, "ntrigEtaLayers", ""}
WriteDecorKey_t m_innerSmallHitsKey {this, "innerSmallHitsKey", m_muonTruth, "innerSmallHits", ""}
WriteDecorKey_t m_innerLargeHitsKey {this, "innerLargeHitsKey", m_muonTruth, "innerLargeHits", ""}
WriteDecorKey_t m_middleSmallHitsKey {this, "middleSmallHitsKey", m_muonTruth, "middleSmallHits", ""}
WriteDecorKey_t m_middleLargeHitsKey {this, "middleLargeHitsKey", m_muonTruth, "middleLargeHits", ""}
WriteDecorKey_t m_outerSmallHitsKey {this, "outerSmallHitsKey", m_muonTruth, "outerSmallHits", ""}
WriteDecorKey_t m_outerLargeHitsKey {this, "outerLargeHitsKey", m_muonTruth, "outerLargeHits", ""}
WriteDecorKey_t m_extendedSmallHitsKey {this, "extendedSmallHitsKey", m_muonTruth, "extendedSmallHits", ""}
WriteDecorKey_t m_extendedLargeHitsKey {this, "extendedLargeHitsKey", m_muonTruth, "extendedLargeHits", ""}
WriteDecorKey_t m_phiLayer1HitsKey {this, "phiLayer1HitsKey", m_muonTruth, "phiLayer1Hits", ""}
WriteDecorKey_t m_phiLayer2HitsKey {this, "phiLayer2HitsKey", m_muonTruth, "phiLayer2Hits", ""}
WriteDecorKey_t m_phiLayer3HitsKey {this, "phiLayer3HitsKey", m_muonTruth, "phiLayer3Hits", ""}
WriteDecorKey_t m_phiLayer4HitsKey {this, "phiLayer4HitsKey", m_muonTruth, "phiLayer4Hits", ""}
WriteDecorKey_t m_etaLayer1HitsKey {this, "etaLayer1HitsKey", m_muonTruth, "etaLayer1Hits", ""}
WriteDecorKey_t m_etaLayer2HitsKey {this, "etaLayer2HitsKey", m_muonTruth, "etaLayer2Hits", ""}
WriteDecorKey_t m_etaLayer3HitsKey {this, "etaLayer3HitsKey", m_muonTruth, "etaLayer3Hits", ""}
WriteDecorKey_t m_etaLayer4HitsKey {this, "etaLayer4HitsKey", m_muonTruth, "etaLayer4Hits", ""}
WriteDecorKey_t m_truthMdtHitsKey {this, "truthMdtHitsKey", m_muonTruth, "truthMdtHits", ""}
WriteDecorKey_t m_truthTgcHitsKey {this, "truthTgcHitsKey", m_muonTruth, "truthTgcHits", ""}
WriteDecorKey_t m_truthRpcHitsKey {this, "truthRpcHitsKey", m_muonTruth, "truthRpcHits", ""}
WriteDecorKey_t m_truthCscHitsKey {this, "truthCscHitskey", m_muonTruth, "truthCscHits", ""}
WriteDecorKey_t m_truthStgcHitsKey {this, "truthStgcHitsKey", m_muonTruth, "truthStgcHits", ""}
WriteDecorKey_t m_truthMMHitsKey {this, "truthMMHitsKey", m_muonTruth, "truthMMHits", ""}
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 Handle for muonIdHelper service.
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Friends

struct summaryDecors

Detailed Description

Definition at line 29 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

Member Typedef Documentation

◆ ChamberIdMap

This map contains all the hits corresponding to truth muons classified by chamber layer that recorded them.

ChIndex is the chamber layer index (e.g. BMS, BOL,...), while Identifier is the hit ID, which represents the channel where the hit has been recorded.

Definition at line 43 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

◆ llvec

using Muon::TruthHitSummaryAlg::llvec = std::vector<unsigned long long>
private

Definition at line 53 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ WriteDecor_llvec

◆ WriteDecor_uint8_t

Struct object encapsulating all write-decorators.

See the keys declaration below for the full list of decorators. As WriteDecor do not have default empty constructor, we cannot decouple declaration and population of this object. Therefore we define a constuctor taking

Parameters
parentalg instance, needed for the decorator keys, and
ctxevent context. In this way when we build a struct instance we automatically retrieve all write-decorators for that event context.

Definition at line 52 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

◆ WriteDecorKey_t

Key for each write-decorator.

List of decorators: nprecLayers counts coincidences between chamber layers (> 2-3)
considering hits from precision chambers; nphiLayers counts coincidences between phi chamber layers (> 0-2-3) considering hits with phi-measurement; ntrigEtaLayers counts coincidences between phi chamber layers (> 0-2-3) considering hits from trigger chambers with only-eta measurement; innerSmallHits, innerLargeHits, middleSmallHits, middleLargeHits, outerSmallHits, outerLargeHits, extendedSmallHits, extendedLargeHits count hits from precision chambers classified by inner/middle/outer/extended stations and small/large sectors; phiLayerjHits j=1,2,3,4 count hits with phi-measurment classified by 1/2/3/4 phi chamber layers; etaLayerjHits j=1,2,3,4 count hits from trigger chambers with only-eta measurement classified by 1/2/3/4 phi chamber layers; truthMdtHits, truthTgcHits, truthRpcHits, truthCscHits, truthStgcHits, truthMMHits are vectors carrying hit IDs categorized by detector technology (MDT, TGC, RPC, sTGC, CSC, MM).

Definition at line 151 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

Member Function Documentation

◆ addHitCounts()

StatusCode Muon::TruthHitSummaryAlg::addHitCounts ( const EventContext & ctx,
const xAOD::TruthParticle & truthParticle,
ChamberIdMap & ids,
summaryDecors & myDecors ) const
private

This is the actual function that decorates truth muons with hit counts.

For each truth muon, we loop over the detector technologies and over the recorded hits. If a hit originated by that muon is found, we store the hit ID into a map (=ids), which contains all hits corresponding to truth muons classified by the chamber that recorded them. In addition, we update the following counters: -* nprecHitsPerChamberLayer[] counts the hits recorded by precision chambers (MDTs, MM, sTGCs with no phi
measurement), classified by chamber layer (eg. BIS, BML, ...); -* nphiHitsPerChamberLayer[] counts the hits recorded by chambers providing phi-measurement (sSTGs+trigger+others chambers with phi measurement), classified by phi chamber layer (e.g. BM1, BM2, BO1, ...); -* ntrigEtaHitsPerChamberLayer[] counts the hits recorded by trigger chambers (RPC, TGC) with only eta measurement, classified by phi chamber layer. At the end, we use this information to perfom further classification and save results (i.e. resulting counters) to decorators: – hits from precision chambers classified by inner/middle/outer/extended stations and small/large sectors – hits with phi-measurment classified by 1/2/3/4 phi chamber layers – hits from trigger chambers with only-eta measurement classified by 1/2/3/4 phi chamber layers – coincidences between chamber layers (> 2-3) considering hits from precision chambers – coincidences between phi chamber layers (> 0-2-3) considering hits with phi-measurement – coincidences between phi chamber layers (> 0-2-3) considering hits from trigger chambers with only-eta measurement

Parameters
ctxtells in which event we are
truthParticlereference to truth muon
idsreference to the empty chamberIdMap object that is going to be populated with truth muons'hits
myDecorsreference to the summary write-decorator object

Definition at line 66 of file MuonTruthAlgs/src/TruthHitSummaryAlg.cxx.

68 {
69
70 std::vector<unsigned int> nprecHitsPerChamberLayer;
71 std::vector<unsigned int> nphiHitsPerChamberLayer;
72 std::vector<unsigned int> ntrigEtaHitsPerChamberLayer;
73
74 ntrigEtaHitsPerChamberLayer.resize(toInt(PhiIndex::PhiIndexMax));
75 nprecHitsPerChamberLayer.resize(toInt(ChIndex::ChIndexMax));
76 nphiHitsPerChamberLayer.resize(toInt(PhiIndex::PhiIndexMax));
77
78 ATH_MSG_DEBUG("addHitCounts: unique ID " << HepMC::uniqueID(truthParticle));
79 auto truthParticleHistory = HepMC::simulation_history(&truthParticle, -1); // Returns a list of unique IDs
80 // loop over detector technologies
81 for (SG::ReadHandle<PRD_MultiTruthCollection>& col : m_PRD_TruthNames.makeHandles(ctx)) {
82 ATH_CHECK(col.isPresent());
83
84 // loop over trajectories
85 for (const std::pair<Identifier, HepMcParticleLink> trajectory : *col) {
86 // check if gen particle same as input
87 if (std::ranges::find(truthParticleHistory, HepMC::uniqueID(trajectory.second)) == truthParticleHistory.end()) {
88 continue;
89 }
90 const Identifier& id = trajectory.first;
91 bool measPhi = m_idHelperSvc->measuresPhi(id);
92 bool isTgc = m_idHelperSvc->isTgc(id);
93 ChIndex chIndex = !isTgc ? m_idHelperSvc->chamberIndex(id) : ChIndex::ChUnknown;
94
95 // add identifier to map
96 if (m_idHelperSvc->isTgc(id)) { // TGCS should be added to both EIL and EIS
97 PhiIndex index = m_idHelperSvc->phiIndex(id);
98 if (index == PhiIndex::T4) {
99 ids[ChIndex::EIS].push_back(id);
100 ids[ChIndex::EIL].push_back(id);
101 } else {
102 ids[ChIndex::EMS].push_back(id);
103 ids[ChIndex::EML].push_back(id);
104 }
105 } else {
106 ids[m_idHelperSvc->chamberIndex(id)].push_back(id);
107 }
108 if (m_idHelperSvc->issTgc(id)) {
109 if (measPhi) {
110 PhiIndex index = m_idHelperSvc->phiIndex(id);
111 ++nphiHitsPerChamberLayer.at(toInt(index));
112 } else {
113 ++nprecHitsPerChamberLayer.at(toInt(chIndex));
114 }
115 } else if (m_idHelperSvc->isMM(id)) {
116 ++nprecHitsPerChamberLayer.at(toInt(chIndex));
117 } else if (m_idHelperSvc->isTrigger(id)) {
118 PhiIndex index = m_idHelperSvc->phiIndex(id);
119 if (index != PhiIndex::PhiUnknown) {
120 if (measPhi)
121 ++nphiHitsPerChamberLayer.at(toInt(index));
122 else
123 ++ntrigEtaHitsPerChamberLayer.at(toInt(index));
124 }
125 } else {
126 if (measPhi) {
127 PhiIndex index = m_idHelperSvc->phiIndex(id);
128 ++nphiHitsPerChamberLayer.at(toInt(index));
129 } else {
130 ++nprecHitsPerChamberLayer.at(toInt(chIndex));
131 }
132 }
133 }
134 }
135
136 uint8_t innerSmallHits = nprecHitsPerChamberLayer[toInt(ChIndex::BIS)] +
137 nprecHitsPerChamberLayer[toInt(ChIndex::EIS)] +
138 nprecHitsPerChamberLayer[toInt(ChIndex::CSS)];
139
140 uint8_t innerLargeHits = nprecHitsPerChamberLayer[toInt(ChIndex::BIL)] +
141 nprecHitsPerChamberLayer[toInt(ChIndex::EIL)] +
142 nprecHitsPerChamberLayer[toInt(ChIndex::CSL)];
143
144 uint8_t middleSmallHits = nprecHitsPerChamberLayer[toInt(ChIndex::BMS)] +
145 nprecHitsPerChamberLayer[toInt(ChIndex::EMS)];
146
147 uint8_t middleLargeHits = nprecHitsPerChamberLayer[toInt(ChIndex::BML)] +
148 nprecHitsPerChamberLayer[toInt(ChIndex::EML)];
149
150 uint8_t outerSmallHits = nprecHitsPerChamberLayer[toInt(ChIndex::BOS)] +
151 nprecHitsPerChamberLayer[toInt(ChIndex::EOS)];
152
153 uint8_t outerLargeHits = nprecHitsPerChamberLayer[toInt(ChIndex::BML)] +
154 nprecHitsPerChamberLayer[toInt(ChIndex::EOL)];
155
156 uint8_t extendedSmallHits = nprecHitsPerChamberLayer[toInt(ChIndex::EES)] +
157 nprecHitsPerChamberLayer[toInt(ChIndex::BEE)];
158
159 uint8_t extendedLargeHits = nprecHitsPerChamberLayer[toInt(ChIndex::EEL)];
160
161 uint8_t phiLayer1Hits = nphiHitsPerChamberLayer[toInt(PhiIndex::BM1)] +
162 nphiHitsPerChamberLayer[toInt(PhiIndex::T4)] +
163 nphiHitsPerChamberLayer[toInt(PhiIndex::CSC)] +
164 nphiHitsPerChamberLayer[toInt(PhiIndex::STGC1)] +
165 nphiHitsPerChamberLayer[toInt(PhiIndex::STGC2)];
166
167 uint8_t phiLayer2Hits = nphiHitsPerChamberLayer[toInt(PhiIndex::BM2)] +
168 nphiHitsPerChamberLayer[toInt(PhiIndex::T1)];
169
170 uint8_t phiLayer3Hits = nphiHitsPerChamberLayer[toInt(PhiIndex::BO1)] +
171 nphiHitsPerChamberLayer[toInt(PhiIndex::T2)];
172
173 uint8_t phiLayer4Hits = nphiHitsPerChamberLayer[toInt(PhiIndex::BO2)] +
174 nphiHitsPerChamberLayer[toInt(PhiIndex::T3)];
175
176 uint8_t etaLayer1Hits = ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BM1)] +
177 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T4)]+
178 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::CSC)] +
179 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::STGC1)] +
180 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::STGC2)];
181
182 uint8_t etaLayer2Hits = ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BM2)] +
183 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T1)];
184
185 uint8_t etaLayer3Hits = ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BO1)] +
186 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T2)];
187
188 uint8_t etaLayer4Hits = ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BO2)] +
189 ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T3)];
190
191 uint8_t nprecLayers = 0;
192 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::BIS)] + nprecHitsPerChamberLayer[toInt(ChIndex::BIL)] > 3);
193 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::BMS)] + nprecHitsPerChamberLayer[toInt(ChIndex::BML)] > 2);
194 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::BOS)] + nprecHitsPerChamberLayer[toInt(ChIndex::BOL)] > 2);
195 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::EIS)] + nprecHitsPerChamberLayer[toInt(ChIndex::EIL)] > 3);
196 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::EMS)] + nprecHitsPerChamberLayer[toInt(ChIndex::EML)] > 2);
197 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::EOS)] + nprecHitsPerChamberLayer[toInt(ChIndex::EOL)] > 2);
198 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::EES)] + nprecHitsPerChamberLayer[toInt(ChIndex::EEL)] > 3);
199 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::CSS)] + nprecHitsPerChamberLayer[toInt(ChIndex::CSL)] > 2);
200 nprecLayers += (nprecHitsPerChamberLayer[toInt(ChIndex::BEE)] > 3);
201
202 uint8_t nphiLayers = 0;
203 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::BM1)] > 0);
204 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::BM2)] > 0);
205 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::BO1)] > 0);
206 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::BO2)] > 0);
207 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::T1)] > 0);
208 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::T2)] > 0);
209 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::T3)] > 0);
210 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::T4)] > 0);
211 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::CSC)] > 2);
212 nphiLayers += (nphiHitsPerChamberLayer[toInt(PhiIndex::STGC1)] + nphiHitsPerChamberLayer[toInt(PhiIndex::STGC2)] > 3);
213
214 uint8_t ntrigEtaLayers = 0;
215 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BM1)] > 0);
216 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BM2)] > 0);
217 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BO1)] > 0);
218 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::BO2)] > 0);
219 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T1)] > 0);
220 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T2)] > 0);
221 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T3)] > 0);
222 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::T4)] > 0);
223 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::CSC)] > 2);
224 ntrigEtaLayers += (ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::STGC1)] + ntrigEtaHitsPerChamberLayer[toInt(PhiIndex::STGC2)] > 3);
225 // copy hit counts onto TruthParticle
226 (*myDecors.nprecLayersDecor)(truthParticle) = nprecLayers;
227 (*myDecors.nphiLayersDecor)(truthParticle) = nphiLayers;
228 (*myDecors.ntrigEtaLayersDecor)(truthParticle) = ntrigEtaLayers;
229 (*myDecors.innerSmallHitsDecor)(truthParticle) = innerSmallHits;
230 (*myDecors.innerLargeHitsDecor)(truthParticle) = innerLargeHits;
231 (*myDecors.middleSmallHitsDecor)(truthParticle) = middleSmallHits;
232 (*myDecors.middleLargeHitsDecor)(truthParticle) = middleLargeHits;
233 (*myDecors.outerSmallHitsDecor)(truthParticle) = outerSmallHits;
234 (*myDecors.outerLargeHitsDecor)(truthParticle) = outerLargeHits;
235 (*myDecors.extendedSmallHitsDecor)(truthParticle) = extendedSmallHits;
236 (*myDecors.extendedLargeHitsDecor)(truthParticle) = extendedLargeHits;
237
238 (*myDecors.phiLayer1HitsDecor)(truthParticle) = phiLayer1Hits;
239 (*myDecors.phiLayer2HitsDecor)(truthParticle) = phiLayer2Hits;
240 (*myDecors.phiLayer3HitsDecor)(truthParticle) = phiLayer3Hits;
241 (*myDecors.phiLayer4HitsDecor)(truthParticle) = phiLayer4Hits;
242
243 (*myDecors.etaLayer1HitsDecor)(truthParticle) = etaLayer1Hits;
244 (*myDecors.etaLayer2HitsDecor)(truthParticle) = etaLayer2Hits;
245 (*myDecors.etaLayer3HitsDecor)(truthParticle) = etaLayer3Hits;
246 (*myDecors.etaLayer4HitsDecor)(truthParticle) = etaLayer4Hits;
247
248
249 if (msgLvl(MSG::DEBUG)) {
250 ATH_MSG_DEBUG("Precision layers " << static_cast<int>(nprecLayers) << " phi layers " << static_cast<int>(nphiLayers)
251 << " triggerEta layers " << static_cast<int>(ntrigEtaLayers));
252
253 if (nprecLayers > 0) {
254 msg(MSG::VERBOSE) << " Precision chambers ";
255
256 for (int index = 0; index < static_cast<int>(nprecHitsPerChamberLayer.size()); ++index) {
257 if (nprecHitsPerChamberLayer[index] > 0)
258 msg(MSG::VERBOSE) << " " << chName(static_cast<ChIndex>(index))
259 << " hits " << nprecHitsPerChamberLayer[index];
260 }
261 }
262 if (nphiLayers > 0) {
263 msg(MSG::VERBOSE) << endmsg << " Phi chambers ";
264 for (int index = 0; index < static_cast<int>(nphiHitsPerChamberLayer.size()); ++index) {
265 if (nphiHitsPerChamberLayer[index] > 0)
266 msg(MSG::VERBOSE) << " " << phiName(static_cast<PhiIndex>(index))
267 << " hits " << nphiHitsPerChamberLayer[index];
268 }
269 }
270
271 if (ntrigEtaLayers > 0) {
272 msg(MSG::VERBOSE) << endmsg << " Trigger Eta ";
273 for (int index = 0; index < static_cast<int>(ntrigEtaHitsPerChamberLayer.size()); ++index) {
274 if (ntrigEtaHitsPerChamberLayer[index] > 0)
275 msg(MSG::VERBOSE) << " " << phiName(static_cast<PhiIndex>(index))
276 << " hits " << ntrigEtaHitsPerChamberLayer[index];
277 }
278 }
279 msg(MSG::VERBOSE) << endmsg;
280 }
281 return StatusCode::SUCCESS;
282 }
#define endmsg
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
bool msgLvl(const MSG::Level lvl) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Handle for muonIdHelper service.
SG::ReadHandleKeyArray< PRD_MultiTruthCollection > m_PRD_TruthNames
Keys for the containers of truth hits, grouped by detector technology.
str index
Definition DeMoScan.py:362
int uniqueID(const T &p)
std::deque< int > simulation_history(const T &p, const int direction)
Function to calculate all the descendants(direction=1)/ancestors(direction=-1) of the particle.
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
PhiIndex
enum to classify the different phi layers in the muon spectrometer
constexpr int toInt(const EnumType enumVal)
const std::string & chName(ChIndex index)
convert ChIndex into a string
const std::string & phiName(PhiIndex index)
convert PhiIndex into a string
ChIndex
enum to classify the different chamber layers in the muon spectrometer
@ phiLayer3Hits
number of phi hits in the third trigger layer (BOL1 ot T2)
@ outerSmallHits
number of precision hits in the outer small layer
@ phiLayer2Hits
number of phi hits in the second trigger layer (BML2 ot T1)
@ middleSmallHits
number of precision hits in the middle small layer
@ outerLargeHits
number of precision hits in the outer large layer
@ etaLayer3Hits
number of eta hits in the third trigger layer (BOL1 ot T2)
@ middleLargeHits
number of precision hits in the middle large layer
@ etaLayer1Hits
number of eta hits in the first trigger layer (BML1 ot T4)
@ phiLayer1Hits
number of phi hits in the first trigger layer (BML1 ot T4)
@ extendedSmallHits
number of precision hits in the extended small layer
@ extendedLargeHits
number of precision hits in the extended large layer
@ phiLayer4Hits
number of phi hits in the fourth trigger layer (T3)
@ innerLargeHits
number of precision hits in the inner large layer
@ etaLayer4Hits
number of eta hits in the fourth trigger layer (T3)
@ etaLayer2Hits
number of eta hits in the second trigger layer (BML2 ot T1)
@ innerSmallHits
number of precision hits in the inner small layer

◆ addHitIDVectors()

StatusCode Muon::TruthHitSummaryAlg::addHitIDVectors ( const xAOD::TruthParticle & truthParticle,
const ChamberIdMap & ids,
summaryDecors & myDecors ) const
private

This function collapses the information given by the ChamberIdMap, which contains all hits from a truth muon classified by chamber, into 6 vectors carrying these hits categorized by detector technology (MDT, TGC, RPC, sTGC, CSC, MM).

Parameters
truthParticlereference to truth muon
idsreference to the previously populated chamberIdMap object
myDecorsreference to the summary write-decorator object

Definition at line 284 of file MuonTruthAlgs/src/TruthHitSummaryAlg.cxx.

286 {
287 std::vector<unsigned long long> mdtTruthHits{};
288 std::vector<unsigned long long> tgcTruthHits{};
289 std::vector<unsigned long long> rpcTruthHits{};
290 std::vector<unsigned long long> stgcTruthHits{};
291 std::vector<unsigned long long> cscTruthHits{};
292 std::vector<unsigned long long> mmTruthHits{};
293
294 // loop over chamber layers
295 int nEI = 0, nEM = 0;
296 for (const auto& lay : ids) {
297 // loop over hits
298 if (lay.first == ChIndex::EIS || lay.first == ChIndex::EIL) nEI++;
299 if (lay.first == ChIndex::EMS || lay.first == ChIndex::EML) nEM++;
300 for (const Identifier& id : lay.second) {
301 if (m_idHelperSvc->isMdt(id))
302 mdtTruthHits.push_back(id.get_compact());
303 else if (m_idHelperSvc->isCsc(id))
304 cscTruthHits.push_back(id.get_compact());
305 else if (m_idHelperSvc->isTgc(id)) {
306 if ((lay.first == ChIndex::EIS || lay.first == ChIndex::EIL) && nEI > 1)
307 continue; // otherwise we double-count
308 if ((lay.first == ChIndex::EMS || lay.first == ChIndex::EML) && nEM > 1)
309 continue; // otherwise we double-count
310 tgcTruthHits.push_back(id.get_compact());
311 } else if (m_idHelperSvc->issTgc(id))
312 stgcTruthHits.push_back(id.get_compact());
313 else if (m_idHelperSvc->isRpc(id))
314 rpcTruthHits.push_back(id.get_compact());
315 else if (m_idHelperSvc->isMM(id))
316 mmTruthHits.push_back(id.get_compact());
317 }
318 }
319 auto attatchHits = [&truthParticle](const WriteDecor_llvec& dec,
320 std::vector<unsigned long long>& hits) {
321 if (dec) {
322 (*dec)(truthParticle) = std::move(hits);
323 }
324 };
325 attatchHits(myDecors.truthMdtHitsDecor, mdtTruthHits);
326 attatchHits(myDecors.truthTgcHitsDecor, tgcTruthHits);
327 attatchHits(myDecors.truthRpcHitsDecor, rpcTruthHits);
328 attatchHits(myDecors.truthCscHitsDecor, cscTruthHits);
329 attatchHits(myDecors.truthStgcHitsDecor, stgcTruthHits);
330 attatchHits(myDecors.truthMMHitsDecor, mmTruthHits);
331 ATH_MSG_VERBOSE("Added " << mdtTruthHits.size() << " mdt truth hits, " << cscTruthHits.size() << " csc truth hits, "
332 << rpcTruthHits.size() << " rpc truth hits, and " << tgcTruthHits.size() << " tgc truth hits");
333 return StatusCode::SUCCESS;
334 }
#define ATH_MSG_VERBOSE(x)
std::unique_ptr< SG::WriteDecorHandle< xAOD::TruthParticleContainer, llvec > > WriteDecor_llvec

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode Muon::TruthHitSummaryAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 50 of file MuonTruthAlgs/src/TruthHitSummaryAlg.cxx.

50 {
51 // skip if no input data found
52 SG::ReadHandle muonTruthContainer(m_muonTruth, ctx);
53 ATH_CHECK(muonTruthContainer.isPresent());
54
55 summaryDecors myDecors{this, ctx};
56
57 // loop over truth coll (muon only)
58 for (const xAOD::TruthParticle* truthParticle : *muonTruthContainer) {
60 ATH_CHECK(addHitCounts(ctx, *truthParticle, ids, myDecors));
61 ATH_CHECK(addHitIDVectors(*truthParticle, ids, myDecors));
62 }
63 return StatusCode::SUCCESS;
64 }
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...
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...
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_muonTruth
Key of the container of truth muons.
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.
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode Muon::TruthHitSummaryAlg::initialize ( )
overridevirtual

Definition at line 15 of file MuonTruthAlgs/src/TruthHitSummaryAlg.cxx.

15 {
16 ATH_CHECK(m_muonTruth.initialize());
17 ATH_CHECK(m_PRD_TruthNames.initialize());
18 ATH_CHECK(m_idHelperSvc.retrieve());
19
20 ATH_CHECK(m_nprecLayersKey.initialize());
21 ATH_CHECK(m_nphiLayersKey.initialize());
22 ATH_CHECK(m_ntrigEtaLayersKey.initialize());
23 ATH_CHECK(m_innerSmallHitsKey.initialize());
24 ATH_CHECK(m_innerLargeHitsKey.initialize());
25 ATH_CHECK(m_middleSmallHitsKey.initialize());
26 ATH_CHECK(m_middleLargeHitsKey.initialize());
27 ATH_CHECK(m_outerSmallHitsKey.initialize());
28 ATH_CHECK(m_outerLargeHitsKey.initialize());
31 ATH_CHECK(m_phiLayer1HitsKey.initialize());
32 ATH_CHECK(m_phiLayer2HitsKey.initialize());
33 ATH_CHECK(m_phiLayer3HitsKey.initialize());
34 ATH_CHECK(m_phiLayer4HitsKey.initialize());
35 ATH_CHECK(m_etaLayer1HitsKey.initialize());
36 ATH_CHECK(m_etaLayer2HitsKey.initialize());
37 ATH_CHECK(m_etaLayer3HitsKey.initialize());
38 ATH_CHECK(m_etaLayer4HitsKey.initialize());
39 ATH_CHECK(m_truthMdtHitsKey.initialize(m_idHelperSvc->hasMDT()));
40 ATH_CHECK(m_truthTgcHitsKey.initialize(m_idHelperSvc->hasTGC()));
41 ATH_CHECK(m_truthRpcHitsKey.initialize(m_idHelperSvc->hasRPC()));
42 ATH_CHECK(m_truthCscHitsKey.initialize(m_idHelperSvc->hasCSC()));
43 ATH_CHECK(m_truthStgcHitsKey.initialize(m_idHelperSvc->hasSTGC()));
44 ATH_CHECK(m_truthMMHitsKey.initialize(m_idHelperSvc->hasMM()));
45
46 return StatusCode::SUCCESS;
47 }

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

◆ summaryDecors

friend struct summaryDecors
friend

Definition at line 55 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_etaLayer1HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_etaLayer1HitsKey {this, "etaLayer1HitsKey", m_muonTruth, "etaLayer1Hits", ""}
private

Definition at line 167 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

167{this, "etaLayer1HitsKey", m_muonTruth, "etaLayer1Hits", ""};

◆ m_etaLayer2HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_etaLayer2HitsKey {this, "etaLayer2HitsKey", m_muonTruth, "etaLayer2Hits", ""}
private

Definition at line 168 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

168{this, "etaLayer2HitsKey", m_muonTruth, "etaLayer2Hits", ""};

◆ m_etaLayer3HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_etaLayer3HitsKey {this, "etaLayer3HitsKey", m_muonTruth, "etaLayer3Hits", ""}
private

Definition at line 169 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

169{this, "etaLayer3HitsKey", m_muonTruth, "etaLayer3Hits", ""};

◆ m_etaLayer4HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_etaLayer4HitsKey {this, "etaLayer4HitsKey", m_muonTruth, "etaLayer4Hits", ""}
private

Definition at line 170 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

170{this, "etaLayer4HitsKey", m_muonTruth, "etaLayer4Hits", ""};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_extendedLargeHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_extendedLargeHitsKey {this, "extendedLargeHitsKey", m_muonTruth, "extendedLargeHits", ""}
private

Definition at line 162 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

162{this, "extendedLargeHitsKey", m_muonTruth, "extendedLargeHits", ""};

◆ m_extendedSmallHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_extendedSmallHitsKey {this, "extendedSmallHitsKey", m_muonTruth, "extendedSmallHits", ""}
private

Definition at line 161 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

161{this, "extendedSmallHitsKey", m_muonTruth, "extendedSmallHits", ""};

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> Muon::TruthHitSummaryAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Handle for muonIdHelper service.

Definition at line 180 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

180{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_innerLargeHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_innerLargeHitsKey {this, "innerLargeHitsKey", m_muonTruth, "innerLargeHits", ""}
private

Definition at line 156 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

156{this, "innerLargeHitsKey", m_muonTruth, "innerLargeHits", ""};

◆ m_innerSmallHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_innerSmallHitsKey {this, "innerSmallHitsKey", m_muonTruth, "innerSmallHits", ""}
private

Definition at line 155 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

155{this, "innerSmallHitsKey", m_muonTruth, "innerSmallHits", ""};

◆ m_middleLargeHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_middleLargeHitsKey {this, "middleLargeHitsKey", m_muonTruth, "middleLargeHits", ""}
private

Definition at line 158 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

158{this, "middleLargeHitsKey", m_muonTruth, "middleLargeHits", ""};

◆ m_middleSmallHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_middleSmallHitsKey {this, "middleSmallHitsKey", m_muonTruth, "middleSmallHits", ""}
private

Definition at line 157 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

157{this, "middleSmallHitsKey", m_muonTruth, "middleSmallHits", ""};

◆ m_muonTruth

SG::ReadHandleKey<xAOD::TruthParticleContainer> Muon::TruthHitSummaryAlg::m_muonTruth {this, "muonTruth", "MuonTruthParticles"}
private

Key of the container of truth muons.

Definition at line 133 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

133{this, "muonTruth", "MuonTruthParticles"};

◆ m_nphiLayersKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_nphiLayersKey {this, "nphiLayersKey", m_muonTruth, "nphiLayers", ""}
private

Definition at line 153 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

153{this, "nphiLayersKey", m_muonTruth, "nphiLayers", ""};

◆ m_nprecLayersKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_nprecLayersKey {this, "nprecLayersKey", m_muonTruth, "nprecLayers", ""}
private

Definition at line 152 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

152{this, "nprecLayersKey", m_muonTruth, "nprecLayers", ""};

◆ m_ntrigEtaLayersKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_ntrigEtaLayersKey {this, "ntrigEtaLayersKey", m_muonTruth, "ntrigEtaLayers", ""}
private

Definition at line 154 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

154{this, "ntrigEtaLayersKey", m_muonTruth, "ntrigEtaLayers", ""};

◆ m_outerLargeHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_outerLargeHitsKey {this, "outerLargeHitsKey", m_muonTruth, "outerLargeHits", ""}
private

Definition at line 160 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

160{this, "outerLargeHitsKey", m_muonTruth, "outerLargeHits", ""};

◆ m_outerSmallHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_outerSmallHitsKey {this, "outerSmallHitsKey", m_muonTruth, "outerSmallHits", ""}
private

Definition at line 159 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

159{this, "outerSmallHitsKey", m_muonTruth, "outerSmallHits", ""};

◆ m_phiLayer1HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_phiLayer1HitsKey {this, "phiLayer1HitsKey", m_muonTruth, "phiLayer1Hits", ""}
private

Definition at line 163 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

163{this, "phiLayer1HitsKey", m_muonTruth, "phiLayer1Hits", ""};

◆ m_phiLayer2HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_phiLayer2HitsKey {this, "phiLayer2HitsKey", m_muonTruth, "phiLayer2Hits", ""}
private

Definition at line 164 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

164{this, "phiLayer2HitsKey", m_muonTruth, "phiLayer2Hits", ""};

◆ m_phiLayer3HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_phiLayer3HitsKey {this, "phiLayer3HitsKey", m_muonTruth, "phiLayer3Hits", ""}
private

Definition at line 165 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

165{this, "phiLayer3HitsKey", m_muonTruth, "phiLayer3Hits", ""};

◆ m_phiLayer4HitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_phiLayer4HitsKey {this, "phiLayer4HitsKey", m_muonTruth, "phiLayer4Hits", ""}
private

Definition at line 166 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

166{this, "phiLayer4HitsKey", m_muonTruth, "phiLayer4Hits", ""};

◆ m_PRD_TruthNames

SG::ReadHandleKeyArray<PRD_MultiTruthCollection> Muon::TruthHitSummaryAlg::m_PRD_TruthNames
private
Initial value:
{
this, "PRD_TruthMaps", {"CSC_TruthMap", "RPC_TruthMap", "TGC_TruthMap", "MDT_TruthMap"}, "remove NSW by default for now, can always be changed in the configuration"}

Keys for the containers of truth hits, grouped by detector technology.

Each element of the container has a hit ("sensor" or "channel") ID, representing the detector channel where the hit has been recorded, and a link to the MC particle that generated the hit

Definition at line 139 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

139 {
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"};

◆ m_truthCscHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthCscHitsKey {this, "truthCscHitskey", m_muonTruth, "truthCscHits", ""}
private

Definition at line 175 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

175{this, "truthCscHitskey", m_muonTruth, "truthCscHits", ""};

◆ m_truthMdtHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthMdtHitsKey {this, "truthMdtHitsKey", m_muonTruth, "truthMdtHits", ""}
private

Definition at line 172 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

172{this, "truthMdtHitsKey", m_muonTruth, "truthMdtHits", ""};

◆ m_truthMMHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthMMHitsKey {this, "truthMMHitsKey", m_muonTruth, "truthMMHits", ""}
private

Definition at line 177 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

177{this, "truthMMHitsKey", m_muonTruth, "truthMMHits", ""};

◆ m_truthRpcHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthRpcHitsKey {this, "truthRpcHitsKey", m_muonTruth, "truthRpcHits", ""}
private

Definition at line 174 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

174{this, "truthRpcHitsKey", m_muonTruth, "truthRpcHits", ""};

◆ m_truthStgcHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthStgcHitsKey {this, "truthStgcHitsKey", m_muonTruth, "truthStgcHits", ""}
private

Definition at line 176 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

176{this, "truthStgcHitsKey", m_muonTruth, "truthStgcHits", ""};

◆ m_truthTgcHitsKey

WriteDecorKey_t Muon::TruthHitSummaryAlg::m_truthTgcHitsKey {this, "truthTgcHitsKey", m_muonTruth, "truthTgcHits", ""}
private

Definition at line 173 of file MuonTruthAlgs/src/TruthHitSummaryAlg.h.

173{this, "truthTgcHitsKey", m_muonTruth, "truthTgcHits", ""};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: