![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
22 const std::vector<int>& itsType,
28 m_BDTValue(itsBDTValue),
45 for(
unsigned int iShot=0; iShot<m_Shots.size(); iShot++) {
56 if (!this->container() && !this->hasStore() ) {
59 this->IParticle::operator=( tauConst );
60 this->m_p4 = tauConst.
m_p4;
64 m_PFO = tauConst.
m_PFO;
97 return p4().Rapidity();
121 m_p4.SetPtEtaPhiM(
pt,
eta(),
phi(),
m());
128 m_p4.SetPtEtaPhiM(
pt(),
eta,
phi(),
m());
135 m_p4.SetPtEtaPhiM(
pt(),
eta(),
phi,
m());
142 m_p4.SetPtEtaPhiM(
pt(),
eta(),
phi(),
m);
152 unsigned int typeIndex = (
unsigned int)aType;
153 m_TypeFlags.at(typeIndex) = 0;
168 default:
return "UnkownType";
181 default:
return false;
197 default:
return false;
205 std::vector<std::string>
res;
207 if(m_TypeFlags[iType] == 1) {
218 for(
unsigned int iType=0; iType<m_TypeFlags.size(); iType++) {
219 if(m_TypeFlags[iType] == 1) {
241 if(m_TypeFlags.at(
static_cast<int>(theType)) == 1)
return true;
257 if(shot !=
nullptr) m_Shots.push_back(shot);
267 return m_Shots.size();
272 m_nPhotonsInShot = nPhotons;
277 return m_nPhotonsInShot;
FourMom_t m_p4
4-momentum object
Type
Type enumeration to specify type of this tau constituent.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
virtual ~TauConstituent()
Destructor.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLorentzVector.
int getNPhotonsInShot() const
std::string getTypeNameString() const
void setNPhotonsInShot(int nPhotons)
TauConstituent()
Default Constructor for POOL.
double getBDTValue() const
static bool isNeutralType(int tauConstituentType)
void setEta(float eta)
set the eta
std::vector< std::string > getTypeName() const
unsigned int getNShots() const
std::pair< std::vector< unsigned int >, bool > res
@ ParticleFlow
The object is a particle-flow object.
virtual double rapidity() const
The true rapidity (y) of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
void addShot(TauConstituent *shot)
void setPhi(float phi)
set the phi
Class describing a particle flow object.
std::vector< int > m_TypeFlags
void setPt(float pt)
set the Pt
virtual double eta() const
The pseudorapidity ( ) of the particle.
std::vector< TauConstituent * > m_Shots
bool isOfType(TauConstituent::Type aType) const
TauConstituent & operator=(const TauConstituent &tauConst)
Assignment operator.
void setM(float m)
set the Mass
void setP4(float pt, float eta, float phi, float m)
set the 4-vec
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double m() const
The invariant mass of the particle.
static bool isCoreType(int tauConstituentType)
std::vector< int > getTypeFlags() const
std::vector< TauConstituent * > getShots() const
virtual xAOD::Type::ObjectType type() const
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
void removeTypeFlag(TauConstituent::Type aType)
const xAOD::PFO * getPFO() const
virtual double e() const
The total energy of the particle.