Belle II Software  release-08-01-10
TPCStudyModule.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 TPCSTUDYMODULE_H
10 #define TPCSTUDYMODULE_H
11 
12 #include <framework/core/HistoModule.h>
13 #include <vector>
14 
15 #include <TVector3.h>
16 #include <TH1.h>
17 #include <TH2.h>
18 
19 namespace Belle2 {
24  namespace microtpc {
25 
34  class TPCStudyModule : public HistoModule {
35 
36  public:
37 
42 
46  virtual ~TPCStudyModule();
47 
52  virtual void initialize() override;
53 
58  virtual void beginRun() override;
59 
63  virtual void event() override;
64 
69  virtual void endRun() override;
70 
75  virtual void terminate() override;
76 
78  virtual void defineHisto() override;
79 
80 
81  private:
82 
84  virtual void getXMLData();
85 
91  double m_ChipColumnX;
93  double m_ChipRowY;
95  double m_z_DG;
97  int nTPC = 0;
99  std::vector<TVector3> TPCCenter;
101  //int Event = 0;
103  TH1F* h_tpc_kin[100];
105  TH2F* h_tpc_xy[100];
106 
107  };
108 
109  }
111 }
112 
113 #endif /* TPCSTUDYMODULE_H */
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Study module for TPCs (BEAST)
double m_ChipRowY
Chip row y dimension.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
int nTPC
number of detectors.
virtual void endRun() override
End-of-run action.
TPCStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
double m_ChipColumnX
Chip column x dimension.
virtual void getXMLData()
reads data from MICROTPC.xml: tube location, drift data filename, sigma of impulse response function
virtual ~TPCStudyModule()
Destructor.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
int m_ChipRowNb
Chip row number.
TH1F * h_tpc_kin[100]
Event counter.
int m_ChipColumnNb
Chip column number.
virtual void defineHisto() override
Defines the histograms.
std::vector< TVector3 > TPCCenter
TPC coordinate.
Abstract base class for different kinds of events.