Belle II Software  release-05-02-19
PrintCollectionsModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Andreas Moll, Thomas Hauth *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/DataStore.h>
15 
16 namespace Belle2 {
25  class PrintCollectionsModule : public Module {
26 
27  public:
28 
35 
37  virtual ~PrintCollectionsModule();
38 
40  virtual void initialize() override;
41 
43  virtual void event() override;
44 
45 
46  protected:
47 
52 
53 
54  private:
55 
58  int m_printForEvent = -1;
59 
61  bool m_firstEvent = true;
62  };
64 }
Belle2::PrintCollectionsModule::~PrintCollectionsModule
virtual ~PrintCollectionsModule()
Destructor of the module.
Belle2::PrintCollectionsModule::PrintCollectionsModule
PrintCollectionsModule()
Constructor of the module.
Definition: PrintCollectionsModule.cc:33
Belle2::PrintCollectionsModule::m_printForEvent
int m_printForEvent
Parameter to set the event number for which the collections should be printed.
Definition: PrintCollectionsModule.h:66
Belle2::PrintCollectionsModule::printCollections
void printCollections(DataStore::EDurability durability)
Prints information for each collection in the DataStore using the specified durability.
Definition: PrintCollectionsModule.cc:91
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PrintCollectionsModule::initialize
virtual void initialize() override
initialization.
Definition: PrintCollectionsModule.cc:44
Belle2::PrintCollectionsModule::m_firstEvent
bool m_firstEvent
boolean to check if the current event is the first encountered
Definition: PrintCollectionsModule.h:69
Belle2::PrintCollectionsModule::event
virtual void event() override
Prints information for each collection in the DataStore.
Definition: PrintCollectionsModule.cc:49
Belle2::DataStore::EDurability
EDurability
Durability types.
Definition: DataStore.h:60