SND@LHC Software
|
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. | |
double | getLimitSigned (StepLimitType type) const |
std::pair< StepLimitType, double > | getLowestLimit (double margin=1.E-3) const |
Get the lowest limit. | |
double | getLowestLimitVal (double margin=1.E-3) const |
Get the unsigned numerical value of the lowest limit. | |
double | getLowestLimitSignedVal (double margin=1.E-3) const |
Get the numerical value of the lowest limit, signed with stepSign_. | |
char | getStepSign () const |
void | reduceLimit (StepLimitType type, double value) |
absolute of value will be taken! If limit is already lower, it will stay. | |
void | setLimit (StepLimitType type, double value) |
absolute of value will be taken! If limit is already lower, it will be set to value anyway. | |
void | setStepSign (char signedVal) |
sets stepSign_ to sign of signedVal | |
void | setStepSign (double signedVal) |
sets stepSign_ to sign of signedVal | |
void | removeLimit (StepLimitType type) |
void | reset () |
void | Print () |
Private Attributes | |
std::vector< double > | limits_ |
signed char | stepSign_ |
Static Private Attributes | |
static const double | maxLimit_ = 99.E99 |
Helper to store different limits on the stepsize for the RKTRackRep.
Definition at line 54 of file StepLimits.h.
|
inline |
Definition at line 57 of file StepLimits.h.
|
inline |
Get limit of type. If that limit has not yet been set, return max double value.
Definition at line 63 of file StepLimits.h.
|
inline |
Definition at line 64 of file StepLimits.h.
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>.
Definition at line 44 of file StepLimits.cc.
|
inline |
Get the numerical value of the lowest limit, signed with stepSign_.
Definition at line 80 of file StepLimits.h.
double genfit::StepLimits::getLowestLimitVal | ( | double | margin = 1.E-3 | ) | const |
Get the unsigned numerical value of the lowest limit.
Definition at line 65 of file StepLimits.cc.
|
inline |
Definition at line 84 of file StepLimits.h.
StepLimits & genfit::StepLimits::operator= | ( | const StepLimits & | other | ) |
Definition at line 33 of file StepLimits.cc.
void genfit::StepLimits::Print | ( | ) |
Definition at line 116 of file StepLimits.cc.
void genfit::StepLimits::reduceLimit | ( | StepLimitType | type, |
double | value | ||
) |
absolute of value will be taken! If limit is already lower, it will stay.
Definition at line 84 of file StepLimits.cc.
|
inline |
Definition at line 95 of file StepLimits.h.
void genfit::StepLimits::reset | ( | ) |
Definition at line 108 of file StepLimits.cc.
|
inline |
absolute of value will be taken! If limit is already lower, it will be set to value anyway.
Definition at line 89 of file StepLimits.h.
void genfit::StepLimits::setStepSign | ( | char | signedVal | ) |
sets stepSign_ to sign of signedVal
Definition at line 93 of file StepLimits.cc.
void genfit::StepLimits::setStepSign | ( | double | signedVal | ) |
sets stepSign_ to sign of signedVal
Definition at line 100 of file StepLimits.cc.
|
private |
Definition at line 101 of file StepLimits.h.
|
staticprivate |
Definition at line 103 of file StepLimits.h.
|
private |
Definition at line 102 of file StepLimits.h.