Belle II Software  release-08-00-10
eclBhabhaTAlgorithm.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 /* ECL headers. */
12 #include <ecl/calibration/eclBhabhaTAlgorithm.h>
13 
14 /* Basf2 headers. */
15 #include <calibration/CalibrationAlgorithm.h>
16 
17 /* C++ headers. */
18 #include <string>
19 
20 namespace Belle2 {
25  namespace ECL {
26 
29  public:
30 
33 
36 
37  /*** Parameters ***/
38 
39  int cellIDLo;
40  int cellIDHi;
45  int crateIDLo;
46  int crateIDHi;
49  bool debugOutput;
51  std::string debugFilenameBase;
52  std::string collectorName;
53  int refCrysPerCrate[52] ;
55  protected:
56 
58  EResult calibrate() override;
59 
60 // private:
61 // /** Number of processed runs */
62 // unsigned int m_runCount;
63  };
64  } // namespace ECL
66 } // namespace Belle2
67 
Base class for calibration algorithms.
EResult
The result of calibration.
Calibrate ecl crystals using bhabha events.
int crateIDHi
Fit crates with crateID0 in the inclusive range [crateIDLo,crateIDHi].
int cellIDHi
Fit crystals with cellID0 in the inclusive range [cellIDLo,cellIDHi].
int cellIDLo
Fit crystals with cellID0 in the inclusive range [cellIDLo,cellIDHi].
bool debugOutput
Save every histogram and fitted function to debugFilename.
double meanCleanRebinFactor
Rebinning factor for mean calculation.
int crateIDLo
Fit crates with crateID0 in the inclusive range [crateIDLo,crateIDHi].
double meanCleanCutMinFactor
After rebinning, create a mask for bins that have values less than meanCleanCutMinFactor times the ma...
bool savePrevCrysPayload
Save the previous crystal payload values for comparison.
std::string collectorName
Name of the collector.
bool readPrevCrysPayload
Read the previous crystal payload values for comparison.
EResult calibrate() override
..Run algorithm on events
int refCrysPerCrate[52]
List of crystals, one per crate, used as reference time for crystal time calibration.
std::string debugFilenameBase
Name of file with debug output, eclBhabhaTAlgorithm.root by default.
Abstract base class for different kinds of events.