CMS 3D CMS Logo

EtaDepResElement.h
Go to the documentation of this file.
1 //
2 //
3 // CMSSW File : interface/EtaDepResElement.h
4 // Original Author : Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
5 // Purpose : Hold on to an element of eta-dependent resolution.
6 // A class which holds to the information of resolution
7 // and the eta range in which the resolution is valid.
8 //
9 
24 #ifndef HITFIT_ETA_DEP_RES_ELEMENT
25 #define HITFIT_ETA_DEP_RES_ELEMENT
26 
27 #include <iostream>
28 
31 
32 namespace hitfit {
33 
62  private:
66  double _EtaMin;
67 
71  double _EtaMax;
72 
80  void SetEta(double eta1, double eta2);
81 
86 
87  public:
100  EtaDepResElement(double eta1, double eta2, const Vector_Resolution& res);
101 
115  EtaDepResElement(double eta1, double eta2, std::string res);
116 
134  EtaDepResElement(double eta1,
135  double eta2,
136  const Resolution& p_res,
137  const Resolution& eta_res,
138  const Resolution& phi_res,
139  bool use_et);
140 
145 
146  friend bool operator<(const EtaDepResElement& a, const EtaDepResElement& b);
147 
151  const double EtaMin() const;
152 
156  const double EtaMax() const;
157 
168  bool IsOverlap(const EtaDepResElement& e) const;
169 
180  bool IsNotOverlap(const EtaDepResElement& e) const;
181 
191  bool IsInInterval(const double& eta) const;
192 
198  bool IsOnEdge(const double& eta) const;
199 
212  bool IsOnEdge(const EtaDepResElement& e) const;
213 
220  const Vector_Resolution GetResolution() const;
221 
229  friend std::ostream& operator<<(std::ostream& s, const EtaDepResElement& e);
230 
234  static const int InverseEtaPrecision = 1000000; // Precision of 1/1000000
235  };
236 
237 } // namespace hitfit
238 #endif // not #ifndef HITFIT_ETA_DEP_RES_ELEMENT
hitfit::EtaDepResElement::SetEta
void SetEta(double eta1, double eta2)
Definition: EtaDepResElement.cc:52
hitfit
Definition: Base_Constrainer.h:43
hitfit::Vector_Resolution
Definition: Vector_Resolution.h:89
hitfit::EtaDepResElement::IsOnEdge
bool IsOnEdge(const double &eta) const
Check if an value is at the edge/boundary of this instance's valid range.
Definition: EtaDepResElement.cc:98
hitfit::EtaDepResElement::IsInInterval
bool IsInInterval(const double &eta) const
Check if an value is within this instance's range.
Definition: EtaDepResElement.cc:96
hitfit::EtaDepResElement::GetResolution
const Vector_Resolution GetResolution() const
Access the resolution.
Definition: EtaDepResElement.cc:108
hitfit::EtaDepResElement::IsOverlap
bool IsOverlap(const EtaDepResElement &e) const
Check if this instance has overlapping range with another instance of EtaDepResElement.
Definition: EtaDepResElement.cc:90
alignCSCRings.s
s
Definition: alignCSCRings.py:92
hitfit::EtaDepResElement::InverseEtaPrecision
static const int InverseEtaPrecision
Constant, the inverse of precision expected.
Definition: EtaDepResElement.h:234
hitfit::EtaDepResElement::~EtaDepResElement
~EtaDepResElement()
Definition: EtaDepResElement.cc:50
PVValHelper::eta
Definition: PVValidationHelpers.h:69
Vector_Resolution.h
Calculate and represent resolution for a vector of momentum , pseudorapidity , and azimuthal angle .
hitfit::EtaDepResElement::EtaMax
const double EtaMax() const
Return the lower limit of valid range.
Definition: EtaDepResElement.cc:88
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9542
b
double b
Definition: hdecay.h:118
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
hitfit::EtaDepResElement::_EtaMax
double _EtaMax
Definition: EtaDepResElement.h:71
hitfit::EtaDepResElement::_Vector_Resolution
Vector_Resolution _Vector_Resolution
Definition: EtaDepResElement.h:85
a
double a
Definition: hdecay.h:119
hitfit::EtaDepResElement::operator<
friend bool operator<(const EtaDepResElement &a, const EtaDepResElement &b)
Comparison operator, compare two EtaDepResElement instances based on their respective valid ranges.
Definition: EtaDepResElement.cc:79
hitfit::EtaDepResElement::_EtaMin
double _EtaMin
Definition: EtaDepResElement.h:66
res
Definition: Electron.h:6
hitfit::Resolution
Definition: Resolution.h:98
hitfit::EtaDepResElement::IsNotOverlap
bool IsNotOverlap(const EtaDepResElement &e) const
Check if this instance does not have overlapping range with another instance.
Definition: EtaDepResElement.cc:94
hitfit::EtaDepResElement::EtaDepResElement
EtaDepResElement(double eta1, double eta2, const Vector_Resolution &res)
Construct an instance of EtaDepResElement from the lower limit, upper limit, and the resolution....
Definition: EtaDepResElement.cc:32
Defaults_Text.h
Define a concrete interface for getting parameter settings from an ASCII text file.
hitfit::EtaDepResElement::operator<<
friend std::ostream & operator<<(std::ostream &s, const EtaDepResElement &e)
Output stream operator.
Definition: EtaDepResElement.cc:110
hitfit::EtaDepResElement
Represent a resolution and an range in which the resolution is valid.
Definition: EtaDepResElement.h:61
hitfit::EtaDepResElement::EtaMin
const double EtaMin() const
Return the lower limit of valid range.
Definition: EtaDepResElement.cc:86
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37