--- calo/flight/CaloProfile/src/CaloProfile.cpp 2009/08/12 14:43:35 1.9 +++ calo/flight/CaloProfile/src/CaloProfile.cpp 2009/08/12 14:57:00 1.10 @@ -1003,6 +1003,10 @@ printf(" ERROR, the input formula must contain \"t\"\n"); return 0.; }; + if ( tmax != tmax ){ + printf(" ERROR, tmax is nan! \n"); + return 0.; + }; TString g=Form("%f",tmax); TString *ts= new TString(""); ts->Prepend(s.Data());