Belle II Software
development
BiasCorrection.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
10
#pragma once
11
12
#include <framework/core/Module.h>
13
14
#include <analysis/dbobjects/ParticleWeightingLookUpTable.h>
15
#include <framework/database/DBObjPtr.h>
16
#include <analysis/dataobjects/Particle.h>
17
#include <analysis/dataobjects/ParticleList.h>
18
#include <string>
19
20
namespace
Belle2
{
29
class
EnergyBiasCorrectionModule
:
public
Module
{
30
31
public
:
35
EnergyBiasCorrectionModule
();
41
WeightInfo
getInfo
(
const
Particle
* particle);
42
44
virtual
void
beginRun
()
override
;
48
virtual
void
event
()
override
;
49
50
private
:
52
std::vector<std::string>
m_ParticleLists
;
53
std::string
m_tableName
;
54
std::unique_ptr<DBObjPtr<ParticleWeightingLookUpTable>>
m_ParticleWeightingLookUpTable
;
59
void
setEnergyScalingFactor
(
Particle
* particle);
60
61
};
// EnergyBiasCorrectionModule
62
64
};
//namespace
Belle2::EnergyBiasCorrectionModule
Energy bias correction.
Definition:
BiasCorrection.h:29
Belle2::EnergyBiasCorrectionModule::m_ParticleLists
std::vector< std::string > m_ParticleLists
input particle lists
Definition:
BiasCorrection.h:52
Belle2::EnergyBiasCorrectionModule::setEnergyScalingFactor
void setEnergyScalingFactor(Particle *particle)
function to set scaling factor
Definition:
BiasCorrection.cc:97
Belle2::EnergyBiasCorrectionModule::event
virtual void event() override
Function to be executed at each event.
Definition:
BiasCorrection.cc:72
Belle2::EnergyBiasCorrectionModule::getInfo
WeightInfo getInfo(const Particle *particle)
Get LookUp information for the particle.
Definition:
BiasCorrection.cc:44
Belle2::EnergyBiasCorrectionModule::m_ParticleWeightingLookUpTable
std::unique_ptr< DBObjPtr< ParticleWeightingLookUpTable > > m_ParticleWeightingLookUpTable
Pointer to the table in DB.
Definition:
BiasCorrection.h:54
Belle2::EnergyBiasCorrectionModule::beginRun
virtual void beginRun() override
Nothing so far.
Definition:
BiasCorrection.cc:61
Belle2::EnergyBiasCorrectionModule::m_tableName
std::string m_tableName
Name of the table.
Definition:
BiasCorrection.h:53
Belle2::EnergyBiasCorrectionModule::EnergyBiasCorrectionModule
EnergyBiasCorrectionModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition:
BiasCorrection.cc:34
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::Particle
Class to store reconstructed particles.
Definition:
Particle.h:75
Belle2::WeightInfo
std::map< std::string, double > WeightInfo
Weight information: a line from the weight lookup table.
Definition:
ParticleWeightingLookUpTable.h:21
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
analysis
modules
BiasCorrection
include
BiasCorrection.h
Generated on Fri Nov 8 2024 02:32:20 for Belle II Software by
1.9.6