Belle II Software  release-06-01-15
DQMHistAnalysisInputSrv.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 : DQMHistAnalysisInputSrv.h
10 // Description : Input module for DQM Histogram analysis
11 //-
12 
13 #pragma once
14 
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 
18 #include <daq/dqm/DqmMemFile.h>
19 #include <dqm/analysis/modules/DQMHistAnalysis.h>
20 //#include <THttpServer.h>
21 
22 #include <string>
23 
24 namespace Belle2 {
32 
33  // Public functions
34  public:
35 
40 
45 
49  virtual void initialize() override;
50 
54  virtual void beginRun() override;
55 
59  virtual void event() override;
60 
64  virtual void endRun() override;
65 
69  virtual void terminate() override;
70 
71  // Data members
72  private:
74  DqmMemFile* m_memory = nullptr;
76  std::string m_mempath;
78  int m_memsize;
81 
84 
86  unsigned int m_expno = 0;
88  unsigned int m_runno = 0;
90  unsigned int m_count = 0;
91  };
93 } // end namespace Belle2
94 
Class definition for the output module of Sequential ROOT I/O.
virtual void initialize() override
Initializer.
virtual void event() override
This method is called for each event.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
std::string m_mempath
Path to input hist memory.
virtual void beginRun() override
Called when entering a new run.
int m_memsize
Size of the input hist memory.
int m_interval
The refresh interval in ms.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
The metadata for each event.
The base class for the histogram analysis module.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
Abstract base class for different kinds of events.