Belle II Software  release-08-01-10
BKLMAnaModule.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 /* KLM headers. */
12 #include <klm/dataobjects/KLMHit2d.h>
13 
14 /* Basf2 headers. */
15 #include <framework/core/Module.h>
16 #include <framework/datastore/StoreArray.h>
17 #include <mdst/dataobjects/Track.h>
18 #include <tracking/dataobjects/ExtHit.h>
19 
20 /* ROOT headers. */
21 #include <TFile.h>
22 #include <TH1F.h>
23 #include <TH2F.h>
24 #include <TTree.h>
25 
26 namespace Belle2 {
34  class BKLMAnaModule : public Module {
35 
36  public:
37 
39  BKLMAnaModule();
40 
43 
45  void initialize() override;
46 
48  void beginRun() override;
49 
51  void event() override;
52 
54  void endRun() override;
55 
57  void terminate() override;
58 
59  protected:
60 
62  TFile* m_file;
63 
65  std::string m_filename;
66 
68  TTree* m_extTree;
69 
70 
71  private:
72 
74  int m_run;
75 
77  int m_nExtHit;
78 
80  float m_extx[200];
81 
83  float m_exty[200];
84 
86  float m_extz[200];
87 
88 
90  //bklm::GeometryPar* m_GeoPar;
91 
93  TH1F* m_hdistance;
94 
96  TH1F* m_totalMom;
97 
99  TH1F* m_passMom;
100 
102  TH1F* m_effiMom;
103 
105  TH2F* m_totalThephi[15];
106 
108  TH2F* m_passThephi[15];
109 
111  TH2F* m_effiThephi[15];
112 
114  TH2F* m_totalTrkThephi[15];
115 
117  TH2F* m_passTrkThephi[15];
118 
120  TH2F* m_effiTrkThephi[15];
121 
123  TH2F* m_totalYX;
124 
126  TH2F* m_passYX;
127 
129  TH2F* m_effiYX;
130 
132  TH2F* m_totalYZ;
133 
135  TH2F* m_passYZ;
136 
138  TH2F* m_effiYZ;
139 
146 
147  };
148 
150 } // end of namespace Belle2
A class defining a module that perform efficiencies studies on bklm.
Definition: BKLMAnaModule.h:34
TH2F * m_passYZ
Y Z coordinate of extHit with matched bklmHit2d.
TH2F * m_effiYX
associated efficiencies vs glaoble y, x coordinate
float m_exty[200]
keep the global position of validated ExtHit in BKLM
Definition: BKLMAnaModule.h:83
void initialize() override
Initialize at start of job.
float m_extx[200]
keep the global position of validated ExtHit in BKLM
Definition: BKLMAnaModule.h:80
void event() override
This method is called for each event.
void endRun() override
Do any needed actions at the end of a simulation run.
void terminate() override
Terminate at the end of job.
StoreArray< ExtHit > extHits
extHits StoreArray
BKLMAnaModule()
Constructor.
TH2F * m_passThephi[15]
histogram of entries with matched bklmHit2d of extHit vs.theta phi angle of ExtHit
~BKLMAnaModule()
Destructor.
TH2F * m_totalTrkThephi[15]
histogram of total entries of extHit associating to ExtHit of each layer vs. theta phi angle of the t...
TH2F * m_totalYX
Y X coordinate of total entries of extHit that in klm region.
void beginRun() override
Do any needed actions at the start of a simulation run.
TH1F * m_hdistance
bklm GeometryPar
Definition: BKLMAnaModule.h:93
TH1F * m_totalMom
histogram of total entries of extHit vs. track momentum
Definition: BKLMAnaModule.h:96
StoreArray< KLMHit2d > hits2D
hits2D StoreArray
TFile * m_file
output TFile
Definition: BKLMAnaModule.h:62
int m_nExtHit
number of validated ExtHit in BKLM in one event
Definition: BKLMAnaModule.h:77
float m_extz[200]
keep the global position of validated ExtHit in BKLM
Definition: BKLMAnaModule.h:86
TH2F * m_totalThephi[15]
histogram of total entries of extHit associating to ExtHit of each layer vs.theta phi angle of ExtHit
TH2F * m_effiThephi[15]
efficiency associating to ExtHit of each layer vs.theta phi angle of ExtHit
std::string m_filename
name of the output TFile
Definition: BKLMAnaModule.h:65
TH2F * m_effiYZ
associated efficiencies vs glaoble y, z coordinate
TH1F * m_effiMom
efficiency associating to ExtHit vs. track momentum
StoreArray< Track > tracks
tracks StoreArray
TH2F * m_totalYZ
Y Z coordinate of total entries of extHit that in klm region.
TH2F * m_passTrkThephi[15]
histogram of extHit with matched bklmHit2d of each layer vs. theta phi angle of the track
TH2F * m_effiTrkThephi[15]
efficiency associating to ExtHit of each layer vs. theta phi angle of the track
TH2F * m_passYX
Y X coordinate of extHit with matched bklmHit2d.
int m_run
run number
Definition: BKLMAnaModule.h:74
TTree * m_extTree
TTree that holds several variable of interest.
Definition: BKLMAnaModule.h:68
TH1F * m_passMom
histogram of entries with matched bklmHit2d of extHit vs. track momentum
Definition: BKLMAnaModule.h:99
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.