37 if(curConst !=
nullptr)
delete curConst;
46 std::vector<PanTau::TauConstituent*> curConsts =
m_Constituents[iType];
82 this->IParticle::operator=( seed );
83 this->
m_p4 = seed.m_p4;
130 return p4().Rapidity();
187 const std::vector<PanTau::TauConstituent*>& tauConstituents,
188 const std::vector<PanTau::TauConstituent*>& tauConstituentsAll,
189 const std::vector<int>& pantauSeed_TechnicalQuality
207 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
208 bool isCoreChrg = tauConstituents[iConst]->isOfType(PanTau::TauConstituent::t_Charged);
209 bool isCoreNeut = tauConstituents[iConst]->isOfType(PanTau::TauConstituent::t_Neutral);
210 bool isCorePi0 = tauConstituents[iConst]->isOfType(PanTau::TauConstituent::t_Pi0Neut);
212 if(isCoreChrg || isCoreNeut || isCorePi0) m_ConstituentsList_Core.push_back(tauConstituents[iConst]);
218 m_Constituents.emplace_back(0 );
219 m_TypeHLVs.emplace_back(0,0,0,0 );
223 TLorentzVector hlv_SumConstituents_Core = TLorentzVector(0,0,0,0);
228 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
232 for(
unsigned int curType=0; curType<curTypes.size(); curType++) {
233 if(curTypes.at(curType) == 0)
continue;
268 const std::vector<int>& pantauSeed_TechnicalQuality)
324 return "InvalidMode!!!";
340 return std::vector<TauConstituent*>(0);
350 std::vector<PanTau::TauConstituent*> consts = this->
getConstituentsOfType(tauConstituent_Type, isOK);
352 return static_cast<int>(consts.size());
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
virtual double eta() const
The pseudorapidity ( ) of the particle.
bool m_decayModeHack_CellBasedShots
std::vector< PanTau::TauConstituent * > m_ConstituentsList_AllSelected
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLoretzVector.
static std::string getDecayModeName(int decayMode)
void setEta(float eta)
set the eta
std::vector< PanTau::TauConstituent * > getConstituentsOfType(int tauConstituent_Type, bool &foundit)
void setPhi(float phi)
set the phi
void setPt(float pt)
set the Pt
virtual xAOD::Type::ObjectType type() const
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
std::vector< PanTau::TauConstituent * > m_ConstituentsList_Core
std::vector< PanTau::TauConstituent * > m_ConstituentsList_All
TLorentzVector m_ProtoMomentum_Core
PanTau::TauFeature * m_Features
flag to indicate whether the decay mode by cellbased was
virtual double m() const
The invariant mass of the particle.
PanTauSeed & operator=(const PanTauSeed &seed)
FourMom_t m_p4
4-momentum object
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
int getNumberOfConstituentsOfType(int tauConstituent_Type)
virtual double pt() const
The transverse momentum ( ) of the particle.
std::vector< TLorentzVector > m_TypeHLVs
void setP4(float pt, float eta, float phi, float m)
set the 4-vec
std::vector< std::vector< PanTau::TauConstituent * > > m_Constituents
bool isOfTechnicalQuality(int pantauSeed_TechnicalQuality) const
virtual double e() const
The total energy of the particle.
static int getDecayMode(int nCharged, int nNeutral)
virtual double rapidity() const
The true rapidity (y) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
TLorentzVector getSubsystemHLV(int tauConstituent_Type, bool &foundit)
void setM(float m)
set the Mass
std::vector< int > m_TechnicalQuality
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLorentzVector.
bool isOfType(TauConstituent::Type aType) const
const std::vector< int > & getTypeFlags() const
Class containing features of a tau seed.
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
double ptIntermediateAxis() const
double mIntermediateAxis() const
double etaIntermediateAxis() const
double phiIntermediateAxis() const
ObjectType
Type of objects that have a representation in the xAOD EDM.
@ Tau
The object is a tau (jet)
TauJet_v3 TauJet
Definition of the current "tau version".