Belle II Software development
SteerRootInputModule.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
13#include <framework/datastore/StoreObjPtr.h>
14#include <framework/dataobjects/EventMetaData.h>
15#include <framework/dataobjects/MergedEventConsistency.h>
16
17namespace Belle2 {
29
30 public:
31
37
39 void init(bool eventMixing, bool mergeSameFile);
40
42
43 virtual void initialize() override;
44 virtual void event() override;
45
46 private:
47
49 bool m_eventMixing = false;
50
52 bool m_mergeSameFile = false;
53
56
59
62
65
66 };
68}
Base class for Modules.
Definition: Module.h:72
Internal module used by Path.add_independent_merge_path().
StoreObjPtr< EventMetaData > m_eventMetaData_main
We want to use the EventMetaData for some basic checks.
bool m_processedLastEvent
set if current event is the last one to be processed
StoreObjPtr< MergedEventConsistency > m_mergedEventConsistency
Check if charge of both events is consistent (otherwise skip)
virtual void initialize() override
Initialize the Module.
bool m_eventMixing
do event mixing (merge each event of main path with each event of independent path)
virtual void event() override
This method is the core of the module.
void init(bool eventMixing, bool mergeSameFile)
setter for Path.
StoreObjPtr< EventMetaData > m_eventMetaData_indep
We want to use the EventMetaData for some basic checks.
bool m_mergeSameFile
if you want to merge a file with itself, mixing evts (1,3) is the same as (3,1)
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.