33 std::vector<EtaDepResElement>::const_iterator
37 for (std::vector<EtaDepResElement>::const_iterator res =
_EtaDepResElement.begin() ;
40 if (res->IsInInterval(eta) || res->IsOnEdge(eta)) {
91 std::ostringstream os_etamin ;
92 std::ostringstream os_etamax ;
93 std::ostringstream os_res ;
95 os_etamin <<
"etadep_etamin" <<
i ;
96 os_etamax <<
"etadep_etamax" <<
i ;
97 os_res <<
"etadep_vecres" <<
i ;
99 if (defs.
exists(os_etamin.str()) &&
100 defs.
exists(os_etamax.str()) &&
101 defs.
exists(os_res.str())) {
103 double etamin = defs.
get_float(os_etamin.str());
104 double etamax = defs.
get_float(os_etamax.str());
135 if (v[
i].IsOverlap(v[
j])) {
182 std::vector<EtaDepResElement>::const_iterator etaDepResEleVecIter =
FindResolution(eta);
184 return etaDepResEleVecIter->GetResolution();
188 message <<
"Error, the given eta value : "
189 << eta <<
" is not inside the valid eta range!" ;
191 throw std::runtime_error(message.str());
201 const std::vector<EtaDepResElement>
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...
virtual bool exists(std::string name) const
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.
bool CheckNoOverlap(const std::vector< EtaDepResElement > &v)
Check for non-overlapping -range between -dependent resolution elements in a list.
Vector_Resolution GetResolution(double &eta) const
Return the corresponding resolution for a value of .
const double EtaMin() const
Return the lower limit of the valid -range.
std::vector< EtaDepResElement > _EtaDepResElement
virtual double get_float(std::string name) const
Vector_Resolution operator()(double &eta)
Allow users to call this instance as a function to access the corresponding resolution for an input v...
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
EtaDepResolution()
Default constructor, instantiate an EtaDepResolution object with empty list of -dependent resolution ...
virtual std::string get_string(std::string name) const
const bool CheckEta(double eta) const
Check is an input value is within the valid -range of this instance.
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...