 |
Belle II Software
release-05-02-19
|
11 #ifndef CSISTUDYMODULE_H
12 #define CSISTUDYMODULE_H
14 #include <framework/core/HistoModule.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/csi/dataobjects/CsiSimHit.h>
17 #include <beast/csi/dataobjects/CsiHit.h>
18 #include <beast/csi/dataobjects/CsiDigiHit.h>
43 class CsIStudyModule :
public HistoModule {
62 virtual void endRun()
override;
66 virtual void event()
override;
TH1F * h_CrystalSpectrum
Distribution of the energy of each simhit.
TH1F * h_Charge
Distribution of the integrated charge from the pulse processing algorithm.
TH1F * h_CrystalEdep
Energy deposited in each crystal.
TH1F * h_LightYieldCrystal
Number of photons hits in each crystal (to validate light yield..)
std::string m_waveformFilename
Path where to save the waveforms (root file)
TH1F * h_Weight
Event weight assigned by the generator.
virtual void event() override
Read each event, calculate doses and fill histograms.
virtual void beginRun() override
To do at the beginning of each runs.
bool * readDPPStatusBits(char packedbits)
Reads and unpacks the status bits of the digitizer Unpacks in the appropriate booleans.
virtual ~CsIStudyModule()
Empty destructor.
TH1F * h_Height
Max height of the peak signa(.
CsIStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void initialize() override
Initialization: building histograms.
TH1S * h_Waveform
Contains the digitized waveform (if enabled in the digitizer)
int m_nWFSamples
Number of samples in each of the waveforms (in the near future this should be imported from the digi ...
TH1C * h_Gate
Contains the integration gate (if waveforms are enabled in the digitizer)
TH1F * h_CrystalRadDoseSH
Yearly radiation dose deposited in each crystal (for hit-simhit check)
TH1F * h_NhitCrystal
Number of hits in each crystal (to get hit rate)
const double usInYr
Conversion between us to nominal year.
Abstract base class for different kinds of events.
StoreArray< CsiHit > m_hits
Array of the crystal hits (1 per event)
virtual void defineHisto() override
function to define histograms
virtual void terminate() override
Clean everything up.
double m_paramTemplate
Template of an input parameter.
const double Sampletime
Sample time in us.
const double GeVtoJ
Conversion between GeV to Joule.
virtual void endRun() override
To do at the end of each runs.
TH1F * h_CrystalRadDose
Yearly radiation dose deposited in each crystal.
TH1F * h_TrueEdep
Distribution of the true total deposited energy in the event.
Accessor to arrays stored in the data store.
StoreArray< CsiSimHit > m_simhits
Array of the simulated hits in the crystals (incl.
TFile * fWF
ROOT file to save waveforms.
StoreArray< CsiDigiHit > m_digihits
Array of the crystal digitized hits (1 per event per fired crystal)