Belle II Software development
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
13#include <memory>
14#include <string>
15#include <vector>
16
17namespace Belle2 {
22 template<class T> class DBObjPtr;
23 class Particle;
25
30 public:
35
39 void initialize() override;
40
44 void beginRun() override;
45
49 void event() override;
50
51 private:
56 double getCorrectionValue(Particle* particle);
57
59 std::vector<std::string> m_ParticleLists;
60
63
65 std::string m_payloadName;
66
68 std::string m_correctionName;
69
71 std::unique_ptr<DBObjPtr<ParticleWeightingLookUpTable>> m_ParticleWeightingLookUpTable;
75 void setEnergyLossCorrection(Particle* particle);
76
77 }; // TrackingEnergyLossCorrectionModule
78
80}; //namespace
81
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Module()
Constructor.
Definition Module.cc:30
Class to store reconstructed particles.
Definition Particle.h:76
std::vector< std::string > m_ParticleLists
input particle lists
void initialize() override
Initializes the modules and checks the validity of the input parameters.
void event() override
Function to be executed at each event.
double getCorrectionValue(Particle *particle)
Returns the needed correction for particle based on payloadName and correctionName.
TrackingEnergyLossCorrectionModule()
Constructor: Sets the description, the properties and the parameters of the module.
void setEnergyLossCorrection(Particle *particle)
function to set the Energy correction value
std::unique_ptr< DBObjPtr< ParticleWeightingLookUpTable > > m_ParticleWeightingLookUpTable
Pointer to the table in DB.
void beginRun() override
Function to be executed at each beginning of a run.
std::string m_correctionName
Name of the correction from table.
Abstract base class for different kinds of events.