Belle II Software  release-05-02-19
TOPCommonT0LLAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * *
6  * Author: The Belle II Collaboration *
7  * Contributors: Marko Staric *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #pragma once
13 #include <calibration/CalibrationAlgorithm.h>
14 
15 namespace Belle2 {
20  namespace TOP {
21 
26  class TOPCommonT0LLAlgorithm : public CalibrationAlgorithm {
27  public:
28 
31 
33  virtual ~TOPCommonT0LLAlgorithm() {}
34 
39  void setMinError(double minError) {m_minError = minError;}
40 
41  private:
42 
46  virtual EResult calibrate() final;
47 
48  // algorithm parameters
49  double m_minError = 0.020;
51  // ntuple variables
52  int m_expNo = 0;
53  int m_runNo = 0;
54  int m_runLast = 0;
55  float m_fittedOffset = 0;
56  float m_offset = 0;
57  float m_offsetError = 0;
58  float m_errorScaling = 1;
59  int m_numTracks = 0;
60  int m_numEvents = 0;
61  int m_fitStatus = -1;
63  };
64 
65  } // end namespace TOP
67 } // end namespace Belle2
Belle2::TOP::TOPCommonT0LLAlgorithm::setMinError
void setMinError(double minError)
Sets minimal common T0 uncertainty to declare this calibration as c_OK.
Definition: TOPCommonT0LLAlgorithm.h:48
Belle2::TOP::TOPCommonT0LLAlgorithm::TOPCommonT0LLAlgorithm
TOPCommonT0LLAlgorithm()
Constructor.
Definition: TOPCommonT0LLAlgorithm.cc:35
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOP::TOPCommonT0LLAlgorithm::calibrate
virtual EResult calibrate() final
algorithm implementation
Definition: TOPCommonT0LLAlgorithm.cc:42
Belle2::TOP::TOPCommonT0LLAlgorithm::m_errorScaling
float m_errorScaling
factor used for scaling the error
Definition: TOPCommonT0LLAlgorithm.h:67
Belle2::TOP::TOPCommonT0LLAlgorithm::~TOPCommonT0LLAlgorithm
virtual ~TOPCommonT0LLAlgorithm()
Destructor.
Definition: TOPCommonT0LLAlgorithm.h:42
Belle2::TOP::TOPCommonT0LLAlgorithm::m_runNo
int m_runNo
first run number
Definition: TOPCommonT0LLAlgorithm.h:62
Belle2::TOP::TOPCommonT0LLAlgorithm::m_fitStatus
int m_fitStatus
fit status (0 = OK)
Definition: TOPCommonT0LLAlgorithm.h:70
Belle2::TOP::TOPCommonT0LLAlgorithm::m_runLast
int m_runLast
last run number
Definition: TOPCommonT0LLAlgorithm.h:63
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::TOP::TOPCommonT0LLAlgorithm::m_numTracks
int m_numTracks
number of tracks used
Definition: TOPCommonT0LLAlgorithm.h:68
Belle2::TOP::TOPCommonT0LLAlgorithm::m_offsetError
float m_offsetError
error on fitted offset
Definition: TOPCommonT0LLAlgorithm.h:66
Belle2::TOP::TOPCommonT0LLAlgorithm::m_numEvents
int m_numEvents
number of events used
Definition: TOPCommonT0LLAlgorithm.h:69
Belle2::TOP::TOPCommonT0LLAlgorithm::m_minError
double m_minError
minimal commonT0 uncertainty [ns] to declare c_OK
Definition: TOPCommonT0LLAlgorithm.h:58
Belle2::TOP::TOPCommonT0LLAlgorithm::m_expNo
int m_expNo
experiment number
Definition: TOPCommonT0LLAlgorithm.h:61
Belle2::TOP::TOPCommonT0LLAlgorithm::m_offset
float m_offset
wrap-around of fitted offset (= common T0)
Definition: TOPCommonT0LLAlgorithm.h:65
Belle2::TOP::TOPCommonT0LLAlgorithm::m_fittedOffset
float m_fittedOffset
fitted offset
Definition: TOPCommonT0LLAlgorithm.h:64