26 setTruthParticleLinks )
30 truthParticleLinksAcc(
"truthParticleLinks" );
36 if( ! truthParticleLinksAcc.isAvailable( *
this ) ) {
41 return truthParticleLinksAcc( *this ).size();
47 return truthParticleLinksAcc( *this ).at(
index );
53 if( ! truthParticleLinksAcc.isAvailable( *
this ) ) {
64 return *( links[
index ] );
70 truthParticleLinksAcc( *this ).push_back( link );
76 truthParticleLinksAcc( *this ).clear();
92 truthVertexLinksAcc(
"truthVertexLinks" );
98 if( ! truthVertexLinksAcc.isAvailable( *
this ) ) {
103 return truthVertexLinksAcc( *this ).size();
109 return truthVertexLinksAcc( *this ).at(
index);
115 if( ! truthVertexLinksAcc.isAvailable( *
this ) ) {
126 return *( links[
index ] );
131 truthVertexLinksAcc( *this ).push_back( link );
137 truthVertexLinksAcc( *this ).clear();
146 if( truthParticleLinksAcc.isAvailableWritable( *
this ) ) {
147 TruthParticleLinks_t::iterator itr =
148 truthParticleLinksAcc( *this ).begin();
149 TruthParticleLinks_t::iterator end =
150 truthParticleLinksAcc( *this ).end();
151 for( ; itr != end; ++itr ) {
157 if( truthVertexLinksAcc.isAvailableWritable( *
this ) ) {
158 TruthVertexLinks_t::iterator itr =
159 truthVertexLinksAcc( *this ).begin();
160 TruthVertexLinks_t::iterator end =
161 truthVertexLinksAcc( *this ).end();
162 for( ; itr != end; ++itr ) {
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
AuxElement()
Default constructor.
Base class describing a pile-up or signal truth event in the MC record.
void clearTruthParticleLinks()
Remove all truth particles.
const TruthParticle * truthParticle(size_t index) const
Get a pointer to one of the truth particles.
ElementLink< TruthParticleContainer > TruthParticleLink_t
Type of a single truth particle link.
ElementLink< TruthVertexContainer > TruthVertexLink_t
Type of a single truth vertex link.
size_t nTruthParticles() const
Get the number of truth particles.
TruthEventBase_v1()
Default constructor.
const TruthVertex * truthVertex(size_t index) const
Get a pointer to one of the truth vertices.
const TruthVertexLink_t & truthVertexLink(size_t index) const
Get the link to one of the truth vertices.
void addTruthVertexLink(const TruthVertexLink_t &vlink)
Add one truth vertex.
void toPersistent()
Function making sure that the object is ready for persistification.
std::vector< TruthVertexLink_t > TruthVertexLinks_t
Type of the truth particle links vector.
std::vector< TruthParticleLink_t > TruthParticleLinks_t
Type of the truth particle links vector.
void addTruthParticleLink(const TruthParticleLink_t &plink)
Add one truth particle.
const TruthParticleLink_t & truthParticleLink(size_t index) const
Get the link to one of the truth particles.
void clearTruthVertexLinks()
Remove all truth vertices.
size_t nTruthVertices() const
Get the number of truth vertices.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthVertex_v1 TruthVertex
Typedef to implementation.
TruthParticle_v1 TruthParticle
Typedef to implementation.