CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(
37  HepMC::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores = true, bool dopi0 = true);
38  // Functions to get results
39  std::vector<HepMC::GenParticle *> Get_TauDecayProducts() { return TauDecayProducts; }
40  std::vector<unsigned int> Get_MotherIdx() { return MotherIdx; }
41 
42 private:
43  // recursive function to loop through tau decay products
44  void Analyze(HepMC::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0);
45  void AddPi0Info(HepMC::GenParticle *Particle, unsigned int midx);
46  //varibles
47  std::vector<HepMC::GenParticle *> TauDecayProducts;
48  std::vector<unsigned int> MotherIdx;
49  unsigned int MODE_ID, TauBitMask;
50 };
51 #endif
unsigned int TauBitMask
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)
unsigned int MODE_ID
std::vector< HepMC::GenParticle * > TauDecayProducts
std::vector< HepMC::GenParticle * > Get_TauDecayProducts()
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()