Belle II Software  release-08-01-10
eclDQMInjection.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 #pragma once
10 
11 /* ECL headers. */
12 #include <ecl/dataobjects/ECLDigit.h>
13 #include <ecl/dataobjects/ECLTrig.h>
14 #include <ecl/dbobjects/ECLCrystalCalib.h>
15 #include <ecl/mapper/ECLChannelMapper.h>
16 
17 /* Basf2 headers. */
18 #include <framework/core/HistoModule.h>
19 #include <framework/database/DBObjPtr.h>
20 #include <framework/dataobjects/EventMetaData.h>
21 #include <framework/datastore/StoreArray.h>
22 #include <framework/datastore/StoreObjPtr.h>
23 #include <mdst/dataobjects/TRGSummary.h>
24 #include <rawdata/dataobjects/RawFTSW.h>
25 
26 /* ROOT headers. */
27 #include <TH1.h>
28 #include <TH2.h>
29 
30 /* C++ headers. */
31 #include <string>
32 
33 namespace Belle2 {
39  class ECLDsp;
40 
41  namespace ECL {
47 
48  public:
49 
52 
53  private:
55  std::string m_ECLDigitsName;
66 
75 
78 
80  int m_iEvent{ -1};
82  bool m_DPHYTTYP{0};
83 
84 
85 
87  std::vector<int> v_totalthrApsd = {};
88 
89 
90  TH1F* hHitsAfterInjLER{};
91  TH1F* hHitsAfterInjHER{};
105  TH2F* hOccAfterInjLER{};
106  TH2F* hOccAfterInjHER{};
108  TH2F* hInjkickTimeShift[2] = {};
113  std::vector<float> m_ped_peak_range = {};
120  std::vector<TH1F*> h_ped_peak = {};
121 
122  void initialize() override final;
124  void beginRun() override final;
126  void event() override final;
128  void defineHisto() override final;
130  };//end class declaration
131 
132 
133  } //end ECL namespace;
135 } // end namespace Belle2
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
This class provides access to ECL channel map that is either a) Loaded from the database (see ecl/dbo...
The ECL Occ after Injection DQM module.
TH1F * hHitsAfterInjHER
Histogram Hits after HER injection.
TH2F * hVetoAfterInjLER
Histogram Veto tuning w/ ECL hits after LER injection.
TH2F * hInjkickTimeShift[2]
Histograms to determine injkick signal time offset for LER/HER injections.
TH1F * hEHitsAfterInjLER
Histogram for Nr Entries (=Triggrs) for normalization after LER injection.
void initialize() override final
initialize function
TH1F * hEHitsAfterInjHER
Histogram for Nr Entries (=Triggrs) for normalization after HER injection.
TH1F * hHitsAfterInjLER
Histogram Hits after LER injection.
bool m_DPHYTTYP
Flag to select events triggered by delayed bhabha.
TH2F * hVetoAfterInjHER
Histogram Veto tuning w/ ECL hits after HER injection.
TH1F * hBurstsAfterInjLER
Histogram Bursts suppression after LER injection.
TH1F * hEBurstsAfterInjLER
Histogram Bursts suppression for normalization after LER injection.
ECLDQMInjectionModule()
Constructor defining the parameters.
StoreArray< ECLDsp > m_ECLDsps
Input array for ECL waveform data.
StoreObjPtr< TRGSummary > m_l1Trigger
StoreObjPtr TRGSummary
double m_revolutionTime
The beam revolution cycle time in .
StoreArray< RawFTSW > m_rawTTD
Input array for DAQ Status.
void defineHisto() override final
defineHisto function
int m_iEvent
Global event number.
void event() override final
event function
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
StoreArray< ECLDigit > m_storeHits
Input array for ECL Raw Hits.
std::string m_ECLDigitsName
The name of the StoreArray of ECLRawHits to be generated.
std::vector< float > m_ped_peak_range
Injection time range (in ms) for h_ped_peak histograms.
double m_ECLThresholdforVetoTuning
ECL threshold for injection veto tuning, ADC channels.
TH1F * hBurstsAfterInjHER
Histogram Bursts suppression after HER injection.
TH1F * hEBurstsAfterInjHER
Histogram Bursts suppression for normalization after HER injection.
void beginRun() override final
beginRun function
StoreArray< ECLTrig > m_ECLTrigs
Input array for ECL burst suppresions.
StoreObjPtr< EventMetaData > m_eventmetadata
StoreObjPtr EventMetaData.
std::vector< int > v_totalthrApsd
Vector to store psd wf amplitude threshold.
std::vector< TH1F * > h_ped_peak
Distribution of pedestal peak (peak in first 16 waveform samples) after HER/LER injection,...
DBObjPtr< ECLCrystalCalib > m_calibrationThrApsd
PSD waveform amplitude threshold.
TH2F * hOccAfterInjLER
Histogram Occupancy after LER injection.
TH2F * hOccAfterInjHER
Histogram Occupancy after HER injection.
ECLChannelMapper mapper
ECL channel mapper.
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
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.