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
std::vector< unsigned int > Get_MotherIdx()
void AddPi0Info(const reco::GenParticle *Particle, unsigned int midx)
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)
std::vector< const reco::GenParticle * > Get_TauDecayProducts()
Definition: Tau.py:1
bool AnalyzeTau(const reco::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores, bool dopi0)
std::vector< const reco::GenParticle * > TauDecayProducts