27 Analyze(static_cast<const reco::GenParticle*>(dau),Tauidx,dores,dopi0);
39 unsigned int pdgid=
abs(Particle->
pdgId());
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
bool isTauFinalStateParticle(int pdgid)
virtual int status() const final
status word
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) ...
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)
virtual int pdgId() const =0
PDG identifier.
virtual int pdgId() const final
PDG identifier.
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
bool isTauParticleCounter(int pdgid)