22 const std::vector<int>& itsType,
45 for(
unsigned int iShot=0; iShot<
m_Shots.size(); iShot++) {
59 this->IParticle::operator=( tauConst );
97 return p4().Rapidity();
152 unsigned int typeIndex = (
unsigned int)aType;
164 default:
return "UnkownType";
174 default:
return false;
181 std::vector<std::string>
res;
194 for(
unsigned int iType=0; iType<
m_TypeFlags.size(); iType++) {
217 if(
m_TypeFlags.at(
static_cast<int>(theType)) == 1)
return true;
233 if(shot !=
nullptr)
m_Shots.push_back(shot);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::pair< std::vector< unsigned int >, bool > res
void setM(float m)
set the Mass
std::vector< std::string > getTypeName() const
const std::vector< TauConstituent * > & getShots() const
virtual double pt() const
The transverse momentum ( ) of the particle.
void addShot(TauConstituent *shot)
unsigned int getNShots() const
int getNPhotonsInShot() const
virtual double eta() const
The pseudorapidity ( ) of the particle.
static double DefaultCharge()
virtual double phi() const
The azimuthal angle ( ) of the particle.
TauConstituent & operator=(const TauConstituent &tauConst)
Assignment operator.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
static bool isNeutralType(int tauConstituentType)
std::vector< TauConstituent * > m_Shots
void setPt(float pt)
set the Pt
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLorentzVector.
void setEta(float eta)
set the eta
const xAOD::PFO * getPFO() const
FourMom_t m_p4
4-momentum object
std::string getTypeNameString() const
std::vector< int > m_TypeFlags
void setPhi(float phi)
set the phi
virtual double e() const
The total energy of the particle.
bool isOfType(TauConstituent::Type aType) const
TauConstituent()
Default Constructor for POOL.
virtual ~TauConstituent()
Destructor.
void setP4(float pt, float eta, float phi, float m)
set the 4-vec
const std::vector< int > & getTypeFlags() const
static double DefaultBDTValue()
double getBDTValue() const
Type
Type enumeration to specify type of this tau constituent.
virtual double rapidity() const
The true rapidity (y) of the particle.
virtual xAOD::Type::ObjectType type() const
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
virtual double m() const
The invariant mass of the particle.
void setNPhotonsInShot(int nPhotons)
void removeTypeFlag(TauConstituent::Type aType)
static std::string getTypeName(PanTau::TauConstituent::Type aType)
void makePrivateStore()
Create a new (empty) private store for this object.
bool hasStore() const
Return true if this object has an associated store.
const SG::AuxVectorData * container() const
Return the container holding this element.
SG::Accessor< T, ALLOC > Accessor
ObjectType
Type of objects that have a representation in the xAOD EDM.
@ ParticleFlow
The object is a particle-flow object.
PFO_v1 PFO
Definition of the current "pfo version".