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 0f5a1b53f3955d1ed5e9eb0492ab7c5e8f133f95..40c2620abe41f02b3d8c716e05705a9594285014 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 a32de38414cedf5463f6c35d040749319778b3e5..ae83baf73c470bda68439a9ebeebb17b53076f86 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 fcedb17f1e35f8967d5ce8c10b73b9bdd97fe9fa..a9c64fc12dcd3b8c86dd7ca47974c720d03c6e70 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;}