Belle II Software development
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 <Math/Vector3D.h>
16#include <TH1.h>
17#include <TH2.h>
18
19namespace Belle2 {
24 namespace microtpc {
25
31 class TPCStudyModule : public HistoModule {
32
33 public:
34
39
43 virtual ~TPCStudyModule();
44
49 virtual void initialize() override;
50
54 virtual void event() override;
55
60 virtual void endRun() override;
61
63 virtual void defineHisto() override;
64
65
66 private:
67
69 virtual void getXMLData();
70
78 double m_ChipRowY;
80 double m_z_DG;
82 int nTPC = 0;
84 std::vector<ROOT::Math::XYZVector> TPCCenter;
86 //int Event = 0;
88 TH1F* h_tpc_kin[100];
90 TH2F* h_tpc_xy[100];
91
92 };
93
94 }
96}
97
98#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.
int m_ChipRowNb
Chip row number.
std::vector< ROOT::Math::XYZVector > TPCCenter
TPC coordinate.
TH1F * h_tpc_kin[100]
Event counter.
TH2F * h_tpc_xy[100]
Track XY.
int m_ChipColumnNb
Chip column number.
virtual void defineHisto() override
Defines the histograms.
Abstract base class for different kinds of events.