CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauDecay.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TauNtuple
4 // Class: TauDecay
5 //
11 //
12 // Original Author: Ian Nugent
13 // Created: Fri Nov 18 13:49:02 CET 2011
14 //
15 //
16 #ifndef TauDecay_h
17 #define TauDecay_h
18 
19 //
20 // class declaration
21 //
22 class TauDecay {
23  public:
24  // TAUOLA list of decay modes avalible presently available in Tauola are (JAK):
25  //
26  // * DEC BRTAU NORMAL ROUTINE CHANNEL *
27  // * 1 0.17810 0.17810 DADMEL ELECTRON *
28  // * 2 0.17370 0.17370 DADMMU MUON *
29  // * 3 0.11080 0.11080 DADMPI PION *
30  // * 4 0.25320 0.25320 DADMRO RHO (->2PI) *
31  // * 5 0.18250 0.18250 DADMAA A1 (->3PI) *
32  // * 6 0.00710 0.00710 DADMKK KAON *
33  // * 7 0.01280 0.01280 DADMKS K* *
34  // * 8 0.04500 0.04500 DAD4PI 2PI- PI+ PI0 *
35  // * 9 0.01230 0.01230 DAD4PI PI- 3PI0 *
36  // * 10 0.00500 0.00500 DADNPI 2PI- PI+ 2PI0 *
37  // * 11 0.00080 0.00080 DADNPI 3PI- 2PI+ *
38  // * 12 0.00020 0.00020 DADNPI 3PI- 2PI+ PI0 *
39  // * 13 0.00030 0.00030 DADNPI 2PI- PI+ 3PI0 *
40  // * 14 0.00190 0.00190 DADMPK K+ K- PI+ *
41  // * 15 0.00120 0.00120 DADMPK K0B K0 PI+ *
42  // * 16 0.00300 0.00300 DADMPK K+ K0B PI0 *
43  // * 17 0.00100 0.00100 DADMPK K+ PI0 PI0 *
44  // * 18 0.00230 0.00230 DADMPK K+ PI- PI+ *
45  // * 19 0.00390 0.00390 DADMPK K0 PI0 PI+ *
46  // * 20 0.00170 0.00170 DADMPK ET PI- PI0 *
47  // * 21 0.00160 0.00160 DADMPK PI-PI0 GAM *
48  // * 22 0.00160 0.00160 DADMPK K- K0B GAM *
49 
50  enum JAK{JAK_UNKNOWN=0,
61  JAK_5PI=11,
73  NJAKID=23
74  };
75 
76 
81  OnePi0=8,
82  TwoPi0=32,
84  Res_a1_pm=128,
85  Res_a1_0=256,
87  Res_rho_0=1024,
88  Res_eta=2048,
89  Res_omega=4096,
91  Res_Kstar_0=16384,
93  };
94 
95  TauDecay();
96  ~TauDecay();
97 
98  void Reset();
99  bool isTauFinalStateParticle(int pdgid);
100  bool isTauParticleCounter(int pdgid);
101  bool isTauResonanceCounter(int pdgid);
102  void ClassifyDecayMode(unsigned int &JAK_ID,unsigned int &TauBitMask);
103  unsigned int nProng(unsigned int &TauBitMask){
104  if(OneProng&TauBitMask) return 1;
105  if(ThreeProng&TauBitMask) return 3;
106  if(FiveProng&TauBitMask) return 5;
107  return 7;
108  }
109  unsigned int nPi0(unsigned int &TauBitMask){
110  if(OnePi0&TauBitMask) return 1;
111  if(TwoPi0&TauBitMask) return 2;
112  if(ThreePi0&TauBitMask) return 3;
113  return 0;
114  }
115 
116 
117  private:
118  // Functions
119  void ClassifyDecayResonance(unsigned int &TauBitMask);
120 
121  //counting varibles
122  unsigned int n_pi,n_pi0,n_K,n_K0L,n_K0S,n_gamma,n_nu,n_e,n_mu; // particle counters
123  unsigned int n_a1,n_a10,n_rho,n_rho0,n_eta,n_omega,n_Kstar0,n_Kstar,unknown; // resonance counters
124 
125 };
126 #endif
unsigned int n_pi
Definition: TauDecay.h:122
void Reset()
Definition: TauDecay.cc:17
unsigned int unknown
Definition: TauDecay.h:123
unsigned int n_nu
Definition: TauDecay.h:122
~TauDecay()
Definition: TauDecay.cc:13
unsigned int n_omega
Definition: TauDecay.h:123
unsigned int n_K
Definition: TauDecay.h:122
bool isTauFinalStateParticle(int pdgid)
Definition: TauDecay.cc:38
unsigned int n_mu
Definition: TauDecay.h:122
unsigned int n_eta
Definition: TauDecay.h:123
TauDecayStructure
Definition: TauDecay.h:77
unsigned int n_rho0
Definition: TauDecay.h:123
unsigned int n_K0S
Definition: TauDecay.h:122
unsigned int n_a10
Definition: TauDecay.h:123
TauDecay()
Definition: TauDecay.cc:9
bool isTauResonanceCounter(int pdgid)
Definition: TauDecay.cc:71
unsigned int n_a1
Definition: TauDecay.h:123
unsigned int n_e
Definition: TauDecay.h:122
unsigned int n_Kstar0
Definition: TauDecay.h:123
void ClassifyDecayResonance(unsigned int &TauBitMask)
Definition: TauDecay.cc:258
unsigned int n_rho
Definition: TauDecay.h:123
void ClassifyDecayMode(unsigned int &JAK_ID, unsigned int &TauBitMask)
Definition: TauDecay.cc:88
unsigned int n_Kstar
Definition: TauDecay.h:123
unsigned int n_K0L
Definition: TauDecay.h:122
unsigned int n_pi0
Definition: TauDecay.h:122
unsigned int nPi0(unsigned int &TauBitMask)
Definition: TauDecay.h:109
unsigned int n_gamma
Definition: TauDecay.h:122
bool isTauParticleCounter(int pdgid)
Definition: TauDecay.cc:54
unsigned int nProng(unsigned int &TauBitMask)
Definition: TauDecay.h:103