Belle II Software development
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
13namespace Belle2 {
18 namespace PID {
19
24 Float_t le = 0;
25 Float_t lmu = 0;
26 Float_t lpi = 0;
27 Float_t lk = 0;
28 Float_t lp = 0;
29 Float_t ld = 0;
30 Short_t flag = 0;
31 Short_t seen = 0;
36 void clear()
37 {
38 le = 0;
39 lmu = 0;
40 lpi = 0;
41 lk = 0;
42 lp = 0;
43 ld = 0;
44 flag = 0;
45 seen = 0;
46 }
47 }; // struct LogLikelihoods
48
52 struct PIDTree {
53 Int_t evt;
54 Int_t run;
56 Float_t p;
57 Float_t cth;
58 Float_t phi;
59 Float_t pValue;
61 Int_t PDG;
62 Int_t motherPDG;
63 Short_t primary;
64 Float_t rhoProd;
65 Float_t zProd;
66 Float_t phiProd;
67 Float_t rhoDec;
68 Float_t zDec;
69 Float_t phiDec;
81 PIDTree(): evt(0), run(0), p(0), cth(0), phi(0), pValue(0), PDG(0), motherPDG(0),
82 primary(0), rhoProd(0), zProd(0), phiProd(0), rhoDec(0), zDec(0), phiDec(0)
83 {}
84
88 void clear()
89 {
90 evt = 0;
91 run = 0;
92 p = 0;
93 cth = 0;
94 phi = 0;
95 pValue = 0;
96 PDG = 0;
97 motherPDG = 0;
98 rhoProd = 0;
99 zProd = 0;
100 phiProd = 0;
101 rhoDec = 0;
102 zDec = 0;
103 phiDec = 0;
104 primary = 0;
105 cdcdedx.clear();
106 svddedx.clear();
107 top.clear();
108 arich.clear();
109 ecl.clear();
110 klm.clear();
111 }
112 }; // struct PIDTree
113 } // PID namespace
115} // Belle2 namespace
116
Abstract base class for different kinds of events.
Structure for the output of PID log likelihoods to a flat ntuple.
Definition: PIDTree.h:23
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:30
Float_t ld
log likelihood for deuteron
Definition: PIDTree.h:29
Short_t seen
is seen in this component (from related MCParticle)
Definition: PIDTree.h:31
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:36
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:52
Float_t zDec
decay vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:68
Float_t p
momentum magnitude of Track
Definition: PIDTree.h:56
LogLikelihoods top
log likelihoods from TOP
Definition: PIDTree.h:73
LogLikelihoods cdcdedx
log likelihoods from CDC dE/dx
Definition: PIDTree.h:71
PIDTree()
Default constructor.
Definition: PIDTree.h:81
Float_t rhoDec
decay vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:67
LogLikelihoods ecl
log likelihoods from ECL
Definition: PIDTree.h:75
Int_t run
run number
Definition: PIDTree.h:54
Short_t primary
is a primary particle (from related MCParticle)
Definition: PIDTree.h:63
Int_t evt
event number
Definition: PIDTree.h:53
Float_t phi
azimuthal angle of Track
Definition: PIDTree.h:58
LogLikelihoods svddedx
log likelihoods from SVD dE/dx
Definition: PIDTree.h:72
Int_t motherPDG
PDG code of related mother MCParticle.
Definition: PIDTree.h:62
Float_t phiProd
production vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:66
Float_t cth
cosine of polar angle of Track
Definition: PIDTree.h:57
Float_t rhoProd
production vertex (cylindrical coordinate r) of MCParticle
Definition: PIDTree.h:64
void clear()
Clear the structure: set elements to zero.
Definition: PIDTree.h:88
Float_t phiDec
decay vertex (cylindrical coordinate phi) of MCParticle
Definition: PIDTree.h:69
LogLikelihoods klm
log likelihoods from KLM
Definition: PIDTree.h:76
Int_t PDG
PDG code of related MCParticle.
Definition: PIDTree.h:61
LogLikelihoods arich
log likelihoods from ARICH
Definition: PIDTree.h:74
Float_t pValue
p-value of Track fit
Definition: PIDTree.h:59
Float_t zProd
production vertex (cylindrical coordinate z) of MCParticle
Definition: PIDTree.h:65