#include "TMath.h"
#include "TString.h"
+#include <limits.h>
+
//-----------------------------------------------------------------------------
/// \class AliMUONCalibParamNF
///
/// \author Laurent Aphecetche
//-----------------------------------------------------------------------------
+using std::cout;
+using std::endl;
/// \cond CLASSIMP
ClassImp(AliMUONCalibParamNF)
/// \endcond
{
/// Copy *this to destination
- const TObject& o = static_cast<const TObject&>(*this);
- o.Copy(destination);
+ TObject::Copy(destination);
delete[] destination.fValues;
destination.fN = fN;
/// Return the value as an int, by rounding the internal float value.
Float_t v = ValueAsFloat(i,j);
+
+ if ( v >= Float_t(INT_MAX) ) {
+ AliErrorStream()
+ << "Cannot convert value " << v << " to Int_t." << endl;
+ return 0;
+ }
+
return TMath::Nint(v);
}