Belle II Software
light-2406-ragdoll
VariablesToEventExtraInfoModule.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
#include <framework/datastore/StoreObjPtr.h>
13
14
#include <framework/dataobjects/EventExtraInfo.h>
15
#include <analysis/dataobjects/Particle.h>
16
#include <analysis/dataobjects/ParticleList.h>
17
#include <analysis/VariableManager/Manager.h>
18
19
#include <string>
20
#include <map>
21
#include <vector>
22
23
namespace
Belle2
{
28
class
Particle;
29
37
class
VariablesToEventExtraInfoModule
:
public
Module
{
38
public
:
39
43
VariablesToEventExtraInfoModule
();
44
virtual
~VariablesToEventExtraInfoModule
()
override
;
45
47
virtual
void
initialize
()
override
;
49
virtual
void
event
()
override
;
50
51
private
:
53
std::string
m_inputListName
;
55
StoreObjPtr<ParticleList>
m_inputList
;
57
StoreObjPtr<EventExtraInfo>
m_eventExtraInfo
;
59
std::map<std::string, std::string>
m_variables
;
61
std::vector<Variable::Manager::FunctionPtr>
m_functions
;
63
std::vector<std::string>
m_extraInfoNames
;
64
66
int
m_overwrite
= 0;
67
72
void
addEventExtraInfo
(
const
Particle
* source);
73
74
};
75
77
}
// Belle2 namespace
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::Particle
Class to store reconstructed particles.
Definition:
Particle.h:75
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition:
StoreObjPtr.h:96
Belle2::VariablesToEventExtraInfoModule
For each particle in the input list the selected variables are saved in an event-extra-info field wit...
Definition:
VariablesToEventExtraInfoModule.h:37
Belle2::VariablesToEventExtraInfoModule::addEventExtraInfo
void addEventExtraInfo(const Particle *source)
Adds extra info to the event.
Definition:
VariablesToEventExtraInfoModule.cc:71
Belle2::VariablesToEventExtraInfoModule::initialize
virtual void initialize() override
initialise
Definition:
VariablesToEventExtraInfoModule.cc:38
Belle2::VariablesToEventExtraInfoModule::event
virtual void event() override
process event: actually adds the extra info
Definition:
VariablesToEventExtraInfoModule.cc:56
Belle2::VariablesToEventExtraInfoModule::m_inputList
StoreObjPtr< ParticleList > m_inputList
input particle list
Definition:
VariablesToEventExtraInfoModule.h:55
Belle2::VariablesToEventExtraInfoModule::m_overwrite
int m_overwrite
-1/0/1/2: Overwrite if lower / don't overwrite / overwrite if higher / always overwrite,...
Definition:
VariablesToEventExtraInfoModule.h:66
Belle2::VariablesToEventExtraInfoModule::m_functions
std::vector< Variable::Manager::FunctionPtr > m_functions
Vector of function pointers corresponding to given variables.
Definition:
VariablesToEventExtraInfoModule.h:61
Belle2::VariablesToEventExtraInfoModule::m_variables
std::map< std::string, std::string > m_variables
Map of variables and extraInfo names to save in the event-extra-info field.
Definition:
VariablesToEventExtraInfoModule.h:59
Belle2::VariablesToEventExtraInfoModule::m_eventExtraInfo
StoreObjPtr< EventExtraInfo > m_eventExtraInfo
event extra info object pointer
Definition:
VariablesToEventExtraInfoModule.h:57
Belle2::VariablesToEventExtraInfoModule::m_extraInfoNames
std::vector< std::string > m_extraInfoNames
Vector of extra info names.
Definition:
VariablesToEventExtraInfoModule.h:63
Belle2::VariablesToEventExtraInfoModule::VariablesToEventExtraInfoModule
VariablesToEventExtraInfoModule()
Constructor.
Definition:
VariablesToEventExtraInfoModule.cc:20
Belle2::VariablesToEventExtraInfoModule::m_inputListName
std::string m_inputListName
name of input particle list.
Definition:
VariablesToEventExtraInfoModule.h:53
Belle2
Abstract base class for different kinds of events.
Definition:
ClusterUtils.h:24
analysis
modules
VariablesToEventExtraInfo
include
VariablesToEventExtraInfoModule.h
Generated on Tue Jul 9 2024 23:26:55 for Belle II Software by
1.9.6