Belle II Software
development
KlongValidationModule.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 <framework/core/Module.h>
12
#include <framework/datastore/StoreArray.h>
13
14
#include <mdst/dataobjects/MCParticle.h>
15
#include <mdst/dataobjects/KLMCluster.h>
16
17
#include <TFile.h>
18
#include <string>
19
#include <TH1F.h>
20
#include <TGraph.h>
21
22
namespace
Belle2
{
29
class
KlongValidationModule
:
public
Module
{
30
31
public
:
32
34
KlongValidationModule
();
35
37
virtual
~KlongValidationModule
();
38
40
virtual
void
initialize
()
override
;
41
43
virtual
void
beginRun
()
override
;
44
46
virtual
void
event
()
override
;
47
49
virtual
void
endRun
()
override
;
50
52
virtual
void
terminate
()
override
;
53
54
protected
:
55
56
private
:
57
59
double
m_momentum
{ -1.};
61
double
m_theta
{ -1.};
63
double
m_phi
{ -1.};
65
double
m_isKl
{ -1.};
67
bool
m_passed
{
false
};
69
bool
m_faked
{
false
};
71
bool
m_reconstructedAsKl
{
false
};
73
float
m_KlIdCut
{ -1};
74
76
bool
m_isBeamBKG
{
false
};
77
// use TH1F histogramms to calculate efficiency
79
TH1F*
m_effPhi
{
nullptr
};
81
TH1F*
m_effTheta
{
nullptr
};
83
TH1F*
m_effMom
{
nullptr
};
85
TH1F*
m_fakePhi
{
nullptr
};
87
TH1F*
m_fakeTheta
{
nullptr
};
89
TH1F*
m_fakeMom
{
nullptr
};
91
TH1F*
m_Phi_Pass
{
nullptr
};
93
TH1F*
m_Theta_Pass
{
nullptr
};
95
TH1F*
m_Mom_Pass
{
nullptr
};
96
98
TH1F*
m_Phi_all
{
nullptr
};
100
TH1F*
m_Theta_all
{
nullptr
};
102
TH1F*
m_Mom_all
{
nullptr
};
104
TH1F*
m_Mom_all_plot
{
nullptr
};
106
TH1F*
m_fakePhi_Pass
{
nullptr
};
108
TH1F*
m_fakeTheta_Pass
{
nullptr
};
110
TH1F*
m_fakeMom_Pass
{
nullptr
};
112
TH1F*
m_time
{
nullptr
};
114
TH1F*
m_trackSep
{
nullptr
};
116
TH1F*
m_nLayer
{
nullptr
};
118
TH1F*
m_innermostLayer
{
nullptr
};
120
TH1F*
m_trackFlag
{
nullptr
};
122
TH1F*
m_ECLFlag
{
nullptr
};
124
TH1F*
m_bkgPhi
{
nullptr
};
126
TH1F*
m_bkgTheta
{
nullptr
};
128
TH1F*
m_bkgMom
{
nullptr
};
130
TH1F*
m_klidFake
{
nullptr
};
132
TH1F*
m_klidTrue
{
nullptr
};
134
TH1F*
m_klidAll
{
nullptr
};
136
TGraph*
m_ROC
{
nullptr
};
138
TGraph*
m_backRej
{
nullptr
};
139
140
142
StoreArray<KLMCluster>
m_klmClusters
;
144
StoreArray<MCParticle>
m_mcParticles
;
145
147
const
std::vector<double>
m_xbins
=
148
{0, 0.001, 0.01, 0.1, 0.15, 0.175, 0.2, 0.3, 0.4, 0.5, 1};
149
151
std::string
m_outputName
=
"K_long_full_validation_sample.root"
;
152
154
std::string
m_contact
=
""
;
155
157
TFile*
m_f
=
nullptr
;
158
159
};
// end class
160
162
}
// end namespace Belle2
163
Belle2::KlongValidationModule
Module used by the validation server to generate root files for the validation.
Definition:
KlongValidationModule.h:29
Belle2::KlongValidationModule::m_bkgTheta
TH1F * m_bkgTheta
beambkg
Definition:
KlongValidationModule.h:126
Belle2::KlongValidationModule::m_Mom_Pass
TH1F * m_Mom_Pass
momentum efficiency
Definition:
KlongValidationModule.h:95
Belle2::KlongValidationModule::m_effTheta
TH1F * m_effTheta
efficiency in angle to z
Definition:
KlongValidationModule.h:81
Belle2::KlongValidationModule::m_nLayer
TH1F * m_nLayer
layer count plot
Definition:
KlongValidationModule.h:116
Belle2::KlongValidationModule::m_passed
bool m_passed
did cluster pass selection of algorythm?
Definition:
KlongValidationModule.h:67
Belle2::KlongValidationModule::m_trackSep
TH1F * m_trackSep
track separation distance plot
Definition:
KlongValidationModule.h:114
Belle2::KlongValidationModule::m_Mom_all_plot
TH1F * m_Mom_all_plot
momentum efficiency
Definition:
KlongValidationModule.h:104
Belle2::KlongValidationModule::m_Theta_Pass
TH1F * m_Theta_Pass
efficiency in angle to z
Definition:
KlongValidationModule.h:93
Belle2::KlongValidationModule::m_fakeMom_Pass
TH1F * m_fakeMom_Pass
fake momentum plot
Definition:
KlongValidationModule.h:110
Belle2::KlongValidationModule::m_f
TFile * m_f
root tree etc.
Definition:
KlongValidationModule.h:157
Belle2::KlongValidationModule::m_klidAll
TH1F * m_klidAll
used for roc
Definition:
KlongValidationModule.h:134
Belle2::KlongValidationModule::m_klmClusters
StoreArray< KLMCluster > m_klmClusters
storearrays
Definition:
KlongValidationModule.h:142
Belle2::KlongValidationModule::m_contact
std::string m_contact
contact email address
Definition:
KlongValidationModule.h:154
Belle2::KlongValidationModule::initialize
virtual void initialize() override
initialize
Definition:
KlongValidationModule.cc:46
Belle2::KlongValidationModule::m_backRej
TGraph * m_backRej
background rejection
Definition:
KlongValidationModule.h:138
Belle2::KlongValidationModule::m_fakePhi_Pass
TH1F * m_fakePhi_Pass
fake phi, angle in x-y
Definition:
KlongValidationModule.h:106
Belle2::KlongValidationModule::event
virtual void event() override
process event
Definition:
KlongValidationModule.cc:103
Belle2::KlongValidationModule::m_xbins
const std::vector< double > m_xbins
bins used for the ROC plots
Definition:
KlongValidationModule.h:147
Belle2::KlongValidationModule::m_isKl
double m_isKl
K0L truth
Definition:
KlongValidationModule.h:65
Belle2::KlongValidationModule::endRun
virtual void endRun() override
end run
Definition:
KlongValidationModule.cc:99
Belle2::KlongValidationModule::terminate
virtual void terminate() override
terminate
Definition:
KlongValidationModule.cc:233
Belle2::KlongValidationModule::m_fakeTheta_Pass
TH1F * m_fakeTheta_Pass
fake theta, angle to z
Definition:
KlongValidationModule.h:108
Belle2::KlongValidationModule::m_klidFake
TH1F * m_klidFake
used for roc
Definition:
KlongValidationModule.h:130
Belle2::KlongValidationModule::m_Phi_Pass
TH1F * m_Phi_Pass
efficiency in x-y plane
Definition:
KlongValidationModule.h:91
Belle2::KlongValidationModule::m_phi
double m_phi
angle in x-y
Definition:
KlongValidationModule.h:63
Belle2::KlongValidationModule::m_theta
double m_theta
angle in z-plane
Definition:
KlongValidationModule.h:61
Belle2::KlongValidationModule::m_momentum
double m_momentum
momentum
Definition:
KlongValidationModule.h:59
Belle2::KlongValidationModule::m_Phi_all
TH1F * m_Phi_all
efficiency in x-y plane
Definition:
KlongValidationModule.h:98
Belle2::KlongValidationModule::m_trackFlag
TH1F * m_trackFlag
track flag
Definition:
KlongValidationModule.h:120
Belle2::KlongValidationModule::m_bkgMom
TH1F * m_bkgMom
beambkg
Definition:
KlongValidationModule.h:128
Belle2::KlongValidationModule::beginRun
virtual void beginRun() override
beginn run
Definition:
KlongValidationModule.cc:95
Belle2::KlongValidationModule::m_ROC
TGraph * m_ROC
roc
Definition:
KlongValidationModule.h:136
Belle2::KlongValidationModule::m_klidTrue
TH1F * m_klidTrue
used for roc
Definition:
KlongValidationModule.h:132
Belle2::KlongValidationModule::m_outputName
std::string m_outputName
output file name
Definition:
KlongValidationModule.h:151
Belle2::KlongValidationModule::KlongValidationModule
KlongValidationModule()
Constructor
Definition:
KlongValidationModule.cc:30
Belle2::KlongValidationModule::m_time
TH1F * m_time
cluster timing plot
Definition:
KlongValidationModule.h:112
Belle2::KlongValidationModule::m_KlIdCut
float m_KlIdCut
of > 0 use Klid else use trackflag as reconstruction criterion
Definition:
KlongValidationModule.h:73
Belle2::KlongValidationModule::m_ECLFlag
TH1F * m_ECLFlag
ECL flag.
Definition:
KlongValidationModule.h:122
Belle2::KlongValidationModule::~KlongValidationModule
virtual ~KlongValidationModule()
Destructor
Definition:
KlongValidationModule.cc:42
Belle2::KlongValidationModule::m_isBeamBKG
bool m_isBeamBKG
is beam bkg
Definition:
KlongValidationModule.h:76
Belle2::KlongValidationModule::m_mcParticles
StoreArray< MCParticle > m_mcParticles
storearrays
Definition:
KlongValidationModule.h:144
Belle2::KlongValidationModule::m_innermostLayer
TH1F * m_innermostLayer
innermostlayer
Definition:
KlongValidationModule.h:118
Belle2::KlongValidationModule::m_faked
bool m_faked
cluster wrongly reconstructed as K0L?
Definition:
KlongValidationModule.h:69
Belle2::KlongValidationModule::m_reconstructedAsKl
bool m_reconstructedAsKl
cluster reconstructed as K0L?
Definition:
KlongValidationModule.h:71
Belle2::KlongValidationModule::m_fakeTheta
TH1F * m_fakeTheta
fake theta, angle to z
Definition:
KlongValidationModule.h:87
Belle2::KlongValidationModule::m_effMom
TH1F * m_effMom
momentum efficiency
Definition:
KlongValidationModule.h:83
Belle2::KlongValidationModule::m_effPhi
TH1F * m_effPhi
efficiency in x-y plane
Definition:
KlongValidationModule.h:79
Belle2::KlongValidationModule::m_Mom_all
TH1F * m_Mom_all
momentum efficiency
Definition:
KlongValidationModule.h:102
Belle2::KlongValidationModule::m_bkgPhi
TH1F * m_bkgPhi
beambkg
Definition:
KlongValidationModule.h:124
Belle2::KlongValidationModule::m_fakeMom
TH1F * m_fakeMom
fake momentum plot
Definition:
KlongValidationModule.h:89
Belle2::KlongValidationModule::m_fakePhi
TH1F * m_fakePhi
fake phi, angle in x-y
Definition:
KlongValidationModule.h:85
Belle2::KlongValidationModule::m_Theta_all
TH1F * m_Theta_all
efficiency in angle to z
Definition:
KlongValidationModule.h:100
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition:
StoreArray.h:113
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
reconstruction
modules
KlId
KlongValidation
include
KlongValidationModule.h
Generated on Fri Nov 8 2024 02:41:17 for Belle II Software by
1.9.6