Belle II Software development
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
18namespace Belle2 {
25 class DelayDQMModule : public HistoModule {
26
27 public:
28
33
37 void initialize() override final;
38
42 void beginRun() override final;
43
47 void event() override final;
48
52 void defineHisto() override final;
53
54 private:
56 std::string m_title;
57 bool m_useMeta;
61
64
65 TH1D* m_DelayS = nullptr;
66 TH1D* m_DelayMs = nullptr;
67 TH1D* m_DelayLog = nullptr;
69 void BinLogX(TH1* h);
70 };
71
73}
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.