27 Analyze(static_cast<const reco::GenParticle*>(dau),Tauidx,dores,dopi0);
41 if(!
isTauParticleCounter(pdgid))
std::cout <<
"TauDecay_GenParticle::Analyze WARNING: Unknow Final State Particle in Tau Decay... " << std::endl;
43 if(!
AddRadInfo(static_cast<const reco::GenParticle*>(Particle),midx)){
51 AddPi0Info(static_cast<const reco::GenParticle*>(dau),midx);
63 Analyze(static_cast<const reco::GenParticle*>(dau),midx,dores,dopi0);
76 AddPi0Info(static_cast<const reco::GenParticle*>(dau),midx);
81 bool same(
false),
photon(
false);
85 if(Particle->
pdgId()==dau->
pdgId()){ same=
true;}
89 if(same && photon && n==2){
93 if(!
AddRadInfo(static_cast<const reco::GenParticle*>(dau),midx)){
std::vector< const reco::GenParticle * > TauDecayProducts
virtual int status() const final
status word
bool isTauFinalStateParticle(int pdgid)
virtual int pdgId() const =0
PDG identifier.
void AddPi0Info(const reco::GenParticle *Particle, unsigned int midx)
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual int pdgId() const final
PDG identifier.
Abs< T >::type abs(const T &t)
std::vector< unsigned int > MotherIdx
bool AddRadInfo(const reco::GenParticle *Particle, unsigned int midx)
void Analyze(const reco::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0)
bool isTauResonanceCounter(int pdgid)
void ClassifyDecayMode(unsigned int &MODE_ID, unsigned int &TauBitMask)
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
bool isTauParticleCounter(int pdgid)