#include "TMath.h"
#include "TString.h"
+#include <limits.h>
+
//-----------------------------------------------------------------------------
/// \class AliMUONCalibParamNF
///
/// 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);
}