CMS 3D CMS Logo

TauDecay_GenParticle.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Validation/EventGenerator
4 // Class: TauDecay_GenParticle
5 /*
6 Description: Bridge class for TauDecay when using GenParticles
7 Implementation:
8 [Notes on implementation]
9 */
10 //
11 // Original Author: Ian Nugent
12 //
13 
14 #ifndef TauDecay_GenParticle_h
15 #define TauDecay_GenParticle_h
16 
21 
22 // class declaration
24 public:
27 
28  //Function to analyze the tau
29  bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0);
30  // Functions to get results
31  std::vector<const reco::GenParticle *> Get_TauDecayProducts() { return TauDecayProducts; }
32  std::vector<unsigned int> Get_MotherIdx() { return MotherIdx; }
33  bool AddRadInfo(const reco::GenParticle *Particle, unsigned int midx);
34 
35 private:
36  // recursive function to loop through tau decay products
37  void Analyze(const reco::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0);
38  void AddPi0Info(const reco::GenParticle *Particle, unsigned int midx);
39  //varibles
40  std::vector<const reco::GenParticle *> TauDecayProducts;
41  std::vector<unsigned int> MotherIdx;
42  unsigned int MODE_ID, TauBitMask;
43 };
44 #endif
TauDecay_GenParticle::Get_MotherIdx
std::vector< unsigned int > Get_MotherIdx()
Definition: TauDecay_GenParticle.h:32
reco::GenParticle
Definition: GenParticle.h:21
TauDecay_GenParticle::~TauDecay_GenParticle
~TauDecay_GenParticle()
Definition: TauDecay_GenParticle.cc:9
TauDecay.h
Tau
Definition: Tau.py:1
TauDecay
Definition: TauDecay.h:21
TauDecay_GenParticle::TauDecayProducts
std::vector< const reco::GenParticle * > TauDecayProducts
Definition: TauDecay_GenParticle.h:40
TauDecay_GenParticle::Analyze
void Analyze(const reco::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0)
Definition: TauDecay_GenParticle.cc:30
TauDecay_GenParticle::MODE_ID
unsigned int MODE_ID
Definition: TauDecay_GenParticle.h:42
GenParticle.h
TauDecay_GenParticle::AnalyzeTau
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
Definition: TauDecay_GenParticle.cc:11
TauDecay_GenParticle::MotherIdx
std::vector< unsigned int > MotherIdx
Definition: TauDecay_GenParticle.h:41
GenParticleFwd.h
TauDecay_GenParticle::TauBitMask
unsigned int TauBitMask
Definition: TauDecay_GenParticle.h:42
TauDecay_GenParticle::TauDecay_GenParticle
TauDecay_GenParticle()
Definition: TauDecay_GenParticle.cc:7
TauDecay_GenParticle::AddRadInfo
bool AddRadInfo(const reco::GenParticle *Particle, unsigned int midx)
Definition: TauDecay_GenParticle.cc:73
TauDecay_GenParticle::AddPi0Info
void AddPi0Info(const reco::GenParticle *Particle, unsigned int midx)
Definition: TauDecay_GenParticle.cc:61
TauDecay_GenParticle::Get_TauDecayProducts
std::vector< const reco::GenParticle * > Get_TauDecayProducts()
Definition: TauDecay_GenParticle.h:31
Particle
Definition: Particle.py:1
HepMCProduct.h
TauDecay_GenParticle
Definition: TauDecay_GenParticle.h:23