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 // $Id: EtaDepResolution.h,v 1.1 2011/05/26 09:46:53 mseidel Exp $
3 //
4 // CMSSW File : interface/EtaDepResolution.h
5 // Original Author : Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
6 // Purpose : Hold on to eta-dependent resolution.
7 // Return Vector_Resolution as a function of eta.
8 // Does not assume symmetry between +/- eta.
9 // The interpretation of eta (physics or detector) is
10 // left to user's implementation.
11 //
12 
33 #ifndef HITFIT_ETA_DEP_RESOLUTION
34 #define HITFIT_ETA_DEP_RESOLUTION
35 
39 
40 namespace hitfit {
41 
89 
90 private:
91 
95  std::vector<EtaDepResElement> _EtaDepResElement;
96 
106  std::vector<EtaDepResElement>::const_iterator FindResolution(double& eta) const;
107 
108 public:
109 
113  void sort();
114 
120 
121 
128  EtaDepResolution(const std::string& default_file);
129 
134 
143 
152 
161  bool CheckNoOverlap(const std::vector<EtaDepResElement>& v);
162 
166  const double EtaMin() const;
167 
171  const double EtaMax() const;
172 
181  const bool CheckEta(double eta) const;
182 
192 
200  Vector_Resolution GetResolution(double& eta) const;
201 
202 
212 
219  const std::vector<EtaDepResElement> GetEtaDepResElement() const;
220 
221 };
222 
223 } // namespace hitfit
224 #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 ...