Belle II Software development
eclLeakageAlgorithm.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/* Basf2 headers. */
12#include <calibration/CalibrationAlgorithm.h>
13
14namespace Belle2 {
19 namespace ECL {
20
23 public:
24
27
30
32 void setLowEnergyThreshold(double lowEnergyThreshold) {m_lowEnergyThreshold = lowEnergyThreshold;}
33
36
37 protected:
38
40 virtual EResult calibrate() override;
41
42 private:
43
45 double m_lowEnergyThreshold = 0.0;
48 int t_cellID = 0;
49 int t_thetaID = 0;
50 int t_region = 0;
51 int t_thetaBin = -1;
52 int t_phiBin = -1;
53 int t_phiMech = -1;
54 int t_energyBin = -1;
55 int t_nCrys = -1;
56 float t_energyFrac = 0.;
57 float t_origEnergyFrac = 0.;
58 float t_locationError = 999.;
61 };
62 }
64} // namespace Belle2
65
66
Base class for calibration algorithms.
EResult
The result of calibration.
Calculate ECL energy leakage corrections.
float t_energyFrac
measured energy after nOptimal bias and peak corrections, divided by generated
float t_locationError
reconstructed minus generated position (cm)
int t_energyBin
generated energy point
virtual ~eclLeakageAlgorithm()
Destructor.
double getLowEnergyThreshold()
Getter for m_lowEnergyThreshold.
int t_phiBin
binned location in phi relative to crystal edge
int t_phiMech
mechanical structure next to lower phi (0), upper phi (1), or neither (2)
int t_region
region of photon 0=forward 1=barrel 2=backward
int t_thetaBin
binned location in theta relative to crystal edge
int t_nCrys
number of crystals used to calculate energy
virtual EResult calibrate() override
Run algorithm.
void setLowEnergyThreshold(double lowEnergyThreshold)
Setter for m_lowEnergyThreshold.
double m_lowEnergyThreshold
Parameters to control fit procedure.
float t_origEnergyFrac
corrected energy at time of generation, divided by generated
Abstract base class for different kinds of events.