Belle II Software development
PrintCollectionsModule.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/Module.h>
12#include <framework/datastore/DataStore.h>
13
14namespace Belle2 {
21
22 public:
23
30
33
35 virtual void initialize() override;
36
38 virtual void event() override;
39
40
41 protected:
42
47
48
49 private:
50
54
56 bool m_firstEvent = true;
57 };
59}
EDurability
Durability types.
Definition: DataStore.h:58
Base class for Modules.
Definition: Module.h:72
Prints the contents of DataStore in each event, listing all objects and arrays (including size).
bool m_firstEvent
boolean to check if the current event is the first encountered
virtual void initialize() override
initialization.
virtual void event() override
Prints information for each collection in the DataStore.
virtual ~PrintCollectionsModule()
Destructor of the module.
int m_printForEvent
Parameter to set the event number for which the collections should be printed.
void printCollections(DataStore::EDurability durability)
Prints information for each collection in the DataStore using the specified durability.
PrintCollectionsModule()
Constructor of the module.
Abstract base class for different kinds of events.