Represent a resolution and an range in which the resolution is valid. More...
#include <EtaDepResElement.h>
Public Member Functions | |
EtaDepResElement (double eta1, double eta2, const Vector_Resolution &res) | |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit. More... | |
EtaDepResElement (double eta1, double eta2, std::string res) | |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and a string which encoded the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit. More... | |
EtaDepResElement (double eta1, double eta2, const Resolution &p_res, const Resolution &eta_res, const Resolution &phi_res, bool use_et) | |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit. More... | |
const double | EtaMax () const |
Return the lower limit of valid range. More... | |
const double | EtaMin () const |
Return the lower limit of valid range. More... | |
const Vector_Resolution | GetResolution () const |
Access the resolution. More... | |
bool | IsInInterval (const double &eta) const |
Check if an value is within this instance's range. More... | |
bool | IsNotOverlap (const EtaDepResElement &e) const |
Check if this instance does not have overlapping range with another instance. More... | |
bool | IsOnEdge (const double &eta) const |
Check if an value is at the edge/boundary of this instance's valid range. More... | |
bool | IsOnEdge (const EtaDepResElement &e) const |
Check if another instance of EtaDepResElement lies at the edge/boundary of this instance's range. this instance's valid range. A tolerance factor of 1/1000000 is used. More... | |
bool | IsOverlap (const EtaDepResElement &e) const |
Check if this instance has overlapping range with another instance of EtaDepResElement. More... | |
~EtaDepResElement () | |
Static Public Attributes | |
static const int | InverseEtaPrecision = 1000000 |
Constant, the inverse of precision expected. More... | |
Private Member Functions | |
void | SetEta (double eta1, double eta2) |
Private Attributes | |
double | _EtaMax |
double | _EtaMin |
Vector_Resolution | _Vector_Resolution |
Friends | |
bool | operator< (const EtaDepResElement &a, const EtaDepResElement &b) |
Comparison operator, compare two EtaDepResElement instances based on their respective valid ranges. More... | |
std::ostream & | operator<< (std::ostream &s, const EtaDepResElement &e) |
Output stream operator. More... | |
Represent a resolution and an range in which the resolution is valid.
See the documentation for Vector_Resolution and Resolution classes for more details.
Definition at line 61 of file EtaDepResElement.h.
hitfit::EtaDepResElement::EtaDepResElement | ( | double | eta1, |
double | eta2, | ||
const Vector_Resolution & | res | ||
) |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit.
eta1 | Value of in one end/edge/boundary of the valid range. |
eta2 | Value of in the other end/edge/boundary of the valid range. |
res | The resolution. |
Definition at line 32 of file EtaDepResElement.cc.
References HLT_2024v10_cff::eta1, HLT_2024v10_cff::eta2, and SetEta().
hitfit::EtaDepResElement::EtaDepResElement | ( | double | eta1, |
double | eta2, | ||
std::string | res | ||
) |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and a string which encoded the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit.
eta1 | Value of in one end/edge/boundary of the valid range. |
eta2 | Value of in the other end/edge/boundary of the valid range. |
res | The resolution encoded in string. |
Definition at line 36 of file EtaDepResElement.cc.
References HLT_2024v10_cff::eta1, HLT_2024v10_cff::eta2, and SetEta().
hitfit::EtaDepResElement::EtaDepResElement | ( | double | eta1, |
double | eta2, | ||
const Resolution & | p_res, | ||
const Resolution & | eta_res, | ||
const Resolution & | phi_res, | ||
bool | use_et | ||
) |
Construct an instance of EtaDepResElement from the lower limit, upper limit, and the resolution. The constructor will determine automatically which one among the two input s is the lower (upper) limit.
eta1 | Value of in one end of the valid range. |
eta2 | Walue of in the other end of the valid range. |
p_res | The energy/momentum resolution. |
eta_res | The resolution. |
phi_res | The resolution. |
use_et | If true, then the energy/momentum resolution is for transverse component instead for radial component. |
Definition at line 40 of file EtaDepResElement.cc.
References HLT_2024v10_cff::eta1, HLT_2024v10_cff::eta2, and SetEta().
hitfit::EtaDepResElement::~EtaDepResElement | ( | ) |
const double hitfit::EtaDepResElement::EtaMax | ( | ) | const |
Return the lower limit of valid range.
Definition at line 88 of file EtaDepResElement.cc.
References _EtaMax.
const double hitfit::EtaDepResElement::EtaMin | ( | ) | const |
Return the lower limit of valid range.
Definition at line 86 of file EtaDepResElement.cc.
References _EtaMin.
const Vector_Resolution hitfit::EtaDepResElement::GetResolution | ( | ) | const |
Access the resolution.
Definition at line 108 of file EtaDepResElement.cc.
References _Vector_Resolution.
bool hitfit::EtaDepResElement::IsInInterval | ( | const double & | eta | ) | const |
Check if an value is within this instance's range.
eta | The value to be checked. |
Definition at line 96 of file EtaDepResElement.cc.
References _EtaMax, _EtaMin, and PVValHelper::eta.
Referenced by IsOverlap().
bool hitfit::EtaDepResElement::IsNotOverlap | ( | const EtaDepResElement & | e | ) | const |
Check if this instance does not have overlapping range with another instance.
e | The other instance of EtaDepResElement to be checked. |
Definition at line 94 of file EtaDepResElement.cc.
References MillePedeFileConverter_cfg::e, and IsOverlap().
bool hitfit::EtaDepResElement::IsOnEdge | ( | const double & | eta | ) | const |
Check if an value is at the edge/boundary of this instance's valid range.
eta | The value to be checked. |
Definition at line 98 of file EtaDepResElement.cc.
References _EtaMax, _EtaMin, PVValHelper::eta, and InverseEtaPrecision.
bool hitfit::EtaDepResElement::IsOnEdge | ( | const EtaDepResElement & | e | ) | const |
Check if another instance of EtaDepResElement lies at the edge/boundary of this instance's range. this instance's valid range. A tolerance factor of 1/1000000 is used.
e | The value to be checked. |
Definition at line 104 of file EtaDepResElement.cc.
References _EtaMax, _EtaMin, and MillePedeFileConverter_cfg::e.
bool hitfit::EtaDepResElement::IsOverlap | ( | const EtaDepResElement & | e | ) | const |
Check if this instance has overlapping range with another instance of EtaDepResElement.
e | The other instance of EtaDepResElement to be checked. |
Definition at line 90 of file EtaDepResElement.cc.
References MillePedeFileConverter_cfg::e, and IsInInterval().
Referenced by IsNotOverlap().
|
private |
Set the lower and upper limit of the valid eta range.
eta1 | Value of in one end of the valid range. |
eta2 | Value of in the other end of the valid range. |
Definition at line 52 of file EtaDepResElement.cc.
References _EtaMax, _EtaMin, HLT_2024v10_cff::eta1, HLT_2024v10_cff::eta2, and InverseEtaPrecision.
Referenced by EtaDepResElement().
|
friend |
Comparison operator, compare two EtaDepResElement instances based on their respective valid ranges.
a | The first instance of EtaDepResElement to be compared. |
b | The second instance of EtaDepResElement to be compared. |
Definition at line 79 of file EtaDepResElement.cc.
|
friend |
Output stream operator.
s | The output stream to write to. |
e | The instance of EtaDepResElement to be printed. |
Definition at line 110 of file EtaDepResElement.cc.
|
private |
Upper limit of the valid range.
Definition at line 71 of file EtaDepResElement.h.
Referenced by EtaMax(), IsInInterval(), IsOnEdge(), and SetEta().
|
private |
Lower limit of the valid range.
Definition at line 66 of file EtaDepResElement.h.
Referenced by EtaMin(), IsInInterval(), IsOnEdge(), and SetEta().
|
private |
|
static |
Constant, the inverse of precision expected.
Definition at line 234 of file EtaDepResElement.h.
Referenced by IsOnEdge(), and SetEta().