Belle II Software  release-08-01-10
NtupleStructure.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 <Rtypes.h>
12 
13 namespace Belle2 {
18  namespace TOP {
19 
23  struct Likelihoods {
24  Float_t e;
25  Float_t mu;
26  Float_t pi;
27  Float_t K;
28  Float_t p;
29  Float_t d;
34  Likelihoods(): e(0), mu(0), pi(0), K(0), p(0), d(0)
35  {}
36 
40  void clear()
41  {
42  e = mu = pi = K = p = d = 0;
43  }
44  };
45 
46 
50  struct TrackHit {
51  Int_t moduleID;
52  Int_t PDG;
53  Float_t x;
54  Float_t y;
55  Float_t z;
56  Float_t p;
57  Float_t theta;
58  Float_t phi;
59  Float_t time;
64  TrackHit(): moduleID(0), PDG(0), x(0), y(0), z(0), p(0), theta(0), phi(0), time(0)
65  {}
66 
70  void clear()
71  {
72  moduleID = PDG = 0;
73  x = y = z = p = theta = phi = time = 0;
74  }
75 
76  };
77 
78 
82  struct TOPTree {
83  Int_t evt;
84  Int_t run;
86  Float_t p;
87  Float_t cth;
88  Float_t phi;
89  Float_t pValue;
91  Int_t PDG;
92  Int_t motherPDG;
93  Short_t primary;
94  Short_t seen;
95  Float_t rhoProd;
96  Float_t zProd;
97  Float_t phiProd;
98  Float_t rhoDec;
99  Float_t zDec;
100  Float_t phiDec;
102  Int_t numPhot;
103  Float_t numBkg;
113  TOPTree(): evt(0), run(0), p(0), cth(0), phi(0), pValue(0), PDG(0), motherPDG(0),
114  primary(0), seen(0), rhoProd(0), zProd(0), phiProd(0), rhoDec(0), zDec(0),
115  phiDec(0), numPhot(0), numBkg(0)
116  {}
117 
121  void clear()
122  {
123  evt = 0;
124  run = 0;
125 
126  p = 0;
127  cth = 0;
128  phi = 0;
129  pValue = 0;
130 
131  PDG = 0;
132  motherPDG = 0;
133  primary = 0;
134  seen = 0;
135  rhoProd = 0;
136  zProd = 0;
137  phiProd = 0;
138  rhoDec = 0;
139  zDec = 0;
140  phiDec = 0;
141 
142  numPhot = 0;
143  numBkg = 0;
144  phot.clear();
145  logL.clear();
146 
147  extHit.clear();
148  barHit.clear();
149  }
150  };
151 
152  } // TOP namestace
154 } // Belle2 namespace
155 
156 
Abstract base class for different kinds of events.
Structure for TOPLikelihood members.
Float_t e
for electron
Float_t d
for deuteron
void clear()
Clear the structure: set elements to zero.
Likelihoods()
Default constructor.
Structure of a flat ntuple.
Float_t zDec
decay vertex (cylindrical coordinate z) of MCParticle
Float_t p
momentum magnitude of Track
Likelihoods logL
log likelihoods
Float_t rhoDec
decay vertex (cylindrical coordinate r) of MCParticle
Int_t numPhot
number of detected photons
Int_t run
run number
TOPTree()
Default constructor.
Short_t primary
is a primary particle (from related MCParticle)
Int_t evt
event number
Float_t phi
azimuthal angle of Track
Float_t numBkg
number of expected background photons
Short_t seen
is seen in TOP (from related MCParticle)
TrackHit extHit
extrapolated Track hit (in local module frame)
Int_t motherPDG
PDG code of related mother MCParticle.
Float_t phiProd
production vertex (cylindrical coordinate phi) of MCParticle
Float_t cth
cosine of polar angle of Track
Float_t rhoProd
production vertex (cylindrical coordinate r) of MCParticle
void clear()
Clear the structure: set elements to zero.
Float_t phiDec
decay vertex (cylindrical coordinate phi) of MCParticle
Int_t PDG
PDG code of related MCParticle.
Float_t pValue
p-value of Track fit
Likelihoods phot
number of expected photons (signal + bkg)
Float_t zProd
production vertex (cylindrical coordinate z) of MCParticle
TrackHit barHit
related MC particle hit (in local module frame)
Structure for track parameters at TOP.
Float_t p
momentum magnitude
Float_t z
impact point, z component
Int_t moduleID
module ID
Float_t theta
momentum polar angle
Float_t time
impact time
Float_t phi
momentum azimuthal angle
Float_t x
impact point, x component
void clear()
Clear the structure: set elements to zero.
TrackHit()
Default constructor.
Float_t y
impact point, y component