Belle II Software development
eclCosmicEAlgorithm.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
14namespace Belle2 {
19 namespace ECL {
20
25 public:
26
29
32
38 double tRatioMin;
39 double tRatioMax;
47 protected:
48
50 virtual EResult calibrate() override;
51
52 private:
53 int fitOK = 16;
54 int iterations = 8;
55 int atLimit = 4;
56 int poorFit = 3;
57 int noPeak = 2;
58 int notFit = -1;
60 };
61 }
63} // namespace Belle2
64
65
Base class for calibration algorithms.
EResult
The result of calibration.
double tRatioMin
Fit range is adjusted so that fit at upper endpoint is between tRatioMin and tRatioMax of peak.
int poorFit
low chi square; fit not useable
int iterations
fit reached max number of iterations, but is useable
int storeConst
controls which values are written to the database.
bool performFits
if false, input histograms are copied to output, but no fits are done.
int cellIDHi
Last cellID to be fit.
int cellIDLo
Parameters to control Novosibirsk fit to signal measured in each crystal.
bool findExpValues
if true, fits are used to find expected energy deposit for each crystal instead of the calibration co...
int minEntries
All crystals to be fit must have at least minEntries events in the fit range.
virtual ~eclCosmicEAlgorithm()
Destructor.
virtual EResult calibrate() override
Run algorithm on events.
int noPeak
Novosibirsk component of fit is negligible; fit not useable.
int atLimit
a parameter is at the limit; fit not useable
int maxIterations
no more than maxIteration iterations
double tRatioMax
Fit range is adjusted so that fit at upper endpoint is between tRatioMin and tRatioMax of peak.
Abstract base class for different kinds of events.