Belle II Software development
EventInfoPrinterModule.h
1#pragma once
2/**************************************************************************
3 * basf2 (Belle II Analysis Software Framework) *
4 * Author: The Belle II Collaboration *
5 * *
6 * See git log for contributors and copyright holders. *
7 * This file is licensed under LGPL-3.0, see LICENSE.md. *
8 **************************************************************************/
9
10#include <framework/core/Module.h>
11
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/dataobjects/EventMetaData.h>
14
15namespace Belle2 {
27 public:
28
35
37 virtual ~EventInfoPrinterModule() override;
38
40 virtual void initialize() override;
41
48 virtual void beginRun() override;
49
51 virtual void event() override;
52
59 virtual void endRun() override;
60
61 private:
62 std::string formatDateTime(unsigned long long int);
63
66 };
67
69}
std::string formatDateTime(unsigned long long int)
Format date & time for output.
bool m_printTime
Print time in addition to exp/run/evt numbers.
virtual void initialize() override
initialization.
virtual ~EventInfoPrinterModule() override
Destructor of the module.
virtual void event() override
Prints the full information about the event, run and experiment number.
EventInfoPrinterModule()
Constructor of the module.
virtual void endRun() override
Prints a footer for each run which ended.
StoreObjPtr< EventMetaData > m_eventMetaData
EventMetaData.
virtual void beginRun() override
Prints a header for each new run.
Module()
Constructor.
Definition Module.cc:30
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Abstract base class for different kinds of events.