Belle II Software prerelease-10-00-00a
CreateConsistencyInfoModule.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/dataobjects/EventExtraInfo.h>
12#include <framework/dataobjects/MergedEventConsistency.h>
13
14#include <framework/core/Module.h>
15
16#include <framework/datastore/StoreObjPtr.h>
17
18namespace Belle2 {
23
32
33 public:
34
39
41 void init(const std::string& option, bool eventMixing);
42
44
45 virtual void initialize() override;
46 virtual void event() override;
47
48 private:
49
51 std::string m_option = "charge";
52
54 bool m_eventMixing = false;
55
58
63 StoreObjPtr<EventExtraInfo>("EventExtraInfo_indepPath");
64
65 };
66
68} // Belle2 namespace
69
StoreObjPtr< MergedEventConsistency > m_mergedEventConsistency
object that stores whether events are consistent
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.
std::string m_option
different options foreseen to check consistency (right now only charge)
StoreObjPtr< EventExtraInfo > m_EventExtraInfo_main
EventExtraInfo from main path.
void init(const std::string &option, bool eventMixing)
setter for Path.
StoreObjPtr< EventExtraInfo > m_EventExtraInfo_indep
EventExtraInfo from independent path.
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.