ATLAS Offline Software
Loading...
Searching...
No Matches
TruthBinding.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ISF_EVENT_TRUTHBINDING_H
6#define ISF_EVENT_TRUTHBINDING_H
7
8// HepMC
10
11namespace ISF {
12
17
19 public:
21 TruthBinding() = delete;
22
27
29 inline TruthBinding(const TruthBinding &rhs) = default;
30 inline TruthBinding(TruthBinding&& rhs) = default;
31
32 //** assignment operators */
33 inline TruthBinding& operator=(const TruthBinding &rhs) = default;
34 inline TruthBinding& operator=(TruthBinding&& rhs) = default;
35
37 inline bool operator==(const TruthBinding& rhs) const;
38 inline bool isEqual(const TruthBinding& rhs) const;
39 inline bool isIdent(const TruthBinding& rhs) const;
40
42 inline ~TruthBinding();
43
48
52
57
60
61 private:
65 };
66
67} // end of namespace
68
69/* implementation for inlined methods */
71
72#endif // ISF_EVENT_TRUTHBINDING_H
void setGenerationZeroGenParticle(HepMC::GenParticlePtr p)
HepMC::GenParticlePtr m_generationZeroGenParticle
pointer to corresponding truth particle before any regenration
HepMC::ConstGenParticlePtr getPrimaryGenParticle() const
bool isEqual(const TruthBinding &rhs) const
HepMC::ConstGenParticlePtr getGenerationZeroGenParticle() const
HepMC::ConstGenParticlePtr getCurrentGenParticle() const
TruthBinding(HepMC::GenParticlePtr truthP, HepMC::GenParticlePtr primaryTruthP, HepMC::GenParticlePtr genZeroTruthP)
constructor setting all truth particle pointers individually
HepMC::GenParticlePtr getPrimaryGenParticle()
pointer to the primary particle in the simulation truth
~TruthBinding()
destructor
bool isIdent(const TruthBinding &rhs) const
TruthBinding(const TruthBinding &rhs)=default
copy constructors
void setCurrentGenParticle(HepMC::GenParticlePtr p)
TruthBinding(HepMC::GenParticlePtr allTruthP)
constructor setting all truth particle pointers to the given particle
HepMC::GenParticlePtr m_truthParticle
pointer to particle in MC truth
bool operator==(const TruthBinding &rhs) const
comparisons
TruthBinding(TruthBinding &&rhs)=default
HepMC::GenParticlePtr m_primaryGenParticle
pointer to corresponding primary (generator) particle
TruthBinding & operator=(const TruthBinding &rhs)=default
HepMC::GenParticlePtr getCurrentGenParticle()
pointer to the particle in the simulation truth
TruthBinding & operator=(TruthBinding &&rhs)=default
TruthBinding()=delete
No default constructor.
HepMC::GenParticlePtr getGenerationZeroGenParticle()
pointer to the simulation truth particle before any regeneration happened (eg.
TruthBinding * childTruthBinding(HepMC::GenParticlePtr childP)
Create a TruthBinding for a child particle.
GenParticle * GenParticlePtr
Definition GenParticle.h:37
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
ISFParticleOrderedQueue.