00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef EPROB_HEADER
00010 #define EPROB_HEADER
00011
00012 #include <string>
00013
00014 class EProb
00015 {
00016 public:
00017 EProb();
00018 EProb(const float& Emax);
00019
00021 void init(const float& Emax);
00022
00024 void Clear();
00025
00027 bool Null() const {return (emaxacen <= 0.0);}
00028
00030 bool TooBig(const float& E2, const bool& Centric) const;
00031
00032 std::string format() const;
00033
00034 private:
00035 float emaxacen;
00036 float emaxcentric;
00037 float emaxacen2;
00038 float emaxcentric2;
00039
00040 static const float MAXIMUM_EMAX;
00041 static const float MAXIMUM_EMAX_CENTRIC;
00042 static const float DEFAULT_EMAX;
00043
00044
00045
00046 float CentricEmax(const float& emaxacen) const;
00047
00048 };
00049 #endif