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