18 HepMC::GenVertex::particle_iterator des;
19 if (
Tau->end_vertex()) {
23 Analyze((*des), Tauidx, dores, dopi0);
37 std::cout <<
"TauDecay_CMSSW::Analyze WARNING: Unknow Final State Particle in Tau Decay... " <<
pdgid 43 HepMC::GenVertex::particle_iterator des;
47 Particle->end_vertex()->particles_out_size() > 0;
49 Analyze((*des), midx, dores, dopi0);
52 std::cout <<
"Unstable particle that is undecayed in Tau decay tree. PDG ID: " <<
pdgid << std::endl;
62 HepMC::GenVertex::particle_iterator des;
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)
bool isTauFinalStateParticle(int pdgid)
Abs< T >::type abs(const T &t)
std::vector< HepMC::GenParticle * > TauDecayProducts
bool isTauResonanceCounter(int pdgid)
void ClassifyDecayMode(unsigned int &MODE_ID, unsigned int &TauBitMask)
void Analyze(HepMC::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0)
std::vector< unsigned int > MotherIdx
void AddPi0Info(HepMC::GenParticle *Particle, unsigned int midx)
bool isTauParticleCounter(int pdgid)