Belle II Software  release-05-02-19
BeamabortStudyModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef BEAMABORTSTUDYMODULE_H
12 #define BEAMABORTSTUDYMODULE_H
13 
14 #include <framework/core/HistoModule.h>
15 
16 #include <TH1.h>
17 #include <TH2.h>
18 
19 namespace Belle2 {
24  namespace beamabort {
25 
31  class BeamabortStudyModule : public HistoModule {
32 
33  public:
34 
39 
41  virtual ~BeamabortStudyModule();
42 
44  virtual void initialize() override;
45 
47  virtual void beginRun() override;
48 
50  virtual void event() override;
51 
53  virtual void endRun() override;
54 
56  virtual void terminate() override;
57 
59  virtual void defineHisto() override;
60 
61 
62  private:
63 
65  virtual void getXMLData();
66 
68  //int nDIA = 0;
70  //std::vector<TVector3> PINCenter;
72  //int Event = 0;
74  double m_WorkFunction;
76  double m_FanoFactor;
77 
79  TH1F* h_dia_rate[10];
81  TH2F* h_dia_rs_rate[10];
83  TH1F* h_dia_dose[100];
85  TH1F* h_dia_doseWeight[100];
87  TH1F* h_dia_amp[100];
89  TH1F* h_dia_idose[100];
91  TH1F* h_dia_idoseWeight[100];
93  TH2F* h_dia_rs_idose[100];
97  TH1F* h_dia_iamp[100];
99  TH1F* h_dia_itime[100];
101  TH1F* h_dia_ivtime[100];
103  TH1F* h_dia_Amp[100];
105  TH1F* h_dia_edep[100];
107  TH1F* h_dia_time[100];
109  TH1F* h_dia_vtime[100];
110  };
111 
112  }
114 }
115 
116 #endif /* BEAMABORTSTUDYMODULE_H */
Belle2::beamabort::BeamabortStudyModule::h_dia_idose
TH1F * h_dia_idose[100]
histo dose
Definition: BeamabortStudyModule.h:97
Belle2::beamabort::BeamabortStudyModule::h_dia_rs_idose
TH2F * h_dia_rs_idose[100]
histo dose
Definition: BeamabortStudyModule.h:101
Belle2::beamabort::BeamabortStudyModule::h_dia_ivtime
TH1F * h_dia_ivtime[100]
histo time weighted by volt
Definition: BeamabortStudyModule.h:109
Belle2::beamabort::BeamabortStudyModule
Study module for Beamaborts (BEAST)
Definition: BeamabortStudyModule.h:39
Belle2::beamabort::BeamabortStudyModule::terminate
virtual void terminate() override
Function to terminate module.
Definition: BeamabortStudyModule.cc:223
Belle2::beamabort::BeamabortStudyModule::h_dia_time
TH1F * h_dia_time[100]
histo time
Definition: BeamabortStudyModule.h:115
Belle2::beamabort::BeamabortStudyModule::h_dia_rate
TH1F * h_dia_rate[10]
Rate.
Definition: BeamabortStudyModule.h:87
Belle2::beamabort::BeamabortStudyModule::h_dia_rs_idoseWeight
TH2F * h_dia_rs_idoseWeight[100]
histo dose
Definition: BeamabortStudyModule.h:103
Belle2::beamabort::BeamabortStudyModule::m_WorkFunction
double m_WorkFunction
number of detectors.
Definition: BeamabortStudyModule.h:82
Belle2::beamabort::BeamabortStudyModule::h_dia_Amp
TH1F * h_dia_Amp[100]
histo amp sum
Definition: BeamabortStudyModule.h:111
Belle2::beamabort::BeamabortStudyModule::endRun
virtual void endRun() override
Function to process end_run record.
Definition: BeamabortStudyModule.cc:217
Belle2::beamabort::BeamabortStudyModule::beginRun
virtual void beginRun() override
Function to process begin_run record.
Definition: BeamabortStudyModule.cc:113
Belle2::beamabort::BeamabortStudyModule::defineHisto
virtual void defineHisto() override
Defines the histograms.
Definition: BeamabortStudyModule.cc:57
Belle2::beamabort::BeamabortStudyModule::h_dia_dose
TH1F * h_dia_dose[100]
histo dose
Definition: BeamabortStudyModule.h:91
Belle2::beamabort::BeamabortStudyModule::h_dia_edep
TH1F * h_dia_edep[100]
histo edep sum
Definition: BeamabortStudyModule.h:113
Belle2::beamabort::BeamabortStudyModule::initialize
virtual void initialize() override
Function for dynamic initialization of module.
Definition: BeamabortStudyModule.cc:71
Belle2::beamabort::BeamabortStudyModule::event
virtual void event() override
Function to process event record.
Definition: BeamabortStudyModule.cc:117
Belle2::beamabort::BeamabortStudyModule::h_dia_rs_rate
TH2F * h_dia_rs_rate[10]
Rate.
Definition: BeamabortStudyModule.h:89
Belle2::beamabort::BeamabortStudyModule::h_dia_itime
TH1F * h_dia_itime[100]
histo time
Definition: BeamabortStudyModule.h:107
Belle2::beamabort::BeamabortStudyModule::h_dia_iamp
TH1F * h_dia_iamp[100]
histo amp
Definition: BeamabortStudyModule.h:105
Belle2::beamabort::BeamabortStudyModule::h_dia_doseWeight
TH1F * h_dia_doseWeight[100]
histo dose
Definition: BeamabortStudyModule.h:93
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::beamabort::BeamabortStudyModule::h_dia_idoseWeight
TH1F * h_dia_idoseWeight[100]
histo dose
Definition: BeamabortStudyModule.h:99
Belle2::beamabort::BeamabortStudyModule::h_dia_amp
TH1F * h_dia_amp[100]
histo amp
Definition: BeamabortStudyModule.h:95
Belle2::beamabort::BeamabortStudyModule::h_dia_vtime
TH1F * h_dia_vtime[100]
histo time weighted by volt
Definition: BeamabortStudyModule.h:117
Belle2::beamabort::BeamabortStudyModule::BeamabortStudyModule
BeamabortStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: BeamabortStudyModule.cc:43
Belle2::beamabort::BeamabortStudyModule::m_FanoFactor
double m_FanoFactor
Fano Factor.
Definition: BeamabortStudyModule.h:84
Belle2::beamabort::BeamabortStudyModule::getXMLData
virtual void getXMLData()
reads data from BEAMABORT.xml: tube location, drift data filename, sigma of impulse response function
Definition: BeamabortStudyModule.cc:199