|
ATLAS Offline Software
|
Go to the documentation of this file.
41 setIncomingParticleLinks )
50 if( ! incomingParticleLinksAcc.isAvailable( *
this ) ) {
56 return incomingParticleLinksAcc( *this ).size();
60 std::vector<const TruthParticle*>
res;
65 std::vector<const TruthParticle*>
res;
72 if( ( ! incomingParticleLinksAcc.isAvailable( *
this ) ) ||
73 ( incomingParticleLinksAcc( *this ).size() <=
index ) ) {
78 const TPLink_t& ipl = incomingParticleLinksAcc( *
this )[
index ];
89 incomingParticleLinksAcc( *this ).push_back( link );
95 incomingParticleLinksAcc( *this ).clear();
100 outgoingParticleLinks,
101 setOutgoingParticleLinks )
105 outgoingParticleLinksAcc(
"outgoingParticleLinks" );
110 if( ! outgoingParticleLinksAcc.isAvailable( *
this ) ) {
116 return outgoingParticleLinksAcc( *this ).size();
122 if( ( ! outgoingParticleLinksAcc.isAvailable( *
this ) ) ||
123 ( outgoingParticleLinksAcc( *this ).size() <=
index ) ) {
128 const TPLink_t& opl = outgoingParticleLinksAcc( *
this )[
index ];
139 outgoingParticleLinksAcc( *this ).push_back( link );
145 outgoingParticleLinksAcc( *this ).clear();
167 return std::sqrt(
x() *
x() +
y() *
y() );
203 if( incomingParticleLinksAcc.isAvailableWritable( *
this ) ) {
206 for( ; itr !=
end; ++itr ) {
212 if( outgoingParticleLinksAcc.isAvailableWritable( *
this ) ) {
215 for( ; itr !=
end; ++itr ) {
JetConstituentVector::iterator iterator
void clearOutgoingParticleLinks()
Remove all outgoing particles.
size_t nOutgoingParticles() const
Get the number of outgoing particles.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > GenVecFourVec_t
Base 4 Momentum type for TruthVector.
float phi() const
Vertex azimuthal angle.
TLorentzVector FourVec_t
The 4-vector type.
std::vector< const TruthParticle * > particles_in() const
Get the incoming particles.
Helper class to provide type-safe access to aux data.
Scalar perp() const
perp method - perpenticular length
void clearIncomingParticleLinks()
Remove all incoming particles.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void addOutgoingParticleLink(const TPLink_t &link)
Add one outgoing particle.
bool const RAWDATA *ch2 const
bool isValid() const
Test to see if the link can be dereferenced.
float y() const
Vertex y displacement.
float t() const
Vertex time.
SG::AuxElement::Accessor< T > Accessor
size_t index() const
Return the index of this element within its container.
Class describing a truth particle in the MC record.
std::pair< std::vector< unsigned int >, bool > res
const TruthParticle_v1 * incomingParticle(size_t index) const
Get one of the incoming particles.
TruthVertex_v1 TruthVertex
Typedef to implementation.
void toPersistent()
Function making sure that the object is ready for persistification.
std::vector< TPLink_t > TPLinks_t
Type used to save the links to incoming and outgoing particles.
Class describing a truth vertex in the MC record.
std::vector< const TruthParticle * > particles_out() const
Get the outgoing particles.
float x() const
Vertex x displacement.
float eta() const
Vertex pseudorapidity.
size_t nIncomingParticles() const
Get the number of incoming particles.
Type::ObjectType type() const
The type of the object as a simple enumeration.
TruthVertex_v1()
Default constructor.
float z() const
Vertex longitudinal distance along the beam line form the origin.
GenVecFourVec_t genvecV4() const
The full 4-vector of the particle : GenVector form.
ObjectType
Type of objects that have a representation in the xAOD EDM.
void addIncomingParticleLink(const TPLink_t &link)
Add one incoming particle.
const TruthParticle_v1 * outgoingParticle(size_t index) const
Get one of the outgoing particles.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1