Belle II Software  release-08-00-10
eclDQMOutOfTimeDigits.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 /* Basf2 headers. */
12 #include <framework/core/HistoModule.h>
13 #include <framework/core/ModuleParam.templateDetails.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 
16 class TH1F;
17 
18 namespace Belle2 {
24  class TRGSummary;
25 
37  public:
38 
41 
44 
46  virtual void initialize() override;
48  virtual void beginRun() override;
50  virtual void event() override;
52  virtual void endRun() override;
54  virtual void terminate() override;
55 
57  virtual void defineHisto() override;
58 
59  private:
60 
65  bool isRandomTrigger();
66 
68  std::string getEventType();
69 
79  std::map<std::string, TH1F*> h_out_of_time{};
80 
83 
86  };
88 }; // end Belle2 namespace
This module produces DQM histograms to monitor the distribution of out-of-time ECLCalDigits.
virtual void initialize() override
Initialize the module.
StoreObjPtr< TRGSummary > m_l1Trigger
StoreObjPtr TRGSummary
virtual void event() override
Event processor.
virtual void endRun() override
Call when a run ends.
ECLDQMOutOfTimeDigitsModule()
< derived from HistoModule class.
virtual void terminate() override
Terminate.
virtual void beginRun() override
Call when a run begins.
std::string m_histogramDirectoryName
Histogram directory in ROOT file.
std::string getEventType()
Return type of the current event.
std::map< std::string, TH1F * > h_out_of_time
Single-value histograms to hold the average value for out-of-time ECLCalDigits.
virtual void defineHisto() override
Function to define histograms.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.