ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleJetTools::TruthVertexDecoratorAlg Class Reference

#include <TruthVertexDecoratorAlg.h>

Inheritance diagram for ParticleJetTools::TruthVertexDecoratorAlg:
Collaboration diagram for ParticleJetTools::TruthVertexDecoratorAlg:

Public Member Functions

 TruthVertexDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &) 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

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>

Private Attributes

Gaudi::Property< bool > m_use_barcode
SG::ConstAccessor< int > m_acc_uid {"uid"}
SG::ReadHandleKey< xAOD::TruthParticleContainerm_TruthContainerKey
SG::ReadHandleKey< xAOD::TruthVertexContainerm_TruthPVsKey
SG::ReadHandleKey< xAOD::TruthVertexContainerm_TruthVertexContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackContainerKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackTPDecayVertexID
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackTPDecayVertexType
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackTPDecaySimpleVertexType
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackPDGID
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackParentPDGID
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexValid
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayType
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexSimpleDecayType
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayID
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayParentID
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayNCharged
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayNNeutral
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayAllNCharged
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayAllNNeutral
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayPVDistance
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexDecayDistance
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_vertexIsVertex
SG::ReadDecorHandleKey< xAOD::TruthParticleContainerm_acc_truth_particle_vertex_id
ToolHandle< InDet::InDetTrackTruthOriginToolm_trackTruthOriginTool
Gaudi::Property< float > m_truthVertexMergeDistance
Gaudi::Property< float > m_truthParticleMinimumPt
Gaudi::Property< bool > m_alwaysKeepStableNeutrals
Gaudi::Property< bool > m_alwaysKeepTracklessStableCharged
Gaudi::Property< bool > m_alwaysKeepStableCharged
Gaudi::Property< std::string > m_truthMatchProbabilityAuxName
Gaudi::Property< float > m_truthMatchProbabilityCut
SG::AuxElement::ConstAccessor< float > m_truthMatchProbabilityAcc {"truthMatchProbability"}
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

Definition at line 23 of file TruthVertexDecoratorAlg.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

◆ TruthVertexDecoratorAlg()

ParticleJetTools::TruthVertexDecoratorAlg::TruthVertexDecoratorAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 107 of file TruthVertexDecoratorAlg.cxx.

108 : AthReentrantAlgorithm(name, loc) {}

Member Function Documentation

◆ 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 ParticleJetTools::TruthVertexDecoratorAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 171 of file TruthVertexDecoratorAlg.cxx.

171 {
172 ATH_MSG_DEBUG("Executing " << name() << "... ");
173
174 // read collections
175 SG::ReadHandle<xAOD::TruthParticleContainer> truth_particles(m_TruthContainerKey, ctx);
176 ATH_CHECK(truth_particles.isValid());
177 ATH_MSG_DEBUG("Retrieved " << truth_particles->size() << " truth_particles...");
178
179 // Get the truth PV
180 SG::ReadHandle<xAOD::TruthVertexContainer> truth_PVs(m_TruthPVsKey, ctx);
181 ATH_CHECK(truth_PVs.isValid());
182 if ( truth_PVs->size() != 1 ) {
183 ATH_MSG_ERROR("Truth PVs != 1");
184 return StatusCode::FAILURE;
185 }
186 const xAOD::TruthVertex* truth_PV = truth_PVs->at(0);
187
188 // Get all truth vertices, and then get the 'matched' primary vertex
189 SG::ReadHandle<xAOD::TruthVertexContainer> truth_vertices(m_TruthVertexContainerKey, ctx);
190 ATH_CHECK(truth_vertices.isValid());
191 std::vector<const xAOD::TruthVertex*> all_truth_vertices;
192 for ( auto vert : *truth_vertices ) { all_truth_vertices.push_back(vert); }
193 auto pvs = get_matched_primary_vertices(truth_PV, all_truth_vertices, 0.001, m_acc_uid);
194 if (pvs.empty()) {
195 ATH_MSG_ERROR("No matched primary vertex found!");
196 return StatusCode::FAILURE;
197 }
198 const xAOD::TruthVertex* pv = pvs[0];
199 // Get all truth particles, and generate a map for speedier lookup
200 std::vector<const xAOD::TruthParticle*> sorted_truth_particles;
201 for ( const auto tp : *truth_particles ) { sorted_truth_particles.push_back(tp); }
202 std::sort(
203 sorted_truth_particles.begin(), sorted_truth_particles.end(),
204 [](const xAOD::IParticle* p1, const xAOD::IParticle* p2) {
205 return p1->pt() < p2->pt();
206 }
207 );
208
209 // We search all particles to get a vector of all initial particles. We need to do this
210 // as just looking at the PV isn't sufficient, due to ISR etc
211 auto initial_particles = get_all_initial_particles(sorted_truth_particles);
212
213
214 // Generate a vector of all fat veritces, starting at the PV. We include all initial particles
215 // as part of this fat-pv
216 std::vector<FatVertex::FatVertex> fat_vertices = FatVertex::generateFatVertices(
218 initial_particles
219 );
220
221 // Setup parent/child links for all vertices
222 for(auto& fat_vertex : fat_vertices){
223 fat_vertex.doParentChildLinks(fat_vertices);
224 }
225
226 // Select based on a pT threshold
227 std::vector<FatVertex::FatVertex> hpt_fat_vertices;
228 for ( auto& fat_vertex : fat_vertices ) {
229 if ( fat_vertex.getPT() > 0 || fat_vertex.is_pv ) hpt_fat_vertices.push_back(fat_vertex);
230 }
231
232
233
234 // Define the write handles for decorating the truth particles with their vertex information
235 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexValid(m_vertexValid, ctx);
236 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexType(m_vertexDecayType, ctx);
237 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexSimpleType(m_vertexSimpleDecayType, ctx);
238 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayID(m_vertexDecayID, ctx);
239 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayParentID(m_vertexDecayParentID, ctx);
240 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayNCharged(m_vertexDecayNCharged, ctx);
241 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayNNeutral(m_vertexDecayNNeutral, ctx);
242 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayAllNCharged(m_vertexDecayAllNCharged, ctx);
243 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexDecayAllNNeutral(m_vertexDecayAllNNeutral, ctx);
244 SG::WriteDecorHandle<xAOD::TruthParticleContainer, float> vertexDecayPVDistance(m_vertexDecayPVDistance, ctx);
245 SG::WriteDecorHandle<xAOD::TruthParticleContainer, float> vertexDecayDistance(m_vertexDecayDistance, ctx);
246 SG::WriteDecorHandle<xAOD::TruthParticleContainer, int> vertexIsVertex(m_vertexIsVertex, ctx);
247
248 // Anything which doesn't have a decay vertex is a stable particle
249 std::vector<const xAOD::TruthParticle*> stable_neutrals;
250 std::vector<const xAOD::TruthParticle*> stable_charged;
251 std::unordered_map<int, int> barcode_to_other_id;
252
253 // Default: unclassified (-1). PV particles get type 0 through the
254 // actual PV vertex traversal below. Only fakes (-3) and pileup (-2)
255 // use other negative values.
256 for ( const auto& truth_particle : sorted_truth_particles ) {
257 vertexValid(*truth_particle) = 0;
258 vertexType(*truth_particle) = -1;
259 vertexSimpleType(*truth_particle) = -1;
260 vertexDecayID(*truth_particle) = -1;
261 vertexDecayParentID(*truth_particle) = -1;
262 vertexDecayPVDistance(*truth_particle) = NAN;
263 vertexDecayDistance(*truth_particle) = NAN;
264 vertexDecayNCharged(*truth_particle) = -1;
265 vertexDecayNNeutral(*truth_particle) = -1;
266 vertexDecayAllNCharged(*truth_particle) = -1;
267 vertexDecayAllNNeutral(*truth_particle) = -1;
268 vertexIsVertex(*truth_particle) = 0;
269 }
270 // Iterate all the vertices, defining each based on the counter
271 std::unordered_map<int, int> barcode_to_vertex_id;
272 int counter = 0;
273 for ( auto fat_vertex : hpt_fat_vertices ) {
274 for ( auto part : fat_vertex.internal ) {
275 barcode_to_other_id[m_acc_uid(*part)] = counter;
276 vertexDecayID(*part) = counter;
277 }
278 for ( auto part : fat_vertex.inparts ) {
279
280 FatVertex::VertexType vt = fat_vertex.getType(m_acc_uid);
281 // This is the PV, as we are writing the 'input' particles of the PV, this doesn't really
282 // make sense, e.g. this could be argued as one/both protons, but more likely its a gluon
283 // and so not a particle we want to write.
285 continue;
286 }
287
288 vertexValid(*part) = 1;
289 vertexType(*part) = int(vt.detailedType);
290 vertexSimpleType(*part) = int(vt.getSimpleType());
291 vertexDecayID(*part) = counter;
292 // The number of neutral and charged decay products at truth level -> excludes neutrinos
293 vertexDecayNCharged(*part) = fat_vertex.getNumChargedDecays(m_truthParticleMinimumPt);
294 vertexDecayNNeutral(*part) = fat_vertex.getNumNeutralDecays(m_truthParticleMinimumPt);
295 vertexDecayAllNCharged(*part) = fat_vertex.getNumChargedDecays();
296 vertexDecayAllNNeutral(*part) = fat_vertex.getNumNeutralDecays();
297 // Any inpart of a created fat vertex is a vertex
298 vertexIsVertex(*part) = 1;
299 barcode_to_other_id[m_acc_uid(*part)] = counter;
300 }
301
302 for ( auto part : fat_vertex.outparts ) {
303 if (!part){
304 ATH_MSG_ERROR("Found a null particle in the out parts of a fat vertex, skipping it - this should never happen");
305 continue;
306 }
307
308 vertexDecayParentID(*part) = counter;
309 barcode_to_vertex_id[m_acc_uid(*part)] = counter;
310
311 // Outparts don't inherit their parent's vertex type — they're
312 // truth particles, not vertices. Their parent is recorded in
313 // vertexDecayParentID. If an outpart decays, it becomes an inpart
314 // of its own vertex and gets its type there.
315
316 // If this particle has a decay vertex, then we label its PV-Lxy
317 if ( part->decayVtx() && FatVertex::has_valid_child(part)) {
318 float pvDist = FatVertex::vertex_distance(part->decayVtx(), pv);
319 vertexDecayPVDistance(*part) = pvDist;
320 // Production→decay flight distance
321 if ( part->hasProdVtx() && part->prodVtx() ) {
322 vertexDecayDistance(*part) = FatVertex::vertex_distance(part->prodVtx(), part->decayVtx());
323 }
324
325 // If it doesn't, we add it to a a vector based on its charge for later use
326 }else{
327 // If we always keep charged/neutrals, then we do so here
328 if (part->isCharged()){
329 stable_charged.push_back(part);
331 vertexValid(*part) = 1;
332 }
333 }
334 else{
335 stable_neutrals.push_back(part);
337 vertexValid(*part) = 1;
338 }
339 }
340 }
341 }
342
343 counter++;
344 }
345
346 // Get all tracks so we can decorate them
347 SG::ReadHandle<xAOD::TrackParticleContainer> tracks(m_TrackContainerKey, ctx);
348 ATH_CHECK(tracks.isValid());
349 std::vector<const xAOD::TrackParticle*> tracks_vector(tracks->begin(), tracks->end());
350
351 SG::ReadDecorHandle<xAOD::TruthParticleContainer, int> acc_truth_id(m_acc_truth_particle_vertex_id, ctx);
352
353 using TrackIntWriter = SG::WriteDecorHandle<xAOD::TrackParticleContainer, int>;
354 TrackIntWriter trackTPDecayVertexID(m_trackTPDecayVertexID, ctx);
355 TrackIntWriter trackTPDecayVertexType(m_trackTPDecayVertexType, ctx);
356 TrackIntWriter trackTPDecaySimpleVertexType(m_trackTPDecaySimpleVertexType, ctx);
357 TrackIntWriter trackPDGID(m_trackPDGID, ctx);
358 TrackIntWriter trackParentPDGID(m_trackParentPDGID, ctx);
359
360 for ( auto track : tracks_vector ) {
361 // Default: unclassified. PV tracks get type 0 via barcode lookup.
362 // Fakes = -3, pileup = -2, unclassified = -1.
363 trackTPDecayVertexID(*track) = -1;
364 trackTPDecayVertexType(*track) = -1;
365 trackTPDecaySimpleVertexType(*track) = -1;
366 trackPDGID(*track) = 0;
367 trackParentPDGID(*track) = 0;
368 const auto truth = m_trackTruthOriginTool->getTruth(track);
369 // No truth match → pileup
370 if ( !truth ){
371 trackTPDecayVertexType(*track) = -2;
372 trackTPDecaySimpleVertexType(*track) = -2;
373 continue;
374 }
375 float truthProb = m_truthMatchProbabilityAcc(*track);
376
377 if(truthProb < m_truthMatchProbabilityCut){
378 // Fake track
379 trackTPDecayVertexType(*track) = -3;
380 trackTPDecaySimpleVertexType(*track) = -3;
381 continue;
382 }
383 // If we aren't *always* keeping stable charged TP, but we're keeping them whenever
384 // there's no associated track, then here we remove anything matched from out
385 // stable charged particle vector, so we know to only write those that remain
387 stable_charged.erase(
388 std::remove(stable_charged.begin(), stable_charged.end(), truth),
389 stable_charged.end()
390 );
391 }
392 trackPDGID(*track) = truth->pdgId();
393
394 if ( truth->hasProdVtx() && truth->prodVtx() ) {
395 auto parent = truth->prodVtx()->incomingParticle(0);
396 if ( parent ) {
397 trackParentPDGID(*track) = parent->pdgId();
398 }
399 }
400
401 // Get vertex ID from barcode
402 if ( barcode_to_vertex_id.find(m_acc_uid(*truth)) != barcode_to_vertex_id.end() ) {
403 int vertex_id = barcode_to_vertex_id[m_acc_uid(*truth)];
404 trackTPDecayVertexID(*track) = vertex_id;
405 FatVertex::VertexType vt = hpt_fat_vertices[vertex_id].getType(m_acc_uid);
406 trackTPDecayVertexType(*track) = int(vt.detailedType);
407 trackTPDecaySimpleVertexType(*track) = int(vt.getSimpleType());
408 } else {
409 // Lets go for a different default value for debug purposes
410 if(barcode_to_other_id.find(m_acc_uid(*truth)) != barcode_to_other_id.end()){
411 ATH_MSG_DEBUG("Found a track which is truth matched to an internal particle, not an out part ");
412 int vertex_id = barcode_to_other_id[m_acc_uid(*truth)];
413 trackTPDecayVertexID(*track) = vertex_id;
414 FatVertex::VertexType vt = hpt_fat_vertices[vertex_id].getType(m_acc_uid);
415 trackTPDecayVertexType(*track) = int(vt.detailedType);
416 trackTPDecaySimpleVertexType(*track) = int(vt.getSimpleType());
417 }else{
418 // Truth-matched track not found in any fat vertex — default is PV (already set above).
419 // This can happen for tracks from ISR/fragmentation or from truth particles whose
420 // decay chain wasn't fully traversed.
421 }
422
423 }
424 }
425 // Now we set all charged stable TPs without an associated track valid so we can save them
427 for(auto stable_charged_tp : stable_charged){
428 vertexValid(*stable_charged_tp) = 1;
429 }
430
431 }
432
433 // TODO match ID hits to TP if they exist
434 // TODO match flows to TP if possible (this is a bit more difficult)
435 return StatusCode::SUCCESS;
436}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayType
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackTPDecayVertexType
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayDistance
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayNCharged
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayPVDistance
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_acc_truth_particle_vertex_id
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexValid
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayNNeutral
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackTPDecayVertexID
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthContainerKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthVertexContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackContainerKey
ToolHandle< InDet::InDetTrackTruthOriginTool > m_trackTruthOriginTool
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayID
SG::AuxElement::ConstAccessor< float > m_truthMatchProbabilityAcc
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayParentID
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthPVsKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayAllNCharged
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackPDGID
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexDecayAllNNeutral
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexSimpleDecayType
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_vertexIsVertex
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackTPDecaySimpleVertexType
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackParentPDGID
bool has_valid_child(const xAOD::TruthParticle *part)
Definition FatVertex.cxx:33
float vertex_distance(const xAOD::TruthVertex *v1, const xAOD::TruthVertex *v2)
Definition FatVertex.cxx:53
std::vector< FatVertex > generateFatVertices(const xAOD::TruthVertex *pv, const float truthVertexMergeDistance, const std::vector< const xAOD::TruthParticle * > &truth_particles)
std::vector< const xAOD::TruthVertex * > get_matched_primary_vertices(const xAOD::TruthVertex *pv, const std::vector< const xAOD::TruthVertex * > &truth_vertices, float selection_distance=0.001, SG::ConstAccessor< int > acc_uid=SG::ConstAccessor< int >("barcode"))
Get the matched primary vertex for a given truth vertex.
std::vector< const xAOD::TruthParticle * > get_all_initial_particles(const std::vector< const xAOD::TruthParticle * > &truth_particles)
DataModel_detail::iterator< DVL > remove(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end, const T &value)
Specialization of remove for DataVector/List.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15

◆ 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 ParticleJetTools::TruthVertexDecoratorAlg::initialize ( )
overridevirtual

Definition at line 110 of file TruthVertexDecoratorAlg.cxx.

110 {
111 ATH_MSG_INFO("Initializing " << name() << "... ");
112
113 // Initialize Container keys
114 ATH_MSG_DEBUG("Initializing containers:");
116 ATH_MSG_DEBUG(" ** " << m_TruthPVsKey);
118
119 ATH_CHECK(m_TruthContainerKey.initialize());
120 ATH_CHECK(m_TruthPVsKey.initialize());
122 ATH_CHECK(m_TrackContainerKey.initialize());
123
124 m_vertexValid = m_TruthContainerKey.key() + "." + m_vertexValid.key();
136
137 ATH_CHECK(m_vertexValid.initialize());
138 ATH_CHECK(m_vertexDecayType.initialize());
140 ATH_CHECK(m_vertexDecayID.initialize());
141 ATH_CHECK(m_vertexDecayParentID.initialize());
142 ATH_CHECK(m_vertexDecayNCharged.initialize());
143 ATH_CHECK(m_vertexDecayNNeutral.initialize());
147 ATH_CHECK(m_vertexDecayDistance.initialize());
148 ATH_CHECK(m_vertexIsVertex.initialize());
149
153 m_trackPDGID = m_TrackContainerKey.key() + '.' + m_trackPDGID.key();
155 ATH_CHECK(m_trackTPDecayVertexID.initialize());
158 ATH_CHECK(m_trackPDGID.initialize());
159 ATH_CHECK(m_trackParentPDGID.initialize());
160
162
165
166 if(m_use_barcode) m_acc_uid = SG::ConstAccessor<int>("barcode");
167 m_truthMatchProbabilityAcc = SG::AuxElement::ConstAccessor<float>(m_truthMatchProbabilityAuxName);
168 return StatusCode::SUCCESS;
169}
#define ATH_MSG_INFO(x)
Gaudi::Property< std::string > m_truthMatchProbabilityAuxName

◆ 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_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 }

Member Data Documentation

◆ m_acc_truth_particle_vertex_id

SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_acc_truth_particle_vertex_id
private
Initial value:
{
this, "ftagTPDecayVertexIDReader", "ftagTPDecayVertexID",
"Accessor for the truth type label of the truth particle"}

Definition at line 112 of file TruthVertexDecoratorAlg.h.

112 {
113 this, "ftagTPDecayVertexIDReader", "ftagTPDecayVertexID",
114 "Accessor for the truth type label of the truth particle"};

◆ m_acc_uid

SG::ConstAccessor<int> ParticleJetTools::TruthVertexDecoratorAlg::m_acc_uid {"uid"}
private

Definition at line 35 of file TruthVertexDecoratorAlg.h.

35{"uid"};

◆ m_alwaysKeepStableCharged

Gaudi::Property<bool> ParticleJetTools::TruthVertexDecoratorAlg::m_alwaysKeepStableCharged
private
Initial value:
{
this, "alwaysKeepStableCharged", true,
"Always keep final state charged particles, even the particle has an associated track"}

Definition at line 133 of file TruthVertexDecoratorAlg.h.

133 {
134 this, "alwaysKeepStableCharged", true,
135 "Always keep final state charged particles, even the particle has an associated track"};

◆ m_alwaysKeepStableNeutrals

Gaudi::Property<bool> ParticleJetTools::TruthVertexDecoratorAlg::m_alwaysKeepStableNeutrals
private
Initial value:
{
this, "alwaysKeepStableNeutrals", true,
"Always keep final state neutrals"}

Definition at line 127 of file TruthVertexDecoratorAlg.h.

127 {
128 this, "alwaysKeepStableNeutrals", true,
129 "Always keep final state neutrals"};

◆ m_alwaysKeepTracklessStableCharged

Gaudi::Property<bool> ParticleJetTools::TruthVertexDecoratorAlg::m_alwaysKeepTracklessStableCharged
private
Initial value:
{
this, "alwaysKeepTracklessStableCharged", true,
"Always keep final state charged particles that don't have an associated track"}

Definition at line 130 of file TruthVertexDecoratorAlg.h.

130 {
131 this, "alwaysKeepTracklessStableCharged", true,
132 "Always keep final state charged particles that don't have an associated track"};

◆ 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_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_TrackContainerKey

SG::ReadHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_TrackContainerKey
private
Initial value:
{
this, "trackContainer", "InDetTrackParticles",
"Key for the input track collection"}

Definition at line 49 of file TruthVertexDecoratorAlg.h.

49 {
50 this, "trackContainer", "InDetTrackParticles",
51 "Key for the input track collection"};

◆ m_trackParentPDGID

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_trackParentPDGID
private
Initial value:
{
this, "trackParentPDGID", "trackParentPDGID",
"PDGID of truth-matched particle's parent"}

Definition at line 65 of file TruthVertexDecoratorAlg.h.

65 {
66 this, "trackParentPDGID", "trackParentPDGID",
67 "PDGID of truth-matched particle's parent"};

◆ m_trackPDGID

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_trackPDGID
private
Initial value:
{
this, "trackPDGID", "trackPDGID",
"PDGID of truth-matched particle"}

Definition at line 62 of file TruthVertexDecoratorAlg.h.

62 {
63 this, "trackPDGID", "trackPDGID",
64 "PDGID of truth-matched particle"};

◆ m_trackTPDecaySimpleVertexType

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_trackTPDecaySimpleVertexType
private
Initial value:
{
this, "ftagTrackDecaySimpleVertexType", "ftagTrackDecaySimpleVertexType",
"Simple Vertex type that this track is the decay product of"}

Definition at line 59 of file TruthVertexDecoratorAlg.h.

59 {
60 this, "ftagTrackDecaySimpleVertexType", "ftagTrackDecaySimpleVertexType",
61 "Simple Vertex type that this track is the decay product of"};

◆ m_trackTPDecayVertexID

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_trackTPDecayVertexID
private
Initial value:
{
this, "ftagTrackDecayVertexID", "ftagTrackDecayVertexID",
"Vertex ID that this track is the decay product of"}

Definition at line 53 of file TruthVertexDecoratorAlg.h.

53 {
54 this, "ftagTrackDecayVertexID", "ftagTrackDecayVertexID",
55 "Vertex ID that this track is the decay product of"};

◆ m_trackTPDecayVertexType

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_trackTPDecayVertexType
private
Initial value:
{
this, "ftagTrackDecayVertexType", "ftagTrackDecayVertexType",
"Detailed vertex type that this track is the decay product of"}

Definition at line 56 of file TruthVertexDecoratorAlg.h.

56 {
57 this, "ftagTrackDecayVertexType", "ftagTrackDecayVertexType",
58 "Detailed vertex type that this track is the decay product of"};

◆ m_trackTruthOriginTool

ToolHandle<InDet::InDetTrackTruthOriginTool> ParticleJetTools::TruthVertexDecoratorAlg::m_trackTruthOriginTool
private
Initial value:
{
this, "trackTruthOriginTool", "InDet::InDetTrackTruthOriginTool",
"track truth origin tool"}

Definition at line 116 of file TruthVertexDecoratorAlg.h.

116 {
117 this, "trackTruthOriginTool", "InDet::InDetTrackTruthOriginTool",
118 "track truth origin tool"};

◆ m_TruthContainerKey

SG::ReadHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_TruthContainerKey
private
Initial value:
{
this, "truthContainer", "TruthParticles",
"Key for the input truth particle collection"}

Definition at line 37 of file TruthVertexDecoratorAlg.h.

37 {
38 this, "truthContainer", "TruthParticles",
39 "Key for the input truth particle collection"};

◆ m_truthMatchProbabilityAcc

SG::AuxElement::ConstAccessor<float> ParticleJetTools::TruthVertexDecoratorAlg::m_truthMatchProbabilityAcc {"truthMatchProbability"}
private

Definition at line 144 of file TruthVertexDecoratorAlg.h.

144{"truthMatchProbability"};

◆ m_truthMatchProbabilityAuxName

Gaudi::Property<std::string> ParticleJetTools::TruthVertexDecoratorAlg::m_truthMatchProbabilityAuxName
private
Initial value:
{
this, "truthMatchProbabilityAuxName", "truthMatchProbability",
"Name of the aux variable on track which contains its TMP score"}

Definition at line 137 of file TruthVertexDecoratorAlg.h.

137 {
138 this, "truthMatchProbabilityAuxName", "truthMatchProbability",
139 "Name of the aux variable on track which contains its TMP score"};

◆ m_truthMatchProbabilityCut

Gaudi::Property<float> ParticleJetTools::TruthVertexDecoratorAlg::m_truthMatchProbabilityCut
private
Initial value:
{
this, "truthMatchProbabilityCut", 0.5,
"Tracks below this TMP value are assigned as Fakes"}

Definition at line 140 of file TruthVertexDecoratorAlg.h.

140 {
141 this, "truthMatchProbabilityCut", 0.5,
142 "Tracks below this TMP value are assigned as Fakes"};

◆ m_truthParticleMinimumPt

Gaudi::Property<float> ParticleJetTools::TruthVertexDecoratorAlg::m_truthParticleMinimumPt
private
Initial value:
{
this, "truthParticleMinimumPt", 0,
"Minimum pT [MeV] for counting charged/neutral multiplicities in NCharged/NNeutral (AllNCharged/AllNNeutral have no cut)"}

Definition at line 124 of file TruthVertexDecoratorAlg.h.

124 {
125 this, "truthParticleMinimumPt", 0,
126 "Minimum pT [MeV] for counting charged/neutral multiplicities in NCharged/NNeutral (AllNCharged/AllNNeutral have no cut)"};

◆ m_TruthPVsKey

SG::ReadHandleKey< xAOD::TruthVertexContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_TruthPVsKey
private
Initial value:
{
this, "TruthPrimaryVertices", "TruthPrimaryVertices",
"Key for the input truth PV collection"}

Definition at line 41 of file TruthVertexDecoratorAlg.h.

41 {
42 this, "TruthPrimaryVertices", "TruthPrimaryVertices",
43 "Key for the input truth PV collection"};

◆ m_TruthVertexContainerKey

SG::ReadHandleKey<xAOD::TruthVertexContainer> ParticleJetTools::TruthVertexDecoratorAlg::m_TruthVertexContainerKey
private
Initial value:
{
this, "TruthVertices", "TruthVertices",
"Key for the input truth vertex collection"}

Definition at line 44 of file TruthVertexDecoratorAlg.h.

44 {
45 this, "TruthVertices", "TruthVertices",
46 "Key for the input truth vertex collection"};

◆ m_truthVertexMergeDistance

Gaudi::Property<float> ParticleJetTools::TruthVertexDecoratorAlg::m_truthVertexMergeDistance
private
Initial value:
{
this, "truthVertexMergeDistance", 1.0,
"Merge any truth vertices within this distance [mm]. Default 1.0 mm "
"folds pi0 decays (ctau ~25 nm) into their parent vertex."}

Definition at line 120 of file TruthVertexDecoratorAlg.h.

120 {
121 this, "truthVertexMergeDistance", 1.0,
122 "Merge any truth vertices within this distance [mm]. Default 1.0 mm "
123 "folds pi0 decays (ctau ~25 nm) into their parent vertex."};

◆ m_use_barcode

Gaudi::Property<bool> ParticleJetTools::TruthVertexDecoratorAlg::m_use_barcode
private
Initial value:
{
this, "useBarcode", false, "use barcode rather than UID"
}

Definition at line 32 of file TruthVertexDecoratorAlg.h.

32 {
33 this, "useBarcode", false, "use barcode rather than UID"
34 };

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vertexDecayAllNCharged

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayAllNCharged
private
Initial value:
{
this, "ftagTPDecayVertexAllNCharged", "ftagTPDecayVertexAllNCharged",
"Number of charged particles in the decay vertex"}

Definition at line 95 of file TruthVertexDecoratorAlg.h.

95 {
96 this, "ftagTPDecayVertexAllNCharged", "ftagTPDecayVertexAllNCharged",
97 "Number of charged particles in the decay vertex"};

◆ m_vertexDecayAllNNeutral

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayAllNNeutral
private
Initial value:
{
this, "ftagTPDecayVertexAllNNeutral", "ftagTPDecayVertexAllNNeutral",
"Number of neutral particles in the decay vertex (no pT threshold)"}

Definition at line 98 of file TruthVertexDecoratorAlg.h.

98 {
99 this, "ftagTPDecayVertexAllNNeutral", "ftagTPDecayVertexAllNNeutral",
100 "Number of neutral particles in the decay vertex (no pT threshold)"};

◆ m_vertexDecayDistance

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayDistance
private
Initial value:
{
this, "ftagTPDecayDistance", "ftagTPDecayDistance",
"Three distance from this particle creation->this particle decay"}

Definition at line 105 of file TruthVertexDecoratorAlg.h.

105 {
106 this, "ftagTPDecayDistance", "ftagTPDecayDistance",
107 "Three distance from this particle creation->this particle decay"};

◆ m_vertexDecayID

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayID
private
Initial value:
{
this, "ftagTPDecayVertexID", "ftagTPDecayVertexID",
"ID for this truth particle vertex ID"}

Definition at line 81 of file TruthVertexDecoratorAlg.h.

81 {
82 this, "ftagTPDecayVertexID", "ftagTPDecayVertexID",
83 "ID for this truth particle vertex ID"};

◆ m_vertexDecayNCharged

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayNCharged
private
Initial value:
{
this, "ftagTPDecayVertexNCharged", "ftagTPDecayVertexNCharged",
"Number of charged particles in the decay vertex"}

Definition at line 89 of file TruthVertexDecoratorAlg.h.

89 {
90 this, "ftagTPDecayVertexNCharged", "ftagTPDecayVertexNCharged",
91 "Number of charged particles in the decay vertex"};

◆ m_vertexDecayNNeutral

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayNNeutral
private
Initial value:
{
this, "ftagTPDecayVertexNNeutral", "ftagTPDecayVertexNNeutral",
"Number of neutral particles in the decay vertex (with pT threshold)"}

Definition at line 92 of file TruthVertexDecoratorAlg.h.

92 {
93 this, "ftagTPDecayVertexNNeutral", "ftagTPDecayVertexNNeutral",
94 "Number of neutral particles in the decay vertex (with pT threshold)"};

◆ m_vertexDecayParentID

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayParentID
private
Initial value:
{
this, "ftagTPDecayVertexParentID", "ftagTPDecayVertexParentID",
"ID for this truth particles parent ID"}

Definition at line 84 of file TruthVertexDecoratorAlg.h.

84 {
85 this, "ftagTPDecayVertexParentID", "ftagTPDecayVertexParentID",
86 "ID for this truth particles parent ID"};

◆ m_vertexDecayPVDistance

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayPVDistance
private
Initial value:
{
this, "ftagTPDecayPVDistance", "ftagTPDecayPVDistance",
"Three distance from PV->this particle decay"}

Definition at line 102 of file TruthVertexDecoratorAlg.h.

102 {
103 this, "ftagTPDecayPVDistance", "ftagTPDecayPVDistance",
104 "Three distance from PV->this particle decay"};

◆ m_vertexDecayType

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexDecayType
private
Initial value:
{
this, "ftagTPDecayVertexType", "ftagTPDecayVertexType",
"Exclusive label for this truth particles decay type"}

Definition at line 74 of file TruthVertexDecoratorAlg.h.

74 {
75 this, "ftagTPDecayVertexType", "ftagTPDecayVertexType",
76 "Exclusive label for this truth particles decay type"};

◆ m_vertexIsVertex

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexIsVertex
private
Initial value:
{
this, "ftagTPIsVertex", "ftagTPIsVertex",
"Is this particle a vertex (decays with >= 2 children)"}

Definition at line 108 of file TruthVertexDecoratorAlg.h.

108 {
109 this, "ftagTPIsVertex", "ftagTPIsVertex",
110 "Is this particle a vertex (decays with >= 2 children)"};

◆ m_vertexSimpleDecayType

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexSimpleDecayType
private
Initial value:
{
this, "ftagTPDecaySimpleVertexType", "ftagTPDecaySimpleVertexType",
"Exclusive label for this truth particles decay type"}

Definition at line 77 of file TruthVertexDecoratorAlg.h.

77 {
78 this, "ftagTPDecaySimpleVertexType", "ftagTPDecaySimpleVertexType",
79 "Exclusive label for this truth particles decay type"};

◆ m_vertexValid

SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > ParticleJetTools::TruthVertexDecoratorAlg::m_vertexValid
private
Initial value:
{
this, "ftagTPValid", "ftagTPValid",
"Is this truth particle physical - excludes gluons, free quarks, (bosons?)"}

Definition at line 70 of file TruthVertexDecoratorAlg.h.

70 {
71 this, "ftagTPValid", "ftagTPValid",
72 "Is this truth particle physical - excludes gluons, free quarks, (bosons?)"};

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