Storing the timestamp of the second measurement in case the Machine Mode or the
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Mar 2010 14:13:17 +0000 (14:13 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Mar 2010 14:13:17 +0000 (14:13 +0000)
Beam Mode change during the run.

STEER/AliGRPPreprocessor.cxx

index bd9dade..bd45636 100644 (file)
@@ -627,7 +627,8 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
                                        AliDCSArray* beamMode = (AliDCSArray*)beamModeArray->At(0);
                                        TObjString* beamModeString = beamMode->GetStringArray(0);
                                        if (beamModeArray->GetEntries()>1){
-                                               timeBeamMode = beamMode->GetTimeStamp();
+                                               AliDCSArray* beamMode1 = (AliDCSArray*)beamModeArray->At(1);
+                                               timeBeamMode = beamMode1->GetTimeStamp();
                                                AliWarning(Form("The beam mode changed at timestamp %f! Setting it to the first value found and setting MaxTimeLHCValidity",timeBeamMode));
                                        }
                                        AliInfo(Form("LHC State (corresponding to BeamMode) = %s",(beamModeString->String()).Data()));
@@ -649,7 +650,8 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
                                        AliDCSArray* machineMode = (AliDCSArray*)machineModeArray->At(0);
                                        TObjString* machineModeString = machineMode->GetStringArray(0);
                                        if (machineModeArray->GetEntries()>1){
-                                               timeMachineMode = machineMode->GetTimeStamp();
+                                               AliDCSArray* machineMode1 = (AliDCSArray*)machineModeArray->At(1);
+                                               timeMachineMode = machineMode1->GetTimeStamp();
                                                AliWarning(Form("The Machine Mode changed at timestamp %f! Setting it to the first value found and setting MaxTimeLHCValidity",timeMachineMode));
                                        }
                                        AliInfo(Form("Machine Mode = %s",(machineModeString->String()).Data()));