|
ATLAS Offline Software
|
Go to the documentation of this file.
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 ) ) {
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 ) ) {
131 truthVertexLinksAcc( *this ).push_back( link );
137 truthVertexLinksAcc( *this ).clear();
146 if( truthParticleLinksAcc.isAvailableWritable( *
this ) ) {
148 truthParticleLinksAcc( *this ).begin();
150 truthParticleLinksAcc( *this ).end();
151 for( ; itr !=
end; ++itr ) {
157 if( truthVertexLinksAcc.isAvailableWritable( *
this ) ) {
159 truthVertexLinksAcc( *this ).begin();
161 truthVertexLinksAcc( *this ).end();
162 for( ; itr !=
end; ++itr ) {
JetConstituentVector::iterator iterator
void toPersistent()
Function making sure that the object is ready for persistification.
TruthEventBase_v1()
Default constructor.
Helper class to provide type-safe access to aux data.
const TruthParticle * truthParticle(size_t index) const
Get a pointer to one of the truth particles.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void addTruthParticleLink(const TruthParticleLink_t &plink)
Add one truth particle.
size_t index() const
Return the index of this element within its container.
Class describing a truth particle in the MC record.
const TruthParticleLink_t & truthParticleLink(size_t index) const
Get the link to one of the truth particles.
const TruthVertexLink_t & truthVertexLink(size_t index) const
Get the link to one of the truth vertices.
void clearTruthParticleLinks()
Remove all truth particles.
std::vector< TruthVertexLink_t > TruthVertexLinks_t
Type of the truth particle links vector.
Base class describing a pile-up or signal truth event in the MC record.
Class describing a truth vertex in the MC record.
size_t nTruthParticles() const
Get the number of truth particles.
ElementLink< TruthParticleContainer > TruthParticleLink_t
Type of a single truth particle link.
size_t nTruthVertices() const
Get the number of truth vertices.
void clearTruthVertexLinks()
Remove all truth vertices.
ElementLink< TruthVertexContainer > TruthVertexLink_t
Type of a single truth vertex link.
void addTruthVertexLink(const TruthVertexLink_t &vlink)
Add one truth vertex.
const TruthVertex * truthVertex(size_t index) const
Get a pointer to one of the truth vertices.
std::vector< TruthParticleLink_t > TruthParticleLinks_t
Type of the truth particle links vector.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1