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)){
int pdgId() const final
PDG identifier.
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
std::vector< const reco::GenParticle * > TauDecayProducts
bool isTauFinalStateParticle(int pdgid)
virtual int pdgId() const =0
PDG identifier.
void AddPi0Info(const reco::GenParticle *Particle, unsigned int midx)
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)
size_t numberOfDaughters() const override
number of daughters
int status() const final
status word
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
bool isTauParticleCounter(int pdgid)