Belle II Software development
ECLTimingUtilities.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/database/DBObjPtr.h>
12#include <ecl/dbobjects/ECLTimeWalkCorrection.h>
13
14namespace Belle2 {
19 namespace ECL {
24
25 public:
26
30 ECLTimingUtilities(bool required = true);
31
32
40 double energyDependentTimeOffsetElectronic(const double amplitude) const;
41
42
47 void setLoadFromDatabase(bool flag)
48 {
49 m_loadFromDB = flag;
50 }
51
55 void setTimeWalkFuncParams(const double p0, const double p1, const double p2, const double p3, const double p4, const double p5)
56 {
63 }
64
65 private:
66
67 // Parameters of the energy dependent time walk function
68 // Default values measured by Alex Kuzmin based on local testpulse calibration
69 // 2023.02 Updated to the new version by Alex Bobrov based on Bhabha skim data (exp 24)
70 // Note that these are fallback values. By default, new coefficients are loaded from the database.
78 bool m_loadFromDB = true;
82
83 }; // ECLTimingUtilities class
84 } // namespace ECL
86} // namespace Belle2
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Class to storing timing calibration functions.
double energyDependenceTimeOffsetFitParam_p4
p4 in "energy dependence equation"
bool m_loadFromDB
If true, load time walk parameters from the database.
DBObjPtr< ECLTimeWalkCorrection > m_correctionData
Payload that contains the parameters p0..p5.
double energyDependenceTimeOffsetFitParam_p2
p2 in "energy dependence equation"
double energyDependenceTimeOffsetFitParam_p5
p5 in "energy dependence equation"
void setLoadFromDatabase(bool flag)
Whether to load time walk correction coefficients from database (default) or get them from energyDepe...
double energyDependenceTimeOffsetFitParam_p3
p3 in "energy dependence equation"
double energyDependenceTimeOffsetFitParam_p0
p0 in "energy dependence equation"
void setTimeWalkFuncParams(const double p0, const double p1, const double p2, const double p3, const double p4, const double p5)
Sets the time walk function parameters to the values given by the user.
double energyDependentTimeOffsetElectronic(const double amplitude) const
Time walk function for the pre-amps i.e.
double energyDependenceTimeOffsetFitParam_p1
p1 in "energy dependence equation"
Abstract base class for different kinds of events.