test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EtaDepResolution.h
Go to the documentation of this file.
1 //
2 //
3 // CMSSW File : interface/EtaDepResolution.h
4 // Original Author : Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
5 // Purpose : Hold on to eta-dependent resolution.
6 // Return Vector_Resolution as a function of eta.
7 // Does not assume symmetry between +/- eta.
8 // The interpretation of eta (physics or detector) is
9 // left to user's implementation.
10 //
11 
32 #ifndef HITFIT_ETA_DEP_RESOLUTION
33 #define HITFIT_ETA_DEP_RESOLUTION
34 
38 
39 namespace hitfit {
40 
88 
89 private:
90 
94  std::vector<EtaDepResElement> _EtaDepResElement;
95 
105  std::vector<EtaDepResElement>::const_iterator FindResolution(double& eta) const;
106 
107 public:
108 
112  void sort();
113 
119 
120 
127  EtaDepResolution(const std::string& default_file);
128 
133 
142 
151 
160  bool CheckNoOverlap(const std::vector<EtaDepResElement>& v);
161 
165  const double EtaMin() const;
166 
170  const double EtaMax() const;
171 
180  const bool CheckEta(double eta) const;
181 
191 
199  Vector_Resolution GetResolution(double& eta) const;
200 
201 
211 
218  const std::vector<EtaDepResElement> GetEtaDepResElement() const;
219 
220 };
221 
222 } // namespace hitfit
223 #endif // not #ifndef HITFIT_ETA_DEP_RESOLUTION
Calculate and represent resolution for a vector of momentum , pseudorapidity , and azimuthal angle ...
const double EtaMax() const
Return the upper limit of the valid -range.
std::vector< EtaDepResElement >::size_type Read(const std::string &default_file)
Read the -dependent resolution information from an ASCII text file.
const std::vector< EtaDepResElement > GetEtaDepResElement() const
Access the internal list of -dependent resolution elements.
A lightweight implementation of the Defaults interface that uses simple ASCII text files...
std::vector< EtaDepResElement >::const_iterator FindResolution(double &eta) const
Internal method to return the corresponding -dependent resolution element for a given value...
Represent a resolution and an range in which the resolution is valid.
T eta() const
bool CheckNoOverlap(const std::vector< EtaDepResElement > &v)
Check for non-overlapping -range between -dependent resolution elements in a list.
uint16_t size_type
Vector_Resolution GetResolution(double &eta) const
Return the corresponding resolution for a value of .
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
const double EtaMin() const
Return the lower limit of the valid -range.
std::vector< EtaDepResElement > _EtaDepResElement
Vector_Resolution operator()(double &eta)
Allow users to call this instance as a function to access the corresponding resolution for an input v...
EtaDepResolution()
Default constructor, instantiate an EtaDepResolution object with empty list of -dependent resolution ...
Define a concrete interface for getting parameter settings from an ASCII text file.
const bool CheckEta(double eta) const
Check is an input value is within the valid -range of this instance.
Hold on to an element of -dependent resolution object, namely a resolution and range in which the r...
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...