Belle II Software  release-05-02-19
PIDTree.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric, Jake Bennett *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef PIDTREE_H
12 #define PIDTREE_H
13 
14 #include <TTree.h>
15 
16 namespace Belle2 {
21  namespace PID {
22 
26  struct LogLikelihoods {
27  Float_t le;
28  Float_t lmu;
29  Float_t lpi;
30  Float_t lk;
31  Float_t lp;
32  Short_t flag;
33  Short_t seen;
38  LogLikelihoods(): le(0), lmu(0), lpi(0), lk(0), lp(0), flag(0), seen(0)
39  {}
40 
44  void clear()
45  {
46  le = 0;
47  lmu = 0;
48  lpi = 0;
49  lk = 0;
50  lp = 0;
51  flag = 0;
52  seen = 0;
53  }
54  }; // struct LogLikelihoods
55 
59  struct PIDTree {
60  Int_t evt;
61  Int_t run;
63  Float_t p;
64  Float_t cth;
65  Float_t phi;
66  Float_t pValue;
68  Int_t PDG;
69  Int_t motherPDG;
70  Short_t primary;
71  Float_t rhoProd;
72  Float_t zProd;
73  Float_t phiProd;
74  Float_t rhoDec;
75  Float_t zDec;
76  Float_t phiDec;
88  PIDTree(): evt(0), run(0), p(0), cth(0), phi(0), pValue(0), PDG(0), motherPDG(0),
89  primary(0), rhoProd(0), zProd(0), phiProd(0), rhoDec(0), zDec(0), phiDec(0)
90  {}
91 
95  void clear()
96  {
97  evt = 0;
98  run = 0;
99  p = 0;
100  cth = 0;
101  phi = 0;
102  pValue = 0;
103  PDG = 0;
104  motherPDG = 0;
105  rhoProd = 0;
106  zProd = 0;
107  phiProd = 0;
108  rhoDec = 0;
109  zDec = 0;
110  phiDec = 0;
111  primary = 0;
112  cdcdedx.clear();
113  svddedx.clear();
114  top.clear();
115  arich.clear();
116  ecl.clear();
117  klm.clear();
118  }
119  }; // struct PIDTree
120  } // PID namespace
122 } // Belle2 namespace
123 
124 #endif
125 
Belle2::PID::LogLikelihoods::le
Float_t le
log likelihood for electron
Definition: PIDTree.h:35
Belle2::PID::PIDTree::klm
LogLikelihoods klm
log likelihoods from KLM
Definition: PIDTree.h:91
Belle2::PID::PIDTree::cdcdedx
LogLikelihoods cdcdedx
log likelihoods from CDC dE/dx
Definition: PIDTree.h:86
Belle2::PID::PIDTree::rhoDec
Float_t rhoDec
decay vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:82
Belle2::PID::LogLikelihoods::seen
Short_t seen
is seen in this component (from related MCParticle)
Definition: PIDTree.h:41
Belle2::PID::LogLikelihoods::lmu
Float_t lmu
log likelihood for muon
Definition: PIDTree.h:36
Belle2::PID::PIDTree::ecl
LogLikelihoods ecl
log likelihoods from ECL
Definition: PIDTree.h:90
Belle2::PID::LogLikelihoods::lp
Float_t lp
log likelihood for proton
Definition: PIDTree.h:39
Belle2::PID::PIDTree::clear
void clear()
Clear the structure: set elements to zero.
Definition: PIDTree.h:103
Belle2::PID::PIDTree::rhoProd
Float_t rhoProd
production vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:79
Belle2::PID::PIDTree::zProd
Float_t zProd
production vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:80
Belle2::PID::PIDTree::arich
LogLikelihoods arich
log likelihoods from ARICH
Definition: PIDTree.h:89
Belle2::PID::PIDTree::phiDec
Float_t phiDec
decay vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:84
Belle2::PID::PIDTree::primary
Short_t primary
is a primary particle (from related MCParticle)
Definition: PIDTree.h:78
Belle2::PID::PIDTree::pValue
Float_t pValue
p-value of Track fit
Definition: PIDTree.h:74
Belle2::PID::LogLikelihoods
Structure for the output of PID log likelihoods to a flat ntuple.
Definition: PIDTree.h:34
Belle2::PID::PIDTree::phiProd
Float_t phiProd
production vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:81
Belle2::PID::LogLikelihoods::LogLikelihoods
LogLikelihoods()
Default constructor.
Definition: PIDTree.h:46
Belle2::PID::PIDTree::motherPDG
Int_t motherPDG
PDG code of related mother MCParticle.
Definition: PIDTree.h:77
Belle2::PID::LogLikelihoods::flag
Short_t flag
flag: information is available (1) or not (0)
Definition: PIDTree.h:40
Belle2::PID::PIDTree::top
LogLikelihoods top
log likelihoods from TOP
Definition: PIDTree.h:88
Belle2::PID::LogLikelihoods::lk
Float_t lk
log likelihood for kaon
Definition: PIDTree.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PID::PIDTree::PIDTree
PIDTree()
Default constructor.
Definition: PIDTree.h:96
Belle2::PID::PIDTree::p
Float_t p
momentum magnitude of Track
Definition: PIDTree.h:71
Belle2::PID::LogLikelihoods::clear
void clear()
Clear the structure: set elements to zero.
Definition: PIDTree.h:52
Belle2::PID::PIDTree::evt
Int_t evt
event number
Definition: PIDTree.h:68
Belle2::PID::PIDTree::run
Int_t run
run number
Definition: PIDTree.h:69
Belle2::PID::PIDTree::phi
Float_t phi
azimuthal angle of Track
Definition: PIDTree.h:73
Belle2::PID::LogLikelihoods::lpi
Float_t lpi
log likelihood for pion
Definition: PIDTree.h:37
Belle2::PID::PIDTree::svddedx
LogLikelihoods svddedx
log likelihoods from SVD dE/dx
Definition: PIDTree.h:87
Belle2::PID::PIDTree::PDG
Int_t PDG
PDG code of related MCParticle.
Definition: PIDTree.h:76
Belle2::PID::PIDTree::cth
Float_t cth
cosine of polar angle of Track
Definition: PIDTree.h:72
Belle2::PID::PIDTree::zDec
Float_t zDec
decay vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:83