Belle II Software
light-2406-ragdoll
TrackingEnergyLossCorrection.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/database/DBObjPtr.h>
13
#include <analysis/dbobjects/ParticleWeightingLookUpTable.h>
14
15
#include <analysis/dataobjects/Particle.h>
16
17
namespace
Belle2
{
26
class
TrackingEnergyLossCorrectionModule
:
public
Module
{
27
public
:
31
TrackingEnergyLossCorrectionModule
();
32
36
virtual
void
initialize
()
override
;
37
41
virtual
void
event
()
override
;
42
43
private
:
48
double
getCorrectionValue
(
Particle
* particle);
49
51
std::vector<std::string>
m_ParticleLists
;
53
double
m_correction
;
54
56
std::string
m_payloadName
;
57
59
std::string
m_correctionName
;
60
62
std::unique_ptr<DBObjPtr<ParticleWeightingLookUpTable>>
m_ParticleWeightingLookUpTable
;
66
void
setEnergyLossCorrection
(
Particle
* particle);
67
68
};
// TrackingEnergyLossCorrectionModule
69
71
};
//namespace
72
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::Particle
Class to store reconstructed particles.
Definition:
Particle.h:75
Belle2::TrackingEnergyLossCorrectionModule
Tracking energy systematics module: allows for the application of an additive energy correction which...
Definition:
TrackingEnergyLossCorrection.h:26
Belle2::TrackingEnergyLossCorrectionModule::m_ParticleLists
std::vector< std::string > m_ParticleLists
input particle lists
Definition:
TrackingEnergyLossCorrection.h:51
Belle2::TrackingEnergyLossCorrectionModule::initialize
virtual void initialize() override
Initializes the modules and checks the validity of the input parameters.
Definition:
TrackingEnergyLossCorrection.cc:37
Belle2::TrackingEnergyLossCorrectionModule::event
virtual void event() override
Function to be executed at each event.
Definition:
TrackingEnergyLossCorrection.cc:57
Belle2::TrackingEnergyLossCorrectionModule::getCorrectionValue
double getCorrectionValue(Particle *particle)
Returns the needed correction for particle based on payloadName and correctionName.
Definition:
TrackingEnergyLossCorrection.cc:85
Belle2::TrackingEnergyLossCorrectionModule::TrackingEnergyLossCorrectionModule
TrackingEnergyLossCorrectionModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition:
TrackingEnergyLossCorrection.cc:25
Belle2::TrackingEnergyLossCorrectionModule::m_payloadName
std::string m_payloadName
Name of the table
Definition:
TrackingEnergyLossCorrection.h:56
Belle2::TrackingEnergyLossCorrectionModule::setEnergyLossCorrection
void setEnergyLossCorrection(Particle *particle)
function to set the Energy correction value
Definition:
TrackingEnergyLossCorrection.cc:106
Belle2::TrackingEnergyLossCorrectionModule::m_ParticleWeightingLookUpTable
std::unique_ptr< DBObjPtr< ParticleWeightingLookUpTable > > m_ParticleWeightingLookUpTable
Pointer to the table in DB.
Definition:
TrackingEnergyLossCorrection.h:62
Belle2::TrackingEnergyLossCorrectionModule::m_correction
double m_correction
input Energy scale modifier
Definition:
TrackingEnergyLossCorrection.h:53
Belle2::TrackingEnergyLossCorrectionModule::m_correctionName
std::string m_correctionName
Name of the correction from table.
Definition:
TrackingEnergyLossCorrection.h:59
Belle2
Abstract base class for different kinds of events.
Definition:
ClusterUtils.h:24
analysis
modules
TrackingSystematics
include
TrackingEnergyLossCorrection.h
Generated on Tue Jul 9 2024 23:26:53 for Belle II Software by
1.9.6