Belle II Software
release-06-02-00
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
InputController.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 <string>
12
13
class
TChain;
14
15
namespace
Belle2
{
27
class
InputController
{
28
public
:
30
static
bool
canControlInput
() {
return
s_canControlInput
; }
31
33
static
void
setCanControlInput
(
bool
on) {
s_canControlInput
= on; }
34
41
static
void
setNextEntry
(
long
entry) {
s_nextEntry
= entry; }
42
44
static
long
getNextEntry
() {
return
s_nextEntry
; }
45
50
static
void
setNextEntry
(
long
exp,
long
run,
long
event) {
s_nextExperiment
= exp;
s_nextRun
= run;
s_nextEvent
= event; }
51
53
static
long
getNextExperiment
() {
return
s_nextExperiment
; }
54
56
static
long
getNextRun
() {
return
s_nextRun
; }
57
59
static
long
getNextEvent
() {
return
s_nextEvent
; }
60
62
static
long
getCurrentEntry
() {
return
s_currentEntry
; }
63
68
static
long
numEntries
();
69
71
static
std::string
getCurrentFileName
();
72
74
static
void
eventLoaded
(
long
entry)
75
{
76
s_nextEntry
= -1;
77
s_nextExperiment
= -1;
78
s_nextRun
= -1;
79
s_nextEvent
= -1;
80
s_currentEntry
= entry;
81
}
82
84
static
void
setChain
(
const
TChain* chain) {
s_chain
= chain; }
85
87
static
void
resetForChildProcess
();
88
89
private
:
90
InputController
() { }
91
~InputController() { }
92
94
static
bool
s_canControlInput
;
95
100
static
long
s_nextEntry
;
101
106
static
long
s_nextExperiment
;
107
109
static
long
s_nextRun
;
110
112
static
long
s_nextEvent
;
113
114
116
static
long
s_currentEntry
;
117
119
static
const
TChain*
s_chain
;
120
};
122
}
Belle2::InputController
A static class to control supported input modules.
Definition:
InputController.h:27
Belle2::InputController::setChain
static void setChain(const TChain *chain)
Set the loaded TChain (event durability).
Definition:
InputController.h:84
Belle2::InputController::getNextEntry
static long getNextEntry()
Return entry number set via setNextEntry().
Definition:
InputController.h:44
Belle2::InputController::s_chain
static const TChain * s_chain
Opened TChain (event durability).
Definition:
InputController.h:119
Belle2::InputController::getNextRun
static long getNextRun()
Return run number set via setNextEntry().
Definition:
InputController.h:56
Belle2::InputController::getNextExperiment
static long getNextExperiment()
Return experiment number set via setNextEntry().
Definition:
InputController.h:53
Belle2::InputController::setNextEntry
static void setNextEntry(long entry)
Set the file entry to be loaded the next time event() is called.
Definition:
InputController.h:41
Belle2::InputController::numEntries
static long numEntries()
Returns total number of entries in the event tree.
Definition:
InputController.cc:46
Belle2::InputController::getCurrentEntry
static long getCurrentEntry()
returns the entry number currently loaded.
Definition:
InputController.h:62
Belle2::InputController::resetForChildProcess
static void resetForChildProcess()
Reset InputController (e.g.
Definition:
InputController.cc:23
Belle2::InputController::s_nextExperiment
static long s_nextExperiment
Experiment number to load next.
Definition:
InputController.h:106
Belle2::InputController::canControlInput
static bool canControlInput()
Is there an input module to be controlled.
Definition:
InputController.h:30
Belle2::InputController::s_nextEvent
static long s_nextEvent
Event (not entry!) to load next.
Definition:
InputController.h:112
Belle2::InputController::s_currentEntry
static long s_currentEntry
current entry in file.
Definition:
InputController.h:116
Belle2::InputController::s_nextRun
static long s_nextRun
Run number to load next.
Definition:
InputController.h:109
Belle2::InputController::getCurrentFileName
static std::string getCurrentFileName()
Return name of current file in loaded chain (or empty string if none loaded).
Definition:
InputController.cc:34
Belle2::InputController::s_nextEntry
static long s_nextEntry
entry to be loaded the next time event() is called in an input module.
Definition:
InputController.h:100
Belle2::InputController::eventLoaded
static void eventLoaded(long entry)
Indicate that an event (in the given entry) was loaded and reset all members related to the next entr...
Definition:
InputController.h:74
Belle2::InputController::setCanControlInput
static void setCanControlInput(bool on)
Call this function from supported input modules.
Definition:
InputController.h:33
Belle2::InputController::s_canControlInput
static bool s_canControlInput
Is there an input module to be controlled?
Definition:
InputController.h:94
Belle2::InputController::getNextEvent
static long getNextEvent()
Return event number set via setNextEntry().
Definition:
InputController.h:59
Belle2::InputController::setNextEntry
static void setNextEntry(long exp, long run, long event)
Set the file entry to be loaded the next time event() is called, by evt/run/exp number.
Definition:
InputController.h:50
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
framework
core
include
InputController.h
Generated on Thu Dec 28 2023 02:24:29 for Belle II Software by
1.9.1