Belle II Software development
eclMuMuEAlgorithm.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
23 public:
24
27
29 virtual ~eclMuMuEAlgorithm() {}
30
36 double tRatioMin;
37 double tRatioMax;
46 protected:
47
49 virtual EResult calibrate() override;
50
51 private:
52 int fitOK = 16;
53 int iterations = 8;
54 int noLowerEdge = 5;
55 int atLimit = 4;
56 int poorFit = 3;
57 int notFit = -1;
59 };
60 }
62} // namespace Belle2
63
64
Base class for calibration algorithms.
EResult
The result of calibration.
Calibrate ecl crystals using muon pair events.
double tRatioMin
entries/peak at low edge of fit must be greater than this
int poorFit
low chi square; fit not useable
int iterations
fit reached max number of iterations, but is useable
int noLowerEdge
could not determine lower edge of fit
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.
double lowerEdgeThresh
Lower edge is where the fit = lowerEdgeThresh * peak value.
int cellIDLo
..Parameters to control Novosibirsk fit to energy deposited in each crystal by mu+mu- events
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.
int nToRebin
If fewer entries than this, rebin and fix eta parameter.
virtual EResult calibrate() override
..Run algorithm on events
virtual ~eclMuMuEAlgorithm()
..Destructor
int atLimit
a parameter is at the limit; fit not useable
double tRatioMax
entries/peak at high edge of fit must be greater than this
Abstract base class for different kinds of events.