Belle II Software  release-05-02-19
BoostVectorAlgorithm.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 BoostVectorAlgorithm : public CalibrationAlgorithm {
24  public:
25 
28 
30  virtual ~BoostVectorAlgorithm() {}
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 - 8.0, 2) + 10 * pow(maxGap, 2)";
46 
48  TString m_lossFunctionInner = "pow(rawTime - 8.0, 2) + 10 * pow(maxGap, 2)";
49  };
51 } // namespace Belle2
52 
53 
Belle2::BoostVectorAlgorithm::~BoostVectorAlgorithm
virtual ~BoostVectorAlgorithm()
Destructor.
Definition: BoostVectorAlgorithm.h:38
Belle2::BoostVectorAlgorithm::m_lossFunctionInner
TString m_lossFunctionInner
Inner loss function (for calibraion subintervals of mean BoostVector values)
Definition: BoostVectorAlgorithm.h:56
Belle2::BoostVectorAlgorithm::m_lossFunctionOuter
TString m_lossFunctionOuter
Outer loss function (for calibration intervals of BoostVector spread parameters)
Definition: BoostVectorAlgorithm.h:53
Belle2::BoostVectorAlgorithm::setOuterLoss
void setOuterLoss(const std::string &loss)
Set outer loss function (for calibration intervals)
Definition: BoostVectorAlgorithm.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BoostVectorAlgorithm::calibrate
virtual EResult calibrate() override
Run algo on data.
Definition: BoostVectorAlgorithm.cc:45
Belle2::BoostVectorAlgorithm::setInnerLoss
void setInnerLoss(const std::string &loss)
Set inner loss function (for calibration subintervals)
Definition: BoostVectorAlgorithm.h:44
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::BoostVectorAlgorithm::BoostVectorAlgorithm
BoostVectorAlgorithm()
Constructor set the prefix to BoostVectorCollector.
Definition: BoostVectorAlgorithm.cc:27