Belle II Software  release-08-01-10
DelayDQMModule.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 #include <framework/core/HistoModule.h>
12 #include <framework/dataobjects/EventMetaData.h>
13 #include <rawdata/dataobjects/RawFTSW.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/datastore/StoreArray.h>
16 #include "TH1D.h"
17 
18 namespace Belle2 {
28  class DelayDQMModule : public HistoModule {
29 
30  public:
31 
36 
40  void initialize() override final;
41 
45  void beginRun() override final;
46 
50  void event() override final;
51 
55  void defineHisto() override final;
56 
57  private:
59  std::string m_title;
60  bool m_useMeta;
64 
67 
68  TH1D* m_DelayS = nullptr;
69  TH1D* m_DelayMs = nullptr;
70  TH1D* m_DelayLog = nullptr;
72  void BinLogX(TH1* h);
73  };
74 
76 }
Processing Delay DQM Module.
void initialize() override final
Initializer.
void defineHisto() override final
Definition of the histograms.
StoreArray< RawFTSW > m_rawFTSW
Input for FTSW.
StoreObjPtr< EventMetaData > m_eventMetaData
Input ptr for EventMetaData.
bool m_useMeta
use time from Meta or FTSW
void event() override final
This method is called for each event.
void BinLogX(TH1 *h)
helper function to replace X axis by a log scaled axis
std::string m_title
Prefix for title (NOT histo name)
TH1D * m_DelayS
Delay between trigger and end of processing in s.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH1D * m_DelayLog
Delay between trigger and end of processing log scale.
TH1D * m_DelayMs
Delay between trigger and end of processing in ms.
void beginRun() override final
Called when entering a new run.
DelayDQMModule()
Constructor.
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.