![]() |
PandaRoot
|
Helper to store different limits on the stepsize for the RKTRackRep. More...
#include <StepLimits.h>
Public Member Functions | |
StepLimits () | |
StepLimits & | operator= (const StepLimits &other) |
double | getLimit (StepLimitType type) const |
Get limit of type. If that limit has not yet been set, return max double value. More... | |
double | getLimitSigned (StepLimitType type) const |
std::pair< StepLimitType, double > | getLowestLimit (double margin=1.E-3) const |
Get the lowest limit. More... | |
double | getLowestLimitVal (double margin=1.E-3) const |
Get the unsigned numerical value of the lowest limit. More... | |
double | getLowestLimitSignedVal (double margin=1.E-3) const |
Get the numerical value of the lowest limit, signed with #stepSign_. More... | |
char | getStepSign () const |
void | reduceLimit (StepLimitType type, double value) |
absolute of value will be taken! If limit is already lower, it will stay. More... | |
void | setLimit (StepLimitType type, double value) |
absolute of value will be taken! If limit is already lower, it will be set to value anyway. More... | |
void | setStepSign (char signedVal) |
sets #stepSign_ to sign of signedVal More... | |
void | setStepSign (double signedVal) |
sets #stepSign_ to sign of signedVal More... | |
void | removeLimit (StepLimitType type) |
void | reset () |
void | Print () |
Helper to store different limits on the stepsize for the RKTRackRep.
Definition at line 52 of file StepLimits.h.
|
inline |
|
inline |
Get limit of type. If that limit has not yet been set, return max double value.
Definition at line 60 of file StepLimits.h.
Referenced by getLimitSigned().
|
inline |
Definition at line 61 of file StepLimits.h.
References getLimit(), getLowestLimit(), and getLowestLimitVal().
std::pair<StepLimitType, double> genfit::StepLimits::getLowestLimit | ( | double | margin = 1.E-3 | ) | const |
Get the lowest limit.
If hard limits are there, medium limits can be exceeded by up to margin (default margin is 0.1, i.e. medium limits can be exceeded by up to 10%). If no limit has been set yet, return std::pair<stp_noLimit, std::numeric_limits<double>::max>.
Referenced by getLimitSigned().
|
inline |
Get the numerical value of the lowest limit, signed with #stepSign_.
Definition at line 75 of file StepLimits.h.
References getLowestLimitVal().
double genfit::StepLimits::getLowestLimitVal | ( | double | margin = 1.E-3 | ) | const |
Get the unsigned numerical value of the lowest limit.
Referenced by getLimitSigned(), and getLowestLimitSignedVal().
|
inline |
Definition at line 77 of file StepLimits.h.
References reduceLimit().
StepLimits& genfit::StepLimits::operator= | ( | const StepLimits & | other | ) |
Referenced by StepLimits().
void genfit::StepLimits::Print | ( | ) |
Referenced by removeLimit().
void genfit::StepLimits::reduceLimit | ( | StepLimitType | type, |
double | value | ||
) |
absolute of value will be taken! If limit is already lower, it will stay.
Referenced by getStepSign().
|
inline |
Definition at line 88 of file StepLimits.h.
void genfit::StepLimits::reset | ( | ) |
Referenced by removeLimit().
|
inline |
absolute of value will be taken! If limit is already lower, it will be set to value anyway.
Definition at line 82 of file StepLimits.h.
References fabs(), and setStepSign().
void genfit::StepLimits::setStepSign | ( | char | signedVal | ) |
sets #stepSign_ to sign of signedVal
Referenced by setLimit().
void genfit::StepLimits::setStepSign | ( | double | signedVal | ) |
sets #stepSign_ to sign of signedVal