]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Requesting LHC Clock Phase BPTX values to be between time_created and DAQ_time_end...
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Aug 2010 12:24:49 +0000 (12:24 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Aug 2010 12:24:49 +0000 (12:24 +0000)
DAQ_time_start and DAQ_time_end (see bug. #70989 at https://savannah.cern.ch/bugs/index.php?70989).

STEER/AliGRPPreprocessor.cxx

index 52820ed7c1f04033b38dcf878c61574aa7fe629b..69b80e15ee4e71b97d18c207d944c94a0d438f0f 100644 (file)
@@ -2841,11 +2841,14 @@ AliLHCClockPhase* AliGRPPreprocessor::ProcessLHCClockPhase(TObjArray *beam1phase
     return NULL;
   }
   else{
+    TString timeCreatedStr = GetRunParameter("time_created");
+    Double_t timeCreated = timeCreatedStr.Atof();
     Double_t prevPhase = 0;
     for (Int_t i = 0; i < nCounts; i++){
       AliDCSArray *dcs = (AliDCSArray*)beam1phase->At(i);
       if (dcs){
-       if (dcs->GetTimeStamp()>=timeStart && dcs->GetTimeStamp()<=timeEnd) {
+             //if (dcs->GetTimeStamp()>=timeStart && dcs->GetTimeStamp()<=timeEnd) {
+             if (dcs->GetTimeStamp()>=timeCreated && dcs->GetTimeStamp()<=timeEnd) {
          if ((i == 0) || (i == (nCounts-1)) ||
              !foundBeam1Phase ||
              (TMath::Abs(dcs->GetDouble(0)-prevPhase) > threshold)) {