CMS 3D CMS Logo

TauDecay_CMSSW.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TauNtuple
4 // Class: TauDecay_CMSSW
5 //
13 //
14 // Original Author: Ian Nugent
15 // Created: Fri Nov 18 13:49:02 CET 2011
16 //
17 //
18 #ifndef TauDecay_CMSSW_h
19 #define TauDecay_CMSSW_h
20 
22 
26 
27 //
28 // class declaration
29 //
30 class TauDecay_CMSSW : public TauDecay {
31 public:
34 
35  //Function to analyze the tau
36  bool AnalyzeTau(HepMC::GenParticle *Tau,unsigned int &MODE_ID,unsigned int &TauBitMask,bool dores=true, bool dopi0=true);
37  // Functions to get results
38  std::vector<HepMC::GenParticle*> Get_TauDecayProducts(){return TauDecayProducts;}
39  std::vector<unsigned int> Get_MotherIdx(){return MotherIdx;}
40 
41 private:
42  // recursive function to loop through tau decay products
43  void Analyze(HepMC::GenParticle *Particle,unsigned int midx,bool dores, bool dopi0);
44  void AddPi0Info(HepMC::GenParticle *Particle,unsigned int midx);
45  //varibles
46  std::vector<HepMC::GenParticle*> TauDecayProducts;
47  std::vector<unsigned int> MotherIdx;
48  unsigned int MODE_ID, TauBitMask;
49 
50 };
51 #endif
unsigned int TauBitMask
std::vector< HepMC::GenParticle * > TauDecayProducts
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)
unsigned int MODE_ID
Definition: Tau.py:1
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)
std::vector< unsigned int > Get_MotherIdx()
std::vector< HepMC::GenParticle * > Get_TauDecayProducts()