Loading [MathJax]/jax/input/TeX/config.js
 |
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() ) {
60 this->m_p4 = tauConst.
m_p4;
64 m_PFO = tauConst.
m_PFO;
97 return p4().Rapidity();
114 m_p4.SetPtEtaPhiM(
pt, eta, phi,
m);
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;
166 default:
return "UnkownType";
177 default:
return false;
184 std::vector<std::string>
res;
186 if(m_TypeFlags[iType] == 1) {
197 for(
unsigned int iType=0; iType<m_TypeFlags.size(); iType++) {
198 if(m_TypeFlags[iType] == 1) {
220 if(m_TypeFlags.at(
static_cast<int>(theType)) == 1)
return true;
236 if(shot !=
nullptr) m_Shots.push_back(shot);
246 return m_Shots.size();
251 m_nPhotonsInShot = nPhotons;
256 return m_nPhotonsInShot;
const std::vector< int > & getTypeFlags() const
FourMom_t m_p4
4-momentum object
Type
Type enumeration to specify type of this tau constituent.
AccessorTemplate & operator=(AccessorTemplate &&that)
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.
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.