Belle II Software  release-05-02-19
eclCosmicEAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christopher Hearty hearty@physics.ubc.ca *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <ecl/calibration/eclCosmicEAlgorithm.h>
13 #include <calibration/CalibrationAlgorithm.h>
14 
15 namespace Belle2 {
20  namespace ECL {
21 
25  class eclCosmicEAlgorithm : public CalibrationAlgorithm {
26  public:
27 
30 
32  virtual ~eclCosmicEAlgorithm() {}
33 
35  int cellIDLo;
36  int cellIDHi;
37  int minEntries;
38  int maxIterations;
39  double tRatioMin;
40  double tRatioMax;
41  bool performFits;
42  bool findExpValues;
43  int storeConst;
48  protected:
49 
51  virtual EResult calibrate() override;
52 
53  private:
54  int fitOK = 16;
55  int iterations = 8;
56  int atLimit = 4;
57  int poorFit = 3;
58  int noPeak = 2;
59  int notFit = -1;
61  };
62  }
64 } // namespace Belle2
65 
66 
Belle2::ECL::eclCosmicEAlgorithm::cellIDLo
int cellIDLo
Parameters to control Novosibirsk fit to signal measured in each crystal.
Definition: eclCosmicEAlgorithm.h:43
Belle2::ECL::eclCosmicEAlgorithm::iterations
int iterations
fit reached max number of iterations, but is useable
Definition: eclCosmicEAlgorithm.h:63
Belle2::ECL::eclCosmicEAlgorithm::atLimit
int atLimit
a parameter is at the limit; fit not useable
Definition: eclCosmicEAlgorithm.h:64
Belle2::ECL::eclCosmicEAlgorithm::~eclCosmicEAlgorithm
virtual ~eclCosmicEAlgorithm()
Destructor.
Definition: eclCosmicEAlgorithm.h:40
Belle2::ECL::eclCosmicEAlgorithm::poorFit
int poorFit
low chi square; fit not useable
Definition: eclCosmicEAlgorithm.h:65
Belle2::ECL::eclCosmicEAlgorithm::noPeak
int noPeak
Novosibirsk component of fit is negligible; fit not useable.
Definition: eclCosmicEAlgorithm.h:66
Belle2::ECL::eclCosmicEAlgorithm::eclCosmicEAlgorithm
eclCosmicEAlgorithm()
Constructor.
Definition: eclCosmicEAlgorithm.cc:41
Belle2::ECL::eclCosmicEAlgorithm::cellIDHi
int cellIDHi
Last cellID to be fit.
Definition: eclCosmicEAlgorithm.h:44
Belle2::ECL::eclCosmicEAlgorithm::storeConst
int storeConst
controls which values are written to the database.
Definition: eclCosmicEAlgorithm.h:51
Belle2::ECL::eclCosmicEAlgorithm::tRatioMax
double tRatioMax
Fit range is adjusted so that fit at upper endpoint is between tRatioMin and tRatioMax of peak.
Definition: eclCosmicEAlgorithm.h:48
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECL::eclCosmicEAlgorithm::fitOK
int fitOK
fit is OK
Definition: eclCosmicEAlgorithm.h:62
Belle2::ECL::eclCosmicEAlgorithm::maxIterations
int maxIterations
no more than maxIteration iterations
Definition: eclCosmicEAlgorithm.h:46
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::ECL::eclCosmicEAlgorithm::minEntries
int minEntries
All crystals to be fit must have at least minEntries events in the fit range.
Definition: eclCosmicEAlgorithm.h:45
Belle2::ECL::eclCosmicEAlgorithm::performFits
bool performFits
if false, input histograms are copied to output, but no fits are done.
Definition: eclCosmicEAlgorithm.h:49
Belle2::ECL::eclCosmicEAlgorithm::findExpValues
bool findExpValues
if true, fits are used to find expected energy deposit for each crystal instead of the calibration co...
Definition: eclCosmicEAlgorithm.h:50
Belle2::ECL::eclCosmicEAlgorithm::tRatioMin
double tRatioMin
Fit range is adjusted so that fit at upper endpoint is between tRatioMin and tRatioMax of peak.
Definition: eclCosmicEAlgorithm.h:47
Belle2::ECL::eclCosmicEAlgorithm::calibrate
virtual EResult calibrate() override
Run algorithm on events.
Definition: eclCosmicEAlgorithm.cc:49
Belle2::ECL::eclCosmicEAlgorithm::notFit
int notFit
no fit performed
Definition: eclCosmicEAlgorithm.h:67