18 const float undef = -999;
23 std::stringstream
ss(
line);
31 <<
"wrong file format, file name " <<
filename_ << std::endl;
58 printf(
"EffectiveAreas: source file %s\n",
filename_.c_str());
59 printf(
" eta_min eta_max effective area\n");
71 <<
"found no effective area constans in the file " <<
filename_ << std::endl;
78 <<
"eta ranges improperly defined (min>max) in the file" <<
filename_ << std::endl;
85 <<
"eta ranges improperly defined (disjointed) in the file " <<
filename_ << std::endl;
92 <<
"effective area values are too large or negative in the file" <<
filename_ << std::endl;
void printEffectiveAreas() const
EffectiveAreas(const std::string &filename)
std::vector< float > absEtaMax_
std::vector< float > effectiveAreaValues_
Abs< T >::type abs(const T &t)
const float getEffectiveArea(float eta) const
std::vector< float > absEtaMin_
void checkConsistency() const
const std::string filename_