 |
Belle II Software
release-05-01-25
|
24 #ifndef genfit_StepLimits_h
25 #define genfit_StepLimits_h
58 : limits_(ENUM_NR_ITEMS, maxLimit_), stepSign_(1) {;}
63 double getLimit(StepLimitType type)
const {
return limits_[type];}
64 double getLimitSigned(StepLimitType type)
const {
75 std::pair<StepLimitType, double>
getLowestLimit(
double margin = 1.E-3)
const;
84 char getStepSign()
const {
return stepSign_;}
89 void setLimit(StepLimitType type,
double value) {limits_[type] = fabs(value);}
95 void removeLimit(StepLimitType type) {limits_[type] = maxLimit_;}
101 std::vector<double> limits_;
102 signed char stepSign_;
103 static const double maxLimit_;
110 #endif // genfit_StepLimits_h
double getLimit(StepLimitType type) const
Get limit of type. If that limit has not yet been set, return max double value.
void setLimit(StepLimitType type, double value)
absolute of value will be taken! If limit is already lower, it will be set to value anyway.
std::pair< StepLimitType, double > getLowestLimit(double margin=1.E-3) const
Get the lowest limit.
Defines for I/O streams used for error and debug printing.
void setStepSign(char signedVal)
sets #stepSign_ to sign of signedVal
double getLowestLimitSignedVal(double margin=1.E-3) const
Get the numerical value of the lowest limit, signed with #stepSign_.
void reduceLimit(StepLimitType type, double value)
absolute of value will be taken! If limit is already lower, it will stay.
Helper to store different limits on the stepsize for the RKTRackRep.
double getLowestLimitVal(double margin=1.E-3) const
Get the unsigned numerical value of the lowest limit.