23 HepMC::GenVertex::particle_iterator des;
24 if( Tau->end_vertex()){
25 for(des = Tau->end_vertex()->particles_begin(HepMC::children);
26 des!= Tau->end_vertex()->particles_end(HepMC::children);++des ) {
27 Analyze((*des),Tauidx,dores,dopi0);
40 unsigned int pdgid=
abs(Particle->pdg_id());
43 if(!
isTauParticleCounter(pdgid))
std::cout <<
"TauDecay_CMSSW::Analyze WARNING: Unknow Final State Particle in Tau Decay... " << pdgid << std::endl;
48 HepMC::GenVertex::particle_iterator des;
49 for(des = Particle->end_vertex()->particles_begin(HepMC::children);
50 des!= Particle->end_vertex()->particles_end(HepMC::children) && Particle->end_vertex()-> particles_out_size()>0;++des ) {
51 Analyze((*des),midx,dores,dopi0);
57 if(Particle->status()==1){
62 HepMC::GenVertex::particle_iterator des;
63 for(des = Particle->end_vertex()->particles_begin(HepMC::children);
64 des!= Particle->end_vertex()->particles_end(HepMC::children);++des ) {
std::vector< HepMC::GenParticle * > TauDecayProducts
bool isTauFinalStateParticle(int pdgid)
bool isTauResonanceCounter(int pdgid)
void Analyze(HepMC::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0)
std::vector< unsigned int > MotherIdx
void ClassifyDecayMode(unsigned int &JAK_ID, unsigned int &TauBitMask)
void AddPi0Info(HepMC::GenParticle *Particle, unsigned int midx)
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &JAK_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)
bool isTauParticleCounter(int pdgid)