Validation
EventGenerator
interface
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
21
#include "
Validation/EventGenerator/interface/TauDecay.h
"
22
23
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
24
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
25
#include <
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
>
26
27
//
28
// class declaration
29
//
30
class
TauDecay_CMSSW
:
public
TauDecay
{
31
public
:
32
TauDecay_CMSSW
();
33
~TauDecay_CMSSW
();
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
TauDecay_CMSSW::TauBitMask
unsigned int TauBitMask
Definition:
TauDecay_CMSSW.h:49
TauDecay.h
TauDecay_CMSSW::Analyze
void Analyze(HepMC::GenParticle *Particle, unsigned int midx, bool dores, bool dopi0)
Definition:
TauDecay_CMSSW.cc:32
Tau
Definition:
Tau.py:1
TauDecay
Definition:
TauDecay.h:21
TauDecay_CMSSW::TauDecayProducts
std::vector< HepMC::GenParticle * > TauDecayProducts
Definition:
TauDecay_CMSSW.h:47
GenParticle.h
TauDecay_CMSSW
Definition:
TauDecay_CMSSW.h:30
TauDecay_CMSSW::~TauDecay_CMSSW
~TauDecay_CMSSW()
Definition:
TauDecay_CMSSW.cc:9
GenParticleFwd.h
TauDecay_CMSSW::Get_TauDecayProducts
std::vector< HepMC::GenParticle * > Get_TauDecayProducts()
Definition:
TauDecay_CMSSW.h:39
TauDecay_CMSSW::MODE_ID
unsigned int MODE_ID
Definition:
TauDecay_CMSSW.h:49
GenParticle.GenParticle
GenParticle
Definition:
GenParticle.py:18
TauDecay_CMSSW::MotherIdx
std::vector< unsigned int > MotherIdx
Definition:
TauDecay_CMSSW.h:48
TauDecay_CMSSW::TauDecay_CMSSW
TauDecay_CMSSW()
Definition:
TauDecay_CMSSW.cc:7
TauDecay_CMSSW::AddPi0Info
void AddPi0Info(HepMC::GenParticle *Particle, unsigned int midx)
Definition:
TauDecay_CMSSW.cc:56
Particle
Definition:
Particle.py:1
TauDecay_CMSSW::Get_MotherIdx
std::vector< unsigned int > Get_MotherIdx()
Definition:
TauDecay_CMSSW.h:40
HepMCProduct.h
TauDecay_CMSSW::AnalyzeTau
bool AnalyzeTau(HepMC::GenParticle *Tau, unsigned int &MODE_ID, unsigned int &TauBitMask, bool dores=true, bool dopi0=true)
Definition:
TauDecay_CMSSW.cc:11
Generated for CMSSW Reference Manual by
1.8.16