Skip to content

Commit

Permalink
Skip chamber HV analysis for chamber deactivation in case no valid st…
Browse files Browse the repository at this point in the history
…art and end time are provided by the GRP (auto-generated GRP)
  • Loading branch information
wiechula authored and shahor02 committed Sep 8, 2014
1 parent c06acd1 commit 5f69107
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 @@ -1646,6 +1646,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 5f69107

Please sign in to comment.