CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 // $Id: TauDecay_CMSSW.h,v 1.1 2011/12/01 13:51:23 cherepan Exp $
17 //
18 //
19 #ifndef TauDecay_CMSSW_h
20 #define TauDecay_CMSSW_h
21 
23 
27 
28 //
29 // class declaration
30 //
31 class TauDecay_CMSSW : public TauDecay {
32 public:
35 
36  //Function to analyze the tau
37  bool AnalyzeTau(HepMC::GenParticle *Tau,unsigned int &JAK_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 JAK_ID, TauBitMask;
50 
51 };
52 #endif
unsigned int TauBitMask
unsigned int JAK_ID
std::vector< HepMC::GenParticle * > 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()
std::vector< HepMC::GenParticle * > Get_TauDecayProducts()
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &JAK_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)