Belle II Software development
DQMHistDeltaHisto.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// File : DQMHistDeltaHisto.h
10// Description :
11//-
12
13#pragma once
14
15#include <framework/datastore/StoreObjPtr.h>
16#include <framework/dataobjects/EventMetaData.h>
17#include <dqm/core/DQMHistAnalysis.h>
18#include <TH1.h>
19#include <TCanvas.h>
20#include <time.h>
21#include <map>
22#include <queue>
23#include <vector>
24
25namespace Belle2 {
33
37 typedef struct {
39 TH1* histo;
44 } SSNODE;
45
46 // Public functions
47 public:
48
53
58
62 void initialize() override final;
63
67 void beginRun() override final;
68
72 void event() override final;
73
77 void endRun() override final;
78
82 void terminate() override final;
83
88 void clear_node(SSNODE* n);
89
90 // Data members
91 private:
93 std::vector<std::string> m_monitoredHistos;
95 std::map<std::string, std::queue<SSNODE*> > m_histosQueues;
100
101 };
103} // end namespace Belle2
104
The base class for the histogram analysis module.
Class for generating snapshots for histograms.
void initialize() override final
Initializer.
StoreObjPtr< EventMetaData > m_evtMetaDataPtr
The metadata for each event.
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is called for each event.
void clear_node(SSNODE *n)
Clear content of SSNODE.
void endRun() override final
This method is called if the current run ends.
int m_interval
Interval between checks in second.
std::map< std::string, std::queue< SSNODE * > > m_histosQueues
Map of histogram names to queues of monitoring objects.
void beginRun() override final
Called when entering a new run.
std::vector< std::string > m_monitoredHistos
Names of the histograms that should be monitored.
Store event, run, and experiment numbers.
Definition: EventMetaData.h:33
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.
STL namespace.
The struct for the snapshots.
TH1 * diff_histo
The histogram for snapshot.
TH1 * histo
The histogram for snapshot.
time_t time_modified
Whether the histogram is not updated for a long time.