Using DAQ logbook fields time_created and time_completed to set start time and end...
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Mar 2009 16:13:59 +0000 (16:13 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Mar 2009 16:13:59 +0000 (16:13 +0000)
for current run (instead of DAQ_time_start and DAQ_time_end).
Removing getters related to the time_created field (now obsolete).

SHUTTLE/AliShuttle.cxx
SHUTTLE/AliShuttle.h
SHUTTLE/AliShuttleLogbookEntry.h

index 6f5af15..57f97f3 100644 (file)
@@ -2835,16 +2835,6 @@ UInt_t AliShuttle::GetCurrentEndTime() const
        return fLogbookEntry ? fLogbookEntry->GetEndTime() : 0;
 }
 //______________________________________________________________________________________________
-UInt_t AliShuttle::GetCurrentTimeCreated() const
-{
-       //
-       // get current end time from logbook entry
-       //
-
-       return fLogbookEntry ? fLogbookEntry->GetTimeCreated() : 0;
-}
-
-//______________________________________________________________________________________________
 UInt_t AliShuttle::GetCurrentYear() const
 {
        //
@@ -3553,7 +3543,7 @@ UInt_t AliShuttle::GetStartTimeDCSQuery()
        //
        // The call is delegated to AliShuttleInterface
 
-       return GetCurrentTimeCreated()-fConfig->GetDCSQueryOffset();
+       return GetCurrentStartTime()-fConfig->GetDCSQueryOffset();
 }
 //______________________________________________________________________________________________
 UInt_t AliShuttle::GetEndTimeDCSQuery()
index 3b94944..129b8f1 100644 (file)
@@ -51,7 +51,6 @@ public:
        Int_t GetCurrentRun() const;
        UInt_t GetCurrentStartTime() const;
        UInt_t GetCurrentEndTime() const;
-       UInt_t GetCurrentTimeCreated() const;
        UInt_t GetCurrentYear() const;
        
        const char* GetLHCPeriod() const;
index c701e57..5760200 100644 (file)
@@ -36,9 +36,8 @@ public:
        virtual void Copy(TObject& c) const;
 
        Int_t GetRun() const {return fRun;}
-       UInt_t GetStartTime() const  {TString tmp(GetRunParameter("DAQ_time_start")); return tmp.Atoi();}
-       UInt_t GetEndTime() const {TString tmp(GetRunParameter("DAQ_time_end")); return tmp.Atoi();}
-       UInt_t GetTimeCreated() const {TString tmp(GetRunParameter("time_created")); return tmp.Atoi();}
+       UInt_t GetStartTime() const  {TString tmp(GetRunParameter("time_created")); return tmp.Atoi();}
+       UInt_t GetEndTime() const {TString tmp(GetRunParameter("time_completed")); return tmp.Atoi();}
        Bool_t GetECSSuccess() const {TString tmp(GetRunParameter("ecs_success")); return (Bool_t) tmp.Atoi();}
        Bool_t GetDATestMode() const {return fDATestMode;}