Belle II Software  release-08-01-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 /* Basf2 headers. */
12 #include <calibration/CalibrationAlgorithm.h>
13 
14 /* C++ headers. */
15 #include <string>
16 
17 namespace Belle2 {
22  namespace ECL {
23 
26  public:
27 
30 
33 
34  /*** Parameters ***/
35 
36  int cellIDLo;
37  int cellIDHi;
42  int crateIDLo;
43  int crateIDHi;
46  bool debugOutput;
48  std::string debugFilenameBase;
49  std::string collectorName;
50  int refCrysPerCrate[52] ;
52  protected:
53 
55  EResult calibrate() override;
56 
57 // private:
58 // /** Number of processed runs */
59 // unsigned int m_runCount;
60  };
61  } // namespace ECL
63 } // namespace Belle2
64 
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.