12 const reco::GenParticle *
Tau,
unsigned int &MODE_ID,
unsigned int &TauBitMask,
bool dores,
bool dopi0) {
22 Analyze(static_cast<const reco::GenParticle *>(dau), Tauidx, dores, dopi0);
31 unsigned int pdgid =
abs(Particle->
pdgId());
34 std::cout <<
"TauDecay_GenParticle::Analyze WARNING: Unknow Final State Particle in Tau Decay... " << std::endl;
36 if (!
AddRadInfo(static_cast<const reco::GenParticle *>(Particle), midx)) {
45 AddPi0Info(static_cast<const reco::GenParticle *>(dau), midx);
57 Analyze(static_cast<const reco::GenParticle *>(dau), midx, dores, dopi0);
62 if (Particle->
status() == 1) {
69 AddPi0Info(static_cast<const reco::GenParticle *>(dau), midx);
74 bool same(
false), photon(
false);
85 if (same && photon && n == 2) {
89 if (!
AddRadInfo(static_cast<const reco::GenParticle *>(dau), midx)) {
size_t numberOfDaughters() const override
number of daughters
int status() const final
status word
int pdgId() const final
PDG identifier.
bool isTauFinalStateParticle(int pdgid)
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)
virtual int pdgId() const =0
PDG identifier.
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
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 isTauParticleCounter(int pdgid)