Belle II Software  release-08-01-10
PIDTree.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <TTree.h>
12 
13 namespace Belle2 {
18  namespace PID {
19 
23  struct LogLikelihoods {
24  Float_t le;
25  Float_t lmu;
26  Float_t lpi;
27  Float_t lk;
28  Float_t lp;
29  Short_t flag;
30  Short_t seen;
35  LogLikelihoods(): le(0), lmu(0), lpi(0), lk(0), lp(0), flag(0), seen(0)
36  {}
37 
41  void clear()
42  {
43  le = 0;
44  lmu = 0;
45  lpi = 0;
46  lk = 0;
47  lp = 0;
48  flag = 0;
49  seen = 0;
50  }
51  }; // struct LogLikelihoods
52 
56  struct PIDTree {
57  Int_t evt;
58  Int_t run;
60  Float_t p;
61  Float_t cth;
62  Float_t phi;
63  Float_t pValue;
65  Int_t PDG;
66  Int_t motherPDG;
67  Short_t primary;
68  Float_t rhoProd;
69  Float_t zProd;
70  Float_t phiProd;
71  Float_t rhoDec;
72  Float_t zDec;
73  Float_t phiDec;
85  PIDTree(): evt(0), run(0), p(0), cth(0), phi(0), pValue(0), PDG(0), motherPDG(0),
86  primary(0), rhoProd(0), zProd(0), phiProd(0), rhoDec(0), zDec(0), phiDec(0)
87  {}
88 
92  void clear()
93  {
94  evt = 0;
95  run = 0;
96  p = 0;
97  cth = 0;
98  phi = 0;
99  pValue = 0;
100  PDG = 0;
101  motherPDG = 0;
102  rhoProd = 0;
103  zProd = 0;
104  phiProd = 0;
105  rhoDec = 0;
106  zDec = 0;
107  phiDec = 0;
108  primary = 0;
109  cdcdedx.clear();
110  svddedx.clear();
111  top.clear();
112  arich.clear();
113  ecl.clear();
114  klm.clear();
115  }
116  }; // struct PIDTree
117  } // PID namespace
119 } // Belle2 namespace
120 
Abstract base class for different kinds of events.
Structure for the output of PID log likelihoods to a flat ntuple.
Definition: PIDTree.h:23
LogLikelihoods()
Default constructor.
Definition: PIDTree.h:35
Float_t lk
log likelihood for kaon
Definition: PIDTree.h:27
Short_t flag
flag: information is available (1) or not (0)
Definition: PIDTree.h:29
Short_t seen
is seen in this component (from related MCParticle)
Definition: PIDTree.h:30
Float_t le
log likelihood for electron
Definition: PIDTree.h:24
Float_t lp
log likelihood for proton
Definition: PIDTree.h:28
void clear()
Clear the structure: set elements to zero.
Definition: PIDTree.h:41
Float_t lpi
log likelihood for pion
Definition: PIDTree.h:26
Float_t lmu
log likelihood for muon
Definition: PIDTree.h:25
Structure for the output of PID log likelihoods + tracking info to a flat ntuple.
Definition: PIDTree.h:56
Float_t zDec
decay vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:72
Float_t p
momentum magnitude of Track
Definition: PIDTree.h:60
LogLikelihoods top
log likelihoods from TOP
Definition: PIDTree.h:77
LogLikelihoods cdcdedx
log likelihoods from CDC dE/dx
Definition: PIDTree.h:75
PIDTree()
Default constructor.
Definition: PIDTree.h:85
Float_t rhoDec
decay vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:71
LogLikelihoods ecl
log likelihoods from ECL
Definition: PIDTree.h:79
Int_t run
run number
Definition: PIDTree.h:58
Short_t primary
is a primary particle (from related MCParticle)
Definition: PIDTree.h:67
Int_t evt
event number
Definition: PIDTree.h:57
Float_t phi
azimuthal angle of Track
Definition: PIDTree.h:62
LogLikelihoods svddedx
log likelihoods from SVD dE/dx
Definition: PIDTree.h:76
Int_t motherPDG
PDG code of related mother MCParticle.
Definition: PIDTree.h:66
Float_t phiProd
production vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:70
Float_t cth
cosine of polar angle of Track
Definition: PIDTree.h:61
Float_t rhoProd
production vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:68
void clear()
Clear the structure: set elements to zero.
Definition: PIDTree.h:92
Float_t phiDec
decay vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:73
LogLikelihoods klm
log likelihoods from KLM
Definition: PIDTree.h:80
Int_t PDG
PDG code of related MCParticle.
Definition: PIDTree.h:65
LogLikelihoods arich
log likelihoods from ARICH
Definition: PIDTree.h:78
Float_t pValue
p-value of Track fit
Definition: PIDTree.h:63
Float_t zProd
production vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:69