const Int_t startTimeGRP = grp->GetTimeStart();
const Int_t stopTimeGRP = grp->GetTimeEnd();
+ //
+ // In case we use a generated GRP we cannot make use of the start time and end time information
+ // therefore we cannot calculate proper HV information and will skip this
+ //
+ if (startTimeGRP==0 && stopTimeGRP==0) {
+ AliWarning("Using a generated GRP with 'GetTimeStart()' and 'GetTimeEnd()' == 0. Cannot calculate HV information.");
+ return;
+ }
+
//
// check active state by analysing the scalers
//