Belle II Software
development
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
42
class
VariablesToExtraInfoModule
:
public
Module
{
43
public
:
44
48
VariablesToExtraInfoModule
();
49
virtual
~VariablesToExtraInfoModule
()
override
;
50
52
virtual
void
initialize
()
override
;
54
virtual
void
event
()
override
;
55
56
private
:
58
StoreArray<Particle>
m_particles
;
60
std::string
m_inputListName
;
62
StoreObjPtr<ParticleList>
m_inputList
;
64
std::map<std::string, std::string>
m_variables
;
66
std::vector<Variable::Manager::FunctionPtr>
m_functions
;
68
std::vector<std::string>
m_extraInfoNames
;
69
71
std::string
m_decayString
;
73
DecayDescriptor
m_pDDescriptor
;
75
bool
m_writeToDaughter
=
false
;
77
int
m_overwrite
= 0;
78
83
void
addExtraInfo
(
const
Particle
* source,
Particle
* destination);
84
85
};
86
88
}
// 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:42
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:75
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:71
Belle2::VariablesToExtraInfoModule::m_particles
StoreArray< Particle > m_particles
StoreArray of Particles.
Definition:
VariablesToExtraInfoModule.h:58
Belle2::VariablesToExtraInfoModule::m_pDDescriptor
DecayDescriptor m_pDDescriptor
Decay descriptor of the particle being selected.
Definition:
VariablesToExtraInfoModule.h:73
Belle2::VariablesToExtraInfoModule::m_inputList
StoreObjPtr< ParticleList > m_inputList
input particle list
Definition:
VariablesToExtraInfoModule.h:62
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:77
Belle2::VariablesToExtraInfoModule::m_functions
std::vector< Variable::Manager::FunctionPtr > m_functions
Vector of function pointers corresponding to given variables.
Definition:
VariablesToExtraInfoModule.h:66
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:64
Belle2::VariablesToExtraInfoModule::m_extraInfoNames
std::vector< std::string > m_extraInfoNames
Vector of extra info names.
Definition:
VariablesToExtraInfoModule.h:68
Belle2::VariablesToExtraInfoModule::m_inputListName
std::string m_inputListName
name of input particle list.
Definition:
VariablesToExtraInfoModule.h:60
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:
MillepedeAlgorithm.h:17
analysis
modules
VariablesToExtraInfo
include
VariablesToExtraInfoModule.h
Generated on Fri Nov 8 2024 02:32:39 for Belle II Software by
1.9.6