Belle II Software  release-06-00-14
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 #include <framework/database/DBObjPtr.h>
11 #include <calibration/CalibrationAlgorithm.h>
12 #include <ecl/dbobjects/ECLLeakageCorrections.h>
13 
14 namespace Belle2 {
19  namespace ECL {
20 
23  public:
24 
27 
29  virtual ~eclLeakageAlgorithm() {}
30 
32  void setLowEnergyThreshold(double lowEnergyThreshold) {m_lowEnergyThreshold = lowEnergyThreshold;}
33 
36 
38  void setNoNCrysThreshold(double noNCrysThreshold) {m_noNCrysThreshold = noNCrysThreshold;}
39 
42 
43 
44  protected:
45 
47  virtual EResult calibrate() override;
48 
49  private:
50 
52  double m_lowEnergyThreshold = 0.0;
53  double m_noNCrysThreshold = 0.0;
56  int t_cellID = 0;
57  int t_thetaID = 0;
58  int t_region = 0;
59  int t_thetaBin = -1;
60  int t_phiBin = -1;
61  int t_phiMech = -1;
62  int t_energyBin = -1;
63  int t_nCrys = -1;
64  float t_energyFrac = 0.;
65  float t_origEnergyFrac = 0.;
66  float t_locationError = 999.;
69  };
70  }
72 } // namespace Belle2
73 
74 
Base class for calibration algorithms.
EResult
The result of calibration.
Calculate ECL energy leakage corrections.
double getNoNCrysThreshold()
Getter for m_noNCrysThreshold.
float t_energyFrac
measured energy (without leakage correction) divided by generated
float t_locationError
reconstructed minus generated position (cm)
int t_energyBin
generated energy point
virtual ~eclLeakageAlgorithm()
Destructor.
double m_noNCrysThreshold
no nCrys fits below this value
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
void setNoNCrysThreshold(double noNCrysThreshold)
Setter for m_noNCrysThreshold.
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
measured energy with leakage correction divided by generated
Abstract base class for different kinds of events.