Skip to content

Commit

Permalink
ALIROOT-5618 Skip chamber HV analysis for chamber deactivation in cas…
Browse files Browse the repository at this point in the history
…e no valid start and end time are provided by the GRP (auto-generated GRP)
  • Loading branch information
wiechula authored and hristov committed Sep 9, 2014
1 parent 74f47fd commit bf03027
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TPC/Base/AliTPCcalibDB.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,15 @@ void AliTPCcalibDB::UpdateChamberHighVoltageData()
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
//
Expand Down

0 comments on commit bf03027

Please sign in to comment.