Belle II Software development
CsiStudy_v2Module.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#ifndef CSISTUDY_V2MODULE_H
10#define CSISTUDY_V2MODULE_H
11
12#include <framework/core/HistoModule.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/csi/dataobjects/CsiSimHit.h>
15#include <beast/csi/dataobjects/CsiHit_v2.h>
16#include <generators/SAD/dataobjects/SADMetaHit.h>
17
18#include <TH1.h>
19#include <TH2.h>
20
21namespace Belle2 {
26 namespace csi {
27
34
35 public:
36
41
45 virtual ~CsiStudy_v2Module();
46
51 virtual void initialize() override;
52
57 virtual void beginRun() override;
58
62 virtual void event() override;
63
68 virtual void endRun() override;
69
74 virtual void terminate() override;
75
77 virtual void defineHisto() override;
78
79
80 private:
81
87 virtual void getXMLData();
89 double m_Ethres;
90
91 // These histrograms are currently
92 // not used in the code, but just declared.
93 // Commented out by the SW shifter, March 14th 2018
95 //TH1F* h_csi_rate[2];
97 //TH2F* h_csi_rs_rate[2];
99 //TH2F* h_csi_Evtof1[18];
101 //TH2F* h_csi_Evtof2[18];
103 //TH2F* h_csi_Evtof3[18];
105 //TH2F* h_csi_Evtof[18];
107 //TH1F* h_csi_edep[18];
109 //TH1F* h_csi_edep1[18];
111 //TH1F* h_csi_edep2[18];
113 //TH1F* h_csi_edep1Weight[18];
115 //TH1F* h_csi_edep2Weight[18];
117 //TH2F* h_csi_rs_edep1[18];
119 //TH2F* h_csi_rs_edep2[18];
121 //TH2F* h_csi_rs_edep1Weight[18];
123 //TH2F* h_csi_rs_edep2Weight[18];
125 //TH2F* h_csi_energyVrs1[18];
127 //TH2F* h_csi_energyVrs2[18];
129 //TH2F* h_csi_energyVrs3[18];
131 //TH2F* h_csi_energyVrs1W[18];
133 //TH2F* h_csi_energyVrs2W[18];
135 //TH2F* h_csi_energyVrs3W[18];
137 //TH1F* h_csi_energy1[18];
139 //TH1F* h_csi_energy2[18];
141 //TH1F* h_csi_energy3[18];
143 //TH1F* h_csi_energy1W[18];
145 //TH1F* h_csi_energy2W[18];
147 //TH1F* h_csi_energy3W[18];
148
150 double m_Thres_hitRate[18][200];
152 double m_Thres_sumE[18][200];
153
155 TH1F* h_csi_drate[153];
157 TH2F* h_csi_rs_drate[153];
159 TH1F* h_csi_dedep[18][153];
161 TH2F* h_csi_rs_dedep[18][153];
163 TH1F* h_csi_denergy[18][153];
165 TH2F* h_csi_rs_denergy[18][153];
166
167 };
168
169 }
171}
172
173#endif /* CSISTUDY_V2MODULE_H */
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Study module for Csis (BEAST)
TH1F * h_csi_dedep[18][153]
Energy.
CsiStudy_v2Module()
Constructor: Sets the description, the properties and the parameters of the module.
double m_Thres_hitRate[18][200]
Rate.
StoreArray< CsiSimHit > SimHits
Array of sim hits.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
TH1F * h_csi_denergy[18][153]
Energy.
virtual void getXMLData()
reads data from CSI.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
virtual ~CsiStudy_v2Module()
Destructor.
StoreArray< CsiHit_v2 > Hits
Array of digi hits.
TH2F * h_csi_rs_denergy[18][153]
Energy.
virtual void beginRun() override
Called when entering a new run.
StoreArray< SADMetaHit > MetaHits
Array of SAD particle.
double m_Thres_sumE[18][200]
Energy threshold.
double m_Ethres
Energy threshold.
TH2F * h_csi_rs_dedep[18][153]
Energy.
virtual void defineHisto() override
Defines the histograms.
Abstract base class for different kinds of events.