From: wiechula Date: Mon, 8 Sep 2014 12:44:49 +0000 (+0200) Subject: Skip chamber HV analysis for chamber deactivation in case no valid start and end... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=5a585aa46507d07cb9b82a850c05e6042658ff30;p=u%2Fmrichter%2FAliRoot.git Skip chamber HV analysis for chamber deactivation in case no valid start and end time are provided by the GRP (auto-generated GRP) --- diff --git a/TPC/Base/AliTPCcalibDB.cxx b/TPC/Base/AliTPCcalibDB.cxx index d1109160d03..b59ea2a10e3 100644 --- a/TPC/Base/AliTPCcalibDB.cxx +++ b/TPC/Base/AliTPCcalibDB.cxx @@ -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 //