Belle II Software development
TOPPhotonYieldsAlgorithm.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#include <calibration/CalibrationAlgorithm.h>
11#include <TH1F.h>
12
13namespace Belle2 {
18 namespace TOP {
19
25 public:
26
29
32
37 void setMaxRQE(double rqe) {m_maxRQE = rqe;}
38
43 void setMaxErrorRQE(double err) {m_maxErrorRQE = err;}
44
45 private:
46
50 virtual EResult calibrate() final;
51
57 double getEqualizingValue(int bin) const;
58
63 void equalize(TH1F* h) const;
64
72 double getNominalYield(int slot, int row, int col) const;
73
80 double getMuonCorrection(const TH1F* h_mu, int row) const;
81
82 double m_maxRQE = 2.0;
83 double m_maxErrorRQE = 0.1;
84
85 };
86
87 } // end namespace TOP
89} // end namespace Belle2
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
double m_maxErrorRQE
maximal error on RQE required for good calibration
virtual EResult calibrate() final
algorithm implementation
void setMaxErrorRQE(double err)
Sets maximum RQE uncertainty required for good calibration.
double getEqualizingValue(int bin) const
Returns equalizing value for alpha ratio.
void equalize(TH1F *h) const
Equalize alpha ratio histogram.
double getMuonCorrection(const TH1F *h_mu, int row) const
Returns photon yield correction factor according to muon local-z distribution.
void setMaxRQE(double rqe)
Sets maximum RQE required for good calibration.
double getNominalYield(int slot, int row, int col) const
Returns photon yield of nominal QE for given slot and pixel.
double m_maxRQE
maximal RQE required for good calibration
Abstract base class for different kinds of events.