Belle II Software
release-06-01-15
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
OnlyWriteOutParticleLists.cc
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
#include <analysis/modules/OnlyWriteOutParticleLists/OnlyWriteOutParticleLists.h>
10
#include <framework/datastore/DataStore.h>
11
#include <analysis/dataobjects/ParticleList.h>
12
13
using namespace
Belle2
;
14
15
REG_MODULE
(OnlyWriteOutParticleLists)
16
17
OnlyWriteOutParticleListsModule
::
OnlyWriteOutParticleListsModule
()
18
{
19
setDescription(
"Marks all objects in DataStore except those of type ParticleList as WrtieOut=False. Intedend to run before outputting an index file to remove unnecessary arrays."
);
20
}
21
22
void
OnlyWriteOutParticleListsModule::initialize
()
23
{
24
for
(
auto
& entry :
DataStore::Instance
().getStoreEntryMap(
DataStore::c_Event
)) {
25
entry.second.dontWriteOut = entry.second.objClass != ParticleList::Class();
26
}
27
}
28
29
30
31
Belle2::DataStore::c_Event
@ c_Event
Different object in each event, all objects/arrays are invalidated after event() function has been ca...
Definition:
DataStore.h:59
Belle2::DataStore::Instance
static DataStore & Instance()
Instance of singleton Store.
Definition:
DataStore.cc:52
Belle2::OnlyWriteOutParticleListsModule
Marks all objects in DataStore except those of type ParticleList as WrtieOut=False.
Definition:
OnlyWriteOutParticleLists.h:21
Belle2::OnlyWriteOutParticleListsModule::initialize
virtual void initialize() override
Initialises the module.
Definition:
OnlyWriteOutParticleLists.cc:22
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition:
Module.h:650
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
analysis
modules
OnlyWriteOutParticleLists
src
OnlyWriteOutParticleLists.cc
Generated on Fri Dec 8 2023 04:11:58 for Belle II Software by
1.9.1