Belle II Software  release-05-02-19
InvariantMassAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2020 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Radek Zlebcik *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <calibration/CalibrationAlgorithm.h>
14 
15 namespace Belle2 {
23  class InvariantMassAlgorithm : public CalibrationAlgorithm {
24  public:
25 
28 
30  virtual ~InvariantMassAlgorithm() {}
31 
33  void setOuterLoss(const std::string& loss) { m_lossFunctionOuter = loss; }
34 
36  void setInnerLoss(const std::string& loss) { m_lossFunctionInner = loss; }
37 
38  protected:
39 
41  virtual EResult calibrate() override;
42 
43  private:
45  TString m_lossFunctionOuter = "pow(rawTime - 2.0, 2) + 10 * pow(maxGap, 2)";
46 
48  TString m_lossFunctionInner = "pow(rawTime - 0.5, 2) + 10 * pow(maxGap, 2)";
49  };
51 } // namespace Belle2
52 
Belle2::InvariantMassAlgorithm::~InvariantMassAlgorithm
virtual ~InvariantMassAlgorithm()
Destructor.
Definition: InvariantMassAlgorithm.h:38
Belle2::InvariantMassAlgorithm::m_lossFunctionInner
TString m_lossFunctionInner
Inner loss function (for calibration subintervals with constant InvariantMass)
Definition: InvariantMassAlgorithm.h:56
Belle2::InvariantMassAlgorithm::calibrate
virtual EResult calibrate() override
Run algo on data.
Definition: InvariantMassAlgorithm.cc:50
Belle2::InvariantMassAlgorithm::InvariantMassAlgorithm
InvariantMassAlgorithm()
Constructor set the prefix to BoostVectorCollector.
Definition: InvariantMassAlgorithm.cc:27
Belle2::InvariantMassAlgorithm::m_lossFunctionOuter
TString m_lossFunctionOuter
Outer loss function (for calibration intervals with constant InvarinatMass spread)
Definition: InvariantMassAlgorithm.h:53
Belle2::InvariantMassAlgorithm::setOuterLoss
void setOuterLoss(const std::string &loss)
Set outer loss function (for calibration intervals)
Definition: InvariantMassAlgorithm.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::InvariantMassAlgorithm::setInnerLoss
void setInnerLoss(const std::string &loss)
Set inner loss function (for calibration subintervals)
Definition: InvariantMassAlgorithm.h:44