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