Belle II Software development
DAFparameters.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#pragma once
9
10#include <TObject.h>
11#include <tuple>
12
13namespace Belle2 {
21 class DAFparameters: public TObject {
22
23 public:
24
29
33 void setDeltaPValue(const float pvalue)
34 {
35 m_DeltaPValue = pvalue;
36 }
40 void setDeltaWeight(const float weight)
41 {
42 m_DeltaWeight = weight;
43 }
47 void setProbabilityCut(const float probabilitycut)
48 {
49 m_ProbabilityCut = probabilitycut;
50 }
56 void setAnnealingScheme(const float temperaturestart, const float temperaturefinal, const int numberofiterations)
57 {
58 m_TemperatureStart = temperaturestart;
59 m_TemperatureFinal = temperaturefinal;
60 m_NumberOfIterations = numberofiterations;
61 }
65 void setMinimumIterations(const int minimumiterations)
66 {
67 m_MinimumIterations = minimumiterations;
68 }
73 void setMaximumIterations(const int maximumiterations)
74 {
75 m_MaximumIterations = maximumiterations;
76 }
80 void setMinimumIterationsForPVal(const int minimumiterationsforpval)
81 {
82 m_MinimumIterationsForPVal = minimumiterationsforpval;
83 }
89 void setMaximumFailedHits(const int maximumfailedhits)
90 {
91 m_MaximumFailedHits = maximumfailedhits;
92 }
93
94
95
98 float getDeltaPValue() const
99 {
100 return m_DeltaPValue;
101 }
104 float getDeltaWeight() const
105 {
106 return m_DeltaWeight;
107 }
110 float getProbabilityCut() const
111 {
112 return m_ProbabilityCut;
113 }
117 std::tuple<float, float, int> getAnnealingScheme() const
118 {
119 return std::tuple<float, float, int>(m_TemperatureStart, m_TemperatureFinal, m_NumberOfIterations);
120 }
124 {
125 return m_MinimumIterations;
126 }
130 {
131 return m_MaximumIterations;
132 }
136 {
138 }
144 {
145 return m_MaximumFailedHits;
146 }
147
148 private:
150 float m_DeltaPValue = 1;
152 float m_DeltaWeight = 0.001;
154 float m_ProbabilityCut = 0.001;
170
171
173 };
175}
The payload containing the DAF parameters.
Definition: DAFparameters.h:21
int getMaximumIterations() const
Get the maximum number of iterations of annealing scheme.
float m_TemperatureStart
The annealing scheme : Start temperature.
std::tuple< float, float, int > getAnnealingScheme() const
Get the start and end temperatures and number of iterations for the annealing scheme returns a tuple ...
float m_DeltaWeight
The DeltaWeight for weights convergence criterion.
ClassDef(DAFparameters, 1)
ClassDef, necessary for ROOT.
int getMaximumFailedHits() const
Get the maximum number of failed hits after which the fit should be cancelled.
float m_TemperatureFinal
End temperature.
void setAnnealingScheme(const float temperaturestart, const float temperaturefinal, const int numberofiterations)
Set the start and end temperatures, and the number of iterations for the annealing scheme.
Definition: DAFparameters.h:56
void setMinimumIterations(const int minimumiterations)
Set the minimum number of iterations for pValue check.
Definition: DAFparameters.h:65
~DAFparameters()
Destructor.
Definition: DAFparameters.h:28
void setMaximumIterations(const int maximumiterations)
Set the maximum number of iterations.
Definition: DAFparameters.h:73
int m_MinimumIterations
The minimum number of iterations of annealing scheme.
int getMinimumIterationsForPVal() const
Get the minimum number of iterations for pValue check.
void setMaximumFailedHits(const int maximumfailedhits)
Set the maximum number of failed hits after which the fit should be cancelled.
Definition: DAFparameters.h:89
int m_MaximumIterations
The maximum number of iterations of annealing scheme.
DAFparameters()
Default constructor.
Definition: DAFparameters.h:26
float getDeltaPValue() const
Get the DeltaPValue for p-value convergence criterion.
Definition: DAFparameters.h:98
void setProbabilityCut(const float probabilitycut)
Set the probability cut for the weight calculation for the hits.
Definition: DAFparameters.h:47
void setDeltaWeight(const float weight)
Set the DeltaWeight for weights convergence criterion.
Definition: DAFparameters.h:40
int m_MinimumIterationsForPVal
The minimum number of iterations for pValue check.
int getMinimumIterations() const
Get the minimum number of iterations of annealing scheme.
int m_NumberOfIterations
Number of iterations.
int m_MaximumFailedHits
The maximum number of failed hits after which the fit should be cancelled.
float m_ProbabilityCut
The probability cut for weight calculation.
float getProbabilityCut() const
Get the probability cut for the weight calculation for the hits.
void setMinimumIterationsForPVal(const int minimumiterationsforpval)
Set the minimum number of iterations for pValue check.
Definition: DAFparameters.h:80
void setDeltaPValue(const float pvalue)
Set the DeltaPValue for p-value convergence criterion.
Definition: DAFparameters.h:33
float m_DeltaPValue
The DeltaPValue for p-value convergence criterion.
float getDeltaWeight() const
Get the DeltaWeight for weight convergence criterion.
Abstract base class for different kinds of events.