Belle II Software  release-06-00-14
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 
34 
35  private:
36 
38  void initialize() override final;
39  void beginRun() override final;
40  void event() override final;
41 
42  void defineHisto() override final;
43 
44  private:
46  std::string m_title;
47  bool m_useMeta;
51 
54 
55  TH1D* m_DelayS = nullptr;
56  TH1D* m_DelayMs = nullptr;
57  TH1D* m_DelayLog = nullptr;
59  void BinLogX(TH1* h);
60  };
61 
63 }
Processing Delay DQM Module.
void initialize() override final
Module functions.
void defineHisto() override final
Function to define 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
Function to process event record.
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
Function to process begin_run record.
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:95
Abstract base class for different kinds of events.