11#ifndef MCPARTICLEEVENT_TRUTHPARTICLEBASE_H
12#define MCPARTICLEEVENT_TRUTHPARTICLEBASE_H
26#include "AthLinks/ElementLink.h"
94 std::ostream&
dump( std::ostream& out )
const;
double charge(const T &p)
double ChargeType
typedef ChargeType used to anticipate changes here
ElementLink implementation for ROOT usage.
Trk::RecVertex inherits from Trk::Vertex.
void setCharge(const ChargeType charge)
Set the charge of this TruthParticleBase.
void set_dataType(ParticleDataType::DataType)
bool hasPdgId() const
method to check if particle id information is available
AthenaBarCodeImpl & getAthenaBarCodeImpl()
return the (atlas) unique identifier
ParticleDataType::DataType dataType() const
Return enum indicating real data, fast, or full simulation Return Type has a DataType enum with the f...
HepMC::ConstGenParticlePtr m_genParticle
The HepMC::GenParticle we are proxying.
const ElementLink< VxContainer > & originLink() const
Return the ElementLink to particle Origin.
AthenaBarCodeImpl m_abc
The AthenaBarCodeImpl held to provide unique identification throughout the whole Atlas EDM.
ChargeType m_charge
The charge of this TruthParticle.
const AthenaBarCodeImpl & getAthenaBarCodeImpl() const
return the (atlas) unique identifier
void set_origin(const VxContainer *, int)
void set_charge(ChargeType x)
int pdgId() const
Return eparticle id.
bool hasCharge() const
method to check if charge information is available
TruthParticleBase & operator=(const TruthParticleBase &rhs)
Assignment operator:
const Trk::RecVertex * origin() const
Return a RecVertex corresponding to particle Origin.
ChargeType charge() const
returns charge as a typedef ChargeType currently Charge Type is a double for jets this may be changed...
TruthParticleBase()
Default constructor:
HepMC::ConstGenParticlePtr genParticle() const
return the HepMC::GenParticle which is being proxied
void setGenParticle(HepMC::ConstGenParticlePtr particle)
Fill the data members of ParticleBase from the GenParticle.
~TruthParticleBase()
Destructor:
void set_origin(const VxContainer *, const Trk::VxCandidate *)
GenParticle * GenParticlePtr
const GenParticle * ConstGenParticlePtr
Ensure that the ATLAS eigen extensions are properly loaded.