Belle II Software light-2406-ragdoll
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 {
24
25 public:
26
33
36
38 virtual void initialize() override;
39
41 virtual void event() override;
42
43
44 protected:
45
50
51
52 private:
53
57
59 bool m_firstEvent = true;
60 };
62}
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.
Definition: ClusterUtils.h:24