Belle II Software
release-08-01-10
BGOverlayInputModule.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
/* Basf2 headers. */
12
#include <framework/core/Module.h>
13
#include <framework/datastore/DataStore.h>
14
15
/* ROOT headers. */
16
#include <TChain.h>
17
18
/* C++ headers. */
19
#include <string>
20
21
namespace
Belle2
{
31
class
BGOverlayInputModule
:
public
Module
{
32
33
public
:
34
38
BGOverlayInputModule
();
39
43
~BGOverlayInputModule
();
44
49
void
initialize
()
override
;
50
55
void
beginRun
()
override
;
56
60
void
event
()
override
;
61
66
void
endRun
()
override
;
67
72
void
terminate
()
override
;
73
74
private
:
75
76
typedef
std::vector<DataStore::StoreEntry*>
StoreEntries
;
84
bool
connectBranches
();
85
86
std::vector<std::string>
m_inputFileNames
;
87
std::string
m_extensionName
;
88
std::string
m_BackgroundInfoInstanceName
=
""
;
89
bool
m_skipExperimentCheck
=
false
;
91
TChain*
m_tree
= 0;
92
unsigned
m_numEvents
= 0;
93
unsigned
m_eventCount
= 0;
94
unsigned
m_firstEvent
= 0;
95
bool
m_start
=
true
;
96
StoreEntries
m_storeEntries
;
97
unsigned
m_index
= 0;
99
};
100
102
}
// Belle2 namespace
103
Belle2::BGOverlayInputModule
Beam BG data input, either in form of Digits or raw data.
Definition:
BGOverlayInputModule.h:31
Belle2::BGOverlayInputModule::m_BackgroundInfoInstanceName
std::string m_BackgroundInfoInstanceName
name BackgroundInfo name
Definition:
BGOverlayInputModule.h:88
Belle2::BGOverlayInputModule::m_skipExperimentCheck
bool m_skipExperimentCheck
flag for skipping the check on the experiment number
Definition:
BGOverlayInputModule.h:89
Belle2::BGOverlayInputModule::m_storeEntries
StoreEntries m_storeEntries
store entries with connected branches
Definition:
BGOverlayInputModule.h:96
Belle2::BGOverlayInputModule::BGOverlayInputModule
BGOverlayInputModule()
Constructor.
Definition:
BGOverlayInputModule.cc:43
Belle2::BGOverlayInputModule::initialize
void initialize() override
Initialize the Module.
Definition:
BGOverlayInputModule.cc:64
Belle2::BGOverlayInputModule::m_start
bool m_start
flag denoting first call of event function
Definition:
BGOverlayInputModule.h:95
Belle2::BGOverlayInputModule::m_tree
TChain * m_tree
tree pointer
Definition:
BGOverlayInputModule.h:91
Belle2::BGOverlayInputModule::event
void event() override
Event processor.
Definition:
BGOverlayInputModule.cc:149
Belle2::BGOverlayInputModule::endRun
void endRun() override
End-of-run action.
Definition:
BGOverlayInputModule.cc:181
Belle2::BGOverlayInputModule::terminate
void terminate() override
Termination action.
Definition:
BGOverlayInputModule.cc:185
Belle2::BGOverlayInputModule::connectBranches
bool connectBranches()
Connect branches of the given event tree to the data store, except EventMetaData and all relations.
Definition:
BGOverlayInputModule.cc:193
Belle2::BGOverlayInputModule::m_inputFileNames
std::vector< std::string > m_inputFileNames
list of file names
Definition:
BGOverlayInputModule.h:86
Belle2::BGOverlayInputModule::m_extensionName
std::string m_extensionName
name added to default branch names
Definition:
BGOverlayInputModule.h:87
Belle2::BGOverlayInputModule::~BGOverlayInputModule
~BGOverlayInputModule()
Destructor.
Definition:
BGOverlayInputModule.cc:60
Belle2::BGOverlayInputModule::beginRun
void beginRun() override
Called when entering a new run.
Definition:
BGOverlayInputModule.cc:144
Belle2::BGOverlayInputModule::StoreEntries
std::vector< DataStore::StoreEntry * > StoreEntries
DataStore entries.
Definition:
BGOverlayInputModule.h:76
Belle2::BGOverlayInputModule::m_eventCount
unsigned m_eventCount
current event (tree entry)
Definition:
BGOverlayInputModule.h:93
Belle2::BGOverlayInputModule::m_index
unsigned m_index
index of BackgroundDescr in BackgroundInfo object
Definition:
BGOverlayInputModule.h:97
Belle2::BGOverlayInputModule::m_firstEvent
unsigned m_firstEvent
randomly choosen first event (tree entry)
Definition:
BGOverlayInputModule.h:94
Belle2::BGOverlayInputModule::m_numEvents
unsigned m_numEvents
number of events (tree entries) in the sample
Definition:
BGOverlayInputModule.h:92
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
background
modules
BGOverlayInput
include
BGOverlayInputModule.h
Generated on Mon Sep 23 2024 14:00:37 for Belle II Software by
1.9.1