Belle II Software
light-2406-ragdoll
VariablesToExtraInfoModule.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
13
#include <framework/datastore/StoreArray.h>
14
#include <framework/datastore/StoreObjPtr.h>
15
16
#include <analysis/dataobjects/Particle.h>
17
#include <analysis/dataobjects/ParticleList.h>
18
#include <analysis/VariableManager/Manager.h>
19
20
#include <analysis/DecayDescriptor/DecayDescriptor.h>
21
22
#include <string>
23
#include <map>
24
#include <vector>
25
26
namespace
Belle2
{
31
class
Particle;
32
45
class
VariablesToExtraInfoModule
:
public
Module
{
46
public
:
47
51
VariablesToExtraInfoModule
();
52
virtual
~VariablesToExtraInfoModule
()
override
;
53
55
virtual
void
initialize
()
override
;
57
virtual
void
event
()
override
;
58
59
private
:
61
StoreArray<Particle>
m_particles
;
63
std::string
m_inputListName
;
65
StoreObjPtr<ParticleList>
m_inputList
;
67
std::map<std::string, std::string>
m_variables
;
69
std::vector<Variable::Manager::FunctionPtr>
m_functions
;
71
std::vector<std::string>
m_extraInfoNames
;
72
74
std::string
m_decayString
;
76
DecayDescriptor
m_pDDescriptor
;
78
bool
m_writeToDaughter
=
false
;
80
int
m_overwrite
= 0;
81
86
void
addExtraInfo
(
const
Particle
* source,
Particle
* destination);
87
88
};
89
91
}
// Belle2 namespace
Belle2::DecayDescriptor
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Definition:
DecayDescriptor.h:33
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::Particle
Class to store reconstructed particles.
Definition:
Particle.h:75
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition:
StoreArray.h:113
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition:
StoreObjPtr.h:96
Belle2::VariablesToExtraInfoModule
For each particle in the input list the selected variables are saved in an extra-info field with the ...
Definition:
VariablesToExtraInfoModule.h:45
Belle2::VariablesToExtraInfoModule::VariablesToExtraInfoModule
VariablesToExtraInfoModule()
Constructor.
Definition:
VariablesToExtraInfoModule.cc:19
Belle2::VariablesToExtraInfoModule::m_writeToDaughter
bool m_writeToDaughter
if true the extraInfo is written to daughter specified by the decay string
Definition:
VariablesToExtraInfoModule.h:78
Belle2::VariablesToExtraInfoModule::initialize
virtual void initialize() override
initialise
Definition:
VariablesToExtraInfoModule.cc:39
Belle2::VariablesToExtraInfoModule::event
virtual void event() override
process event: actually adds the extra info
Definition:
VariablesToExtraInfoModule.cc:64
Belle2::VariablesToExtraInfoModule::m_decayString
std::string m_decayString
DecayString specifying the daughter Particle to which the extra-info field will be added.
Definition:
VariablesToExtraInfoModule.h:74
Belle2::VariablesToExtraInfoModule::m_particles
StoreArray< Particle > m_particles
StoreArray of Particles.
Definition:
VariablesToExtraInfoModule.h:61
Belle2::VariablesToExtraInfoModule::m_pDDescriptor
DecayDescriptor m_pDDescriptor
Decay descriptor of the particle being selected.
Definition:
VariablesToExtraInfoModule.h:76
Belle2::VariablesToExtraInfoModule::m_inputList
StoreObjPtr< ParticleList > m_inputList
input particle list
Definition:
VariablesToExtraInfoModule.h:65
Belle2::VariablesToExtraInfoModule::m_overwrite
int m_overwrite
-1/0/1/2: Overwrite if lower / don't overwrite / overwrite if higher / always overwrite,...
Definition:
VariablesToExtraInfoModule.h:80
Belle2::VariablesToExtraInfoModule::m_functions
std::vector< Variable::Manager::FunctionPtr > m_functions
Vector of function pointers corresponding to given variables.
Definition:
VariablesToExtraInfoModule.h:69
Belle2::VariablesToExtraInfoModule::m_variables
std::map< std::string, std::string > m_variables
Map of variables and extraInfo names to save in the extra-info field.
Definition:
VariablesToExtraInfoModule.h:67
Belle2::VariablesToExtraInfoModule::m_extraInfoNames
std::vector< std::string > m_extraInfoNames
Vector of extra info names.
Definition:
VariablesToExtraInfoModule.h:71
Belle2::VariablesToExtraInfoModule::m_inputListName
std::string m_inputListName
name of input particle list.
Definition:
VariablesToExtraInfoModule.h:63
Belle2::VariablesToExtraInfoModule::addExtraInfo
void addExtraInfo(const Particle *source, Particle *destination)
Adds extra info to the particle.
Definition:
VariablesToExtraInfoModule.cc:87
Belle2
Abstract base class for different kinds of events.
Definition:
ClusterUtils.h:24
analysis
modules
VariablesToExtraInfo
include
VariablesToExtraInfoModule.h
Generated on Tue Jul 9 2024 23:26:55 for Belle II Software by
1.9.6