ATLAS Offline Software
Loading...
Searching...
No Matches
HepMCTruthReader Class Reference

Algorithm demonstrating reading of HepMC truth, and printing to screen. More...

#include <HepMCTruthReader.h>

Inheritance diagram for HepMCTruthReader:
Collaboration diagram for HepMCTruthReader:

Public Member Functions

 HepMCTruthReader (const std::string &name, ISvcLocator *svcLoc)
 Regular algorithm constructor.
virtual StatusCode initialize ()
 Function initialising the algorithm.
virtual StatusCode execute (const EventContext &ctx) const
 Function executing the algorithm.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
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
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Static Private Member Functions

static void printEvent (const HepMC::GenEvent *evt, bool do4momPtEtaPhi)
static void printVertex (const HepMC::ConstGenVertexPtr &vtx, bool do4momPtEtaPhi)
static void printParticle (const HepMC::ConstGenParticlePtr &part, bool do4momPtEtaPhi)

Private Attributes

SG::ReadHandleKey< McEventCollectionm_hepMCContainerKey
 The key of the input HepMC truth container.
Gaudi::Property< bool > m_do4momPtEtaPhi {this, "Do4momPtEtaPhi", false}
 Flag to printout in pt,eta,phi instead of px,py,pz.
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

Detailed Description

Algorithm demonstrating reading of HepMC truth, and printing to screen.

Author
James Catmore James.nosp@m..Cat.nosp@m.more@.nosp@m.cern.nosp@m..ch

Definition at line 20 of file HepMCTruthReader.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ HepMCTruthReader()

HepMCTruthReader::HepMCTruthReader ( const std::string & name,
ISvcLocator * svcLoc )

Regular algorithm constructor.

Definition at line 20 of file HepMCTruthReader.cxx.

21 : AthReentrantAlgorithm(name, svcLoc)
22{}

Member Function Documentation

◆ 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 HepMCTruthReader::execute ( const EventContext & ctx) const
virtual

Function executing the algorithm.

Definition at line 35 of file HepMCTruthReader.cxx.

35 {
36
37 // Retrieve the HepMC truth:
38 SG::ReadHandle<McEventCollection> mcColl(m_hepMCContainerKey, ctx);
39 // validity check is only really needed for serial running. Remove when MT is only way.
40 if (!mcColl.isValid()) {
41 ATH_MSG_ERROR("Could not retrieve HepMC with key:" << m_hepMCContainerKey.key());
42 if (m_hepMCContainerKey.key() == "GEN_EVENT") ATH_MSG_ERROR("Try to set 'HepMCContainerKey' to 'TruthEvent'");
43 return StatusCode::FAILURE;
44 } else {
45 ATH_MSG_DEBUG( "Retrieved HepMC with key: " << m_hepMCContainerKey.key() );
46 }
47
48 ATH_MSG_INFO("Number of pile-up events in this Athena event: " << mcColl->size()-1);
49
50 // Loop over events
51 for (unsigned int cntr = 0; cntr < mcColl->size(); ++cntr) {
52 const HepMC::GenEvent* genEvt = (*mcColl)[cntr];
53
54 // Print the event particle/vtx contents
55 if (cntr==0) ATH_MSG_INFO("Printing signal event...");
56 if (cntr>0) ATH_MSG_INFO("Printing pileup events...");
58
59 }
60
61 return StatusCode::SUCCESS;
62}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Property< bool > m_do4momPtEtaPhi
Flag to printout in pt,eta,phi instead of px,py,pz.
static void printEvent(const HepMC::GenEvent *evt, bool do4momPtEtaPhi)
SG::ReadHandleKey< McEventCollection > m_hepMCContainerKey
The key of the input HepMC truth container.
HepMC3::GenEvent GenEvent
Definition GenEvent.h:39

◆ 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 & AthCommonAlgorithm< 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 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

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

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode HepMCTruthReader::initialize ( )
virtual

Function initialising the algorithm.

Definition at line 25 of file HepMCTruthReader.cxx.

25 {
26 ATH_MSG_INFO("HepMC container name = " << m_hepMCContainerKey );
27
28 // initialize handles
29 ATH_CHECK(m_hepMCContainerKey.initialize());
30 ATH_MSG_DEBUG("HepMCContainerKey = " << m_hepMCContainerKey.key() );
31 return StatusCode::SUCCESS;
32}
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ 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()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ 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.

◆ printEvent()

void HepMCTruthReader::printEvent ( const HepMC::GenEvent * evt,
bool do4momPtEtaPhi )
staticprivate

Definition at line 67 of file HepMCTruthReader.cxx.

67 {
68 cout << "--------------------------------------------------------------------------------\n";
69 cout << "GenEvent: #" << "NNN" << "\n";
70 cout << " Entries this event: " << event->vertices_size() << " vertices, " << event->particles_size() << " particles.\n";
71 cout << " GenParticle Legend\n";
72 if (do4momPtEtaPhi) cout << " Barcode PDG ID ( pt, eta, phi, E ) Stat DecayVtx\n";
73 else cout << " Barcode PDG ID ( Px, Py, Pz, E ) Stat DecayVtx\n";
74 cout << "--------------------------------------------------------------------------------\n";
75 for (const auto& iv: event->vertices()) { printVertex(iv, do4momPtEtaPhi); }
76 cout << "--------------------------------------------------------------------------------\n";
77}
static void printVertex(const HepMC::ConstGenVertexPtr &vtx, bool do4momPtEtaPhi)

◆ printParticle()

void HepMCTruthReader::printParticle ( const HepMC::ConstGenParticlePtr & part,
bool do4momPtEtaPhi )
staticprivate

Definition at line 178 of file HepMCTruthReader.cxx.

178 {
179 if (!particle) return;
180 std::ios::fmtflags f( cout.flags() );
181 cout << " ";
182 cout.width(9);
183 cout << HepMC::barcode(particle);
184 cout.width(9);
185 cout << particle->pdg_id() << " ";
186 cout.width(9);
187 cout.precision(2);
188 cout.setf(std::ios::scientific, std::ios::floatfield);
189 cout.setf(std::ios_base::showpos);
190 if (do4momPtEtaPhi) cout << particle->momentum().perp() << ",";
191 else cout << particle->momentum().px() << ",";
192 cout.width(9);
193 cout.precision(2);
194 if (do4momPtEtaPhi) cout << particle->momentum().pseudoRapidity() << ",";
195 else cout << particle->momentum().py() << ",";
196 cout.width(9);
197 cout.precision(2);
198 if (do4momPtEtaPhi) cout << particle->momentum().phi() << ",";
199 else cout << particle->momentum().pz() << ",";
200 cout.width(9);
201 cout.precision(2);
202 cout << particle->momentum().e() << " ";
203 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
204 cout.unsetf(std::ios_base::showpos);
205 if ( MC::isDecayed(particle) ) {
206 if ( HepMC::barcode(particle->end_vertex())!=0 ) {
207 cout.width(3);
208 cout << particle->status() << " ";
209 cout.width(9);
210 cout << HepMC::barcode(particle->end_vertex());
211 }
212 } else {
213 cout.width(3);
214 cout << particle->status();
215 }
216 cout << endl;
217 cout.flags(f);
218}
int barcode(const T *p)
Definition Barcode.h:15
bool isDecayed(const T &p)
Identify if the particle decayed.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses

◆ printVertex()

void HepMCTruthReader::printVertex ( const HepMC::ConstGenVertexPtr & vtx,
bool do4momPtEtaPhi )
staticprivate

Definition at line 81 of file HepMCTruthReader.cxx.

81 {
82 if (!vertex) return;
83 std::ios::fmtflags f( cout.flags() );
84 cout << "GenVertex (" << vertex << "):";
85 if (HepMC::barcode(vertex) != 0) {
86 if (vertex->position().x() != 0.0 && vertex->position().y() != 0.0 && vertex->position().z() != 0.0) {
87 cout.width(9);
88 cout <<HepMC::barcode(vertex);
89 cout << " ID:";
90 cout.width(5);
91 cout << vertex->id();
92 cout << " (X,cT)=";
93 cout.width(9);
94 cout.precision(2);
95 cout.setf(std::ios::scientific, std::ios::floatfield);
96 cout.setf(std::ios_base::showpos);
97 cout << vertex->position().x() << ",";
98 cout.width(9);
99 cout.precision(2);
100 cout << vertex->position().y() << ",";
101 cout.width(9);
102 cout.precision(2);
103 cout << vertex->position().z() << ",";
104 cout.width(9);
105 cout.precision(2);
106 cout << vertex->position().t();
107 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
108 cout.unsetf(std::ios_base::showpos);
109 cout << endl;
110 } else {
111 cout.width(9);
112 cout << HepMC::barcode(vertex);
113 cout << " ID:";
114 cout.width(5);
115 cout << vertex->id();
116 cout << " (X,cT): 0";
117 cout << endl;
118 }
119 } else {
120 // If the vertex doesn't have a unique barcode assigned, then
121 // we print its memory address instead... so that the
122 // print out gives us a unique tag for the particle.
123 if (vertex->position().x() != 0.0 && vertex->position().y() != 0.0 && vertex->position().z() != 0.0) {
124 cout.width(9);
125 cout << " ID:";
126 cout.width(5);
127 cout << vertex->id();
128 cout << " (X,cT)=";
129 cout.width(9);
130 cout.precision(2);
131 cout.setf(std::ios::scientific, std::ios::floatfield);
132 cout.setf(std::ios_base::showpos);
133 cout << vertex->position().x();
134 cout.width(9);
135 cout.precision(2);
136 cout << vertex->position().y();
137 cout.width(9);
138 cout.precision(2);
139 cout << vertex->position().z();
140 cout.width(9);
141 cout.precision(2);
142 cout << vertex->position().t();
143 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
144 cout.unsetf(std::ios_base::showpos);
145 cout << endl;
146 } else {
147 cout.width(9);
148 cout << " ID:";
149 cout.width(5);
150 cout << vertex->id();
151 cout << " (X,cT):0";
152 cout << endl;
153 }
154 }
155
156 // Print out all the incoming, then outgoing particles
157 for (const auto& iPIn: vertex->particles_in()) {
158 if ( iPIn == vertex->particles_in().front() ) {
159 cout << " I: ";
160 cout.width(2);
161 cout << vertex->particles_in().size();
162 } else cout << " ";
163 printParticle(iPIn, do4momPtEtaPhi);
164 }
165 for (const auto& iPOut: vertex->particles_out()) {
166 if ( iPOut == vertex->particles_out().front()) {
167 cout << " O: ";
168 cout.width(2);
169 cout << vertex->particles_out().size();
170 } else cout << " ";
171 printParticle(iPOut, do4momPtEtaPhi);
172 }
173 cout.flags(f);
174}
static void printParticle(const HepMC::ConstGenParticlePtr &part, bool do4momPtEtaPhi)

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< 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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< 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 AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
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 }

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_do4momPtEtaPhi

Gaudi::Property<bool> HepMCTruthReader::m_do4momPtEtaPhi {this, "Do4momPtEtaPhi", false}
private

Flag to printout in pt,eta,phi instead of px,py,pz.

Definition at line 40 of file HepMCTruthReader.h.

40{this, "Do4momPtEtaPhi", false};

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_hepMCContainerKey

SG::ReadHandleKey<McEventCollection> HepMCTruthReader::m_hepMCContainerKey
private
Initial value:
{
this, "HepMCContainerKey", "GEN_EVENT", "The input McEvenCollection"}

The key of the input HepMC truth container.

Definition at line 36 of file HepMCTruthReader.h.

36 {
37 this, "HepMCContainerKey", "GEN_EVENT", "The input McEvenCollection"};

◆ 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: