Extending period for DCS DPs query to the time when the run number was created
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 14:54:35 +0000 (14:54 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 14:54:35 +0000 (14:54 +0000)
(minus 3 mins of offset)

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

index 0f5a1b5..40c2620 100644 (file)
@@ -2037,12 +2037,16 @@ TMap* AliShuttle::GetValueSet(const char* host, Int_t port, const TSeqCollection
        TMap* result = 0;
        if (type == kAlias)
        {
-               result = client.GetAliasValues(entries, GetCurrentStartTime()-offset, 
+               //result = client.GetAliasValues(entries, GetCurrentStartTime()-offset, 
+               //      GetCurrentEndTime()+offset);
+               result = client.GetAliasValues(entries, GetCurrentTimeCreated()-offset, 
                        GetCurrentEndTime()+offset);
        } 
        else if (type == kDP)
        {
-               result = client.GetDPValues(entries, GetCurrentStartTime()-offset, 
+               //result = client.GetDPValues(entries, GetCurrentStartTime()-offset, 
+               //      GetCurrentEndTime()+offset);
+                       result = client.GetDPValues(entries, GetCurrentTimeCreated()-offset, 
                        GetCurrentEndTime()+offset);
        }
 
@@ -2804,6 +2808,15 @@ 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
index a32de38..ae83baf 100644 (file)
@@ -51,6 +51,7 @@ 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 fcedb17..a9c64fc 100644 (file)
@@ -38,6 +38,7 @@ public:
        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();}
        Bool_t GetECSSuccess() const {TString tmp(GetRunParameter("ecs_success")); return (Bool_t) tmp.Atoi();}
 
 //     void SetRun(Int_t run) {fRun=run;}