Belle II Software  release-06-00-14
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 //FRAMEWORK
12 #include <framework/core/HistoModule.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/database/DBObjPtr.h>
16 #include <framework/dataobjects/EventMetaData.h>
17 //ECL
18 #include <ecl/dataobjects/ECLDigit.h>
19 #include <ecl/dataobjects/ECLTrig.h>
20 #include <ecl/utility/ECLChannelMapper.h>
21 #include <ecl/dbobjects/ECLCrystalCalib.h>
22 //OTHER
23 #include <mdst/dataobjects/TRGSummary.h>
24 #include <rawdata/dataobjects/RawFTSW.h>
25 
26 #include <TH1.h>
27 #include <TH2.h>
28 #include <string>
29 
30 namespace Belle2 {
36  class ECLDsp;
37 
38  namespace ECL {
44 
45  public:
46 
49 
50  private:
52  std::string m_ECLDigitsName;
63 
72 
75 
77  int m_iEvent{ -1};
79  bool m_DPHYTTYP{0};
80 
81 
82 
84  std::vector<int> v_totalthrApsd = {};
85 
86 
87  TH1F* hHitsAfterInjLER{};
88  TH1F* hHitsAfterInjHER{};
99  TH2F* hVetoAfterInjLER{};
102  TH2F* hOccAfterInjLER{};
103  TH2F* hOccAfterInjHER{};
108  std::vector<float> m_ped_peak_range = {};
115  std::vector<TH1F*> h_ped_peak = {};
116 
117  void initialize() override final;
119  void beginRun() override final;
121  void event() override final;
123  void defineHisto() override final;
125  };//end class declaration
126 
127 
128  } //end ECL namespace;
130 } // 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.
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 #mus.
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:95
Abstract base class for different kinds of events.