EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Container to store a single kinematic range. More...
#include <KinematicRange.h>
Public Member Functions | |
KinematicRange () | |
KinematicRange (double min, double max) | |
KinematicRange (const std::pair< double, double > &minMax) | |
KinematicRange (const std::vector< double > &minMax) | |
KinematicRange (const KinematicRange &other) | |
virtual | ~KinematicRange () |
virtual std::string | toString () const |
bool | inRange (double value) const |
const std::pair< double, double > & | getMinMax () const |
double | getMin () const |
double | getMax () const |
void | setMinMax (double min, double max) |
void | setMinMax (const std::pair< double, double > &minMax) |
void | setMinMax (const std::vector< double > &minMax) |
Container to store a single kinematic range.
This class acts as a container to store a single kinematic range.
EPIC::KinematicRange::KinematicRange | ( | ) |
Default constructor.
EPIC::KinematicRange::KinematicRange | ( | double | min, |
double | max | ||
) |
Assignment constructor.
EPIC::KinematicRange::KinematicRange | ( | const std::pair< double, double > & | minMax | ) |
Assignment constructor.
EPIC::KinematicRange::KinematicRange | ( | const std::vector< double > & | minMax | ) |
Assignment constructor.
EPIC::KinematicRange::KinematicRange | ( | const KinematicRange & | other | ) |
Copy constructor.
|
virtual |
Destructor
double EPIC::KinematicRange::getMax | ( | ) | const |
Get max.
double EPIC::KinematicRange::getMin | ( | ) | const |
Get min.
const std::pair< double, double > & EPIC::KinematicRange::getMinMax | ( | ) | const |
Get range.
bool EPIC::KinematicRange::inRange | ( | double | value | ) | const |
Check if value in range: [min, max].
void EPIC::KinematicRange::setMinMax | ( | const std::pair< double, double > & | minMax | ) |
Set range.
void EPIC::KinematicRange::setMinMax | ( | const std::vector< double > & | minMax | ) |
Set range.
void EPIC::KinematicRange::setMinMax | ( | double | min, |
double | max | ||
) |
Set range.