Belle II Software  release-05-02-19
eclBhabhaTAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Calculate time offsets from bhabha events. *
6  * *
7  * Author: The Belle II Collaboration *
8  * Contributors: Ewan Hill (ehill@mail.ubc.ca) *
9  * Mikhail Remnev *
10  * *
11  * This software is provided "as is" without any warranty. *
12  **************************************************************************/
13 
14 #pragma once
15 #include <ecl/calibration/eclBhabhaTAlgorithm.h>
16 #include <calibration/CalibrationAlgorithm.h>
17 #include <string>
18 
19 
20 namespace Belle2 {
25  namespace ECL {
26 
28  class eclBhabhaTAlgorithm : public CalibrationAlgorithm {
29  public:
30 
33 
36 
37  /*** Parameters ***/
38 
39  int cellIDLo;
40  int cellIDHi;
41  double meanCleanRebinFactor;
42  double meanCleanCutMinFactor;
45  int crateIDLo;
46  int crateIDHi;
47  bool savePrevCrysPayload;
48  bool readPrevCrysPayload;
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 
Belle2::ECL::eclBhabhaTAlgorithm::readPrevCrysPayload
bool readPrevCrysPayload
Read the previous crystal payload values for comparison.
Definition: eclBhabhaTAlgorithm.h:59
Belle2::ECL::eclBhabhaTAlgorithm::refCrysPerCrate
int refCrysPerCrate[52]
List of crystals, one per crate, used as reference time for crystal time calibration.
Definition: eclBhabhaTAlgorithm.h:64
Belle2::ECL::eclBhabhaTAlgorithm::cellIDHi
int cellIDHi
Fit crystals with cellID0 in the inclusive range [cellIDLo,cellIDHi].
Definition: eclBhabhaTAlgorithm.h:51
Belle2::ECL::eclBhabhaTAlgorithm::debugOutput
bool debugOutput
Save every histogram and fitted function to debugFilename.
Definition: eclBhabhaTAlgorithm.h:60
Belle2::ECL::eclBhabhaTAlgorithm::crateIDLo
int crateIDLo
Fit crates with crateID0 in the inclusive range [crateIDLo,crateIDHi].
Definition: eclBhabhaTAlgorithm.h:56
Belle2::ECL::eclBhabhaTAlgorithm::savePrevCrysPayload
bool savePrevCrysPayload
Save the previous crystal payload values for comparison.
Definition: eclBhabhaTAlgorithm.h:58
Belle2::ECL::eclBhabhaTAlgorithm::calibrate
EResult calibrate() override
..Run algorithm on events
Definition: eclBhabhaTAlgorithm.cc:46
Belle2::ECL::eclBhabhaTAlgorithm::crateIDHi
int crateIDHi
Fit crates with crateID0 in the inclusive range [crateIDLo,crateIDHi].
Definition: eclBhabhaTAlgorithm.h:57
Belle2::ECL::eclBhabhaTAlgorithm::collectorName
std::string collectorName
Name of the collector.
Definition: eclBhabhaTAlgorithm.h:63
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECL::eclBhabhaTAlgorithm::eclBhabhaTAlgorithm
eclBhabhaTAlgorithm()
..Constructor
Definition: eclBhabhaTAlgorithm.cc:22
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::ECL::eclBhabhaTAlgorithm::cellIDLo
int cellIDLo
Fit crystals with cellID0 in the inclusive range [cellIDLo,cellIDHi].
Definition: eclBhabhaTAlgorithm.h:50
Belle2::ECL::eclBhabhaTAlgorithm::meanCleanRebinFactor
double meanCleanRebinFactor
Rebinning factor for mean calculation.
Definition: eclBhabhaTAlgorithm.h:52
Belle2::ECL::eclBhabhaTAlgorithm::debugFilenameBase
std::string debugFilenameBase
Name of file with debug output, eclBhabhaTAlgorithm.root by default.
Definition: eclBhabhaTAlgorithm.h:62
Belle2::ECL::eclBhabhaTAlgorithm::meanCleanCutMinFactor
double meanCleanCutMinFactor
After rebinning, create a mask for bins that have values less than meanCleanCutMinFactor times the ma...
Definition: eclBhabhaTAlgorithm.h:53
Belle2::ECL::eclBhabhaTAlgorithm::~eclBhabhaTAlgorithm
~eclBhabhaTAlgorithm()
..Destructor
Definition: eclBhabhaTAlgorithm.h:46