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
34 void setMaxRQE(double rqe) {m_maxRQE = rqe;}
35
40 void setMaxErrorRQE(double err) {m_maxErrorRQE = err;}
41
42 private:
43
47 virtual EResult calibrate() final;
48
54 static double getEqualizingValue(int bin);
55
60 static void equalize(TH1F* h);
61
69 static double getNominalYield(int slot, int row, int col);
70
77 static double getMuonCorrection(const TH1F* h_mu, int row);
78
79 double m_maxRQE = 2.0;
80 double m_maxErrorRQE = 0.1;
81
82 };
83
84 } // end namespace TOP
86} // 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(....
static void equalize(TH1F *h)
Equalize alpha ratio histogram.
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.
void setMaxRQE(double rqe)
Sets maximum RQE required for good calibration.
static double getEqualizingValue(int bin)
Returns equalizing value for alpha ratio.
static double getMuonCorrection(const TH1F *h_mu, int row)
Returns photon yield correction factor according to muon local-z distribution.
static double getNominalYield(int slot, int row, int col)
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.