Belle II Software development
BoostVectorAlgorithm.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
11#include <calibration/CalibrationAlgorithm.h>
12
13namespace Belle2 {
22 public:
23
26
29
31 void setOuterLoss(const std::string& loss) { m_lossFunctionOuter = loss; }
32
34 void setInnerLoss(const std::string& loss) { m_lossFunctionInner = loss; }
35
36 protected:
37
39 virtual EResult calibrate() override;
40
41 private:
43 TString m_lossFunctionOuter = "pow(rawTime - 8.0, 2) + 10 * pow(maxGap, 2)";
44
46 TString m_lossFunctionInner = "pow(rawTime - 8.0, 2) + 10 * pow(maxGap, 2)";
47 };
49} // namespace Belle2
50
51
Class implementing BoostVector calibration algorithm.
virtual ~BoostVectorAlgorithm()
Destructor.
BoostVectorAlgorithm()
Constructor set the prefix to BoostVectorCollector.
TString m_lossFunctionOuter
Outer loss function (for calibration intervals of BoostVector spread parameters)
void setInnerLoss(const std::string &loss)
Set inner loss function (for calibration subintervals)
void setOuterLoss(const std::string &loss)
Set outer loss function (for calibration intervals)
virtual EResult calibrate() override
Run algo on data.
TString m_lossFunctionInner
Inner loss function (for calibraion subintervals of mean BoostVector values)
Base class for calibration algorithms.
EResult
The result of calibration.
Abstract base class for different kinds of events.