]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding script to retrieve all datapoints for testing purposes
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 May 2008 15:50:33 +0000 (15:50 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 May 2008 15:50:33 +0000 (15:50 +0000)
SHUTTLE/schema/TestDPs.C [new file with mode: 0644]
SHUTTLE/schema/checkAll.sh [new file with mode: 0755]

diff --git a/SHUTTLE/schema/TestDPs.C b/SHUTTLE/schema/TestDPs.C
new file mode 100644 (file)
index 0000000..36eb359
--- /dev/null
@@ -0,0 +1,19 @@
+void TestDPs(const char* detector, int tsFrom, int tsTo)
+{
+       // Query amanda for DPs for detector from timestamp tsFrom to tsTo
+       //
+       gSystem->Load("libRLDAP.so");
+       gSystem->Load("libMonaLisa");
+       gSystem->Load("libSHUTTLE");
+
+       AliDCSClient client("alidcsamanda.cern.ch",1337,1000,500,4000);
+
+       AliShuttleConfig config("pcalishuttle01.cern.ch", 389, "", "", "o=shuttle,dc=cern,dc=ch");
+
+       TObjArray* list = config.GetDCSAliases(detector, 0);
+       for (Int_t i=0; i<list->GetEntries(); i++)
+       {
+         //Printf("%s", list->At(i)->GetName());
+         client.GetAliasValues(list, tsFrom, tsTo, i, i+1);
+       }
+}
diff --git a/SHUTTLE/schema/checkAll.sh b/SHUTTLE/schema/checkAll.sh
new file mode 100755 (executable)
index 0000000..7140672
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+export DETS="ACO EMC FMD HMP MCH MTR PHS CPV PMD SPD SDD SSD TOF TPC TRD T00 V00 ZDC GRP"
+
+for I in $DETS
+do
+        echo $I
+       aliroot -b -q TestDPs.C\(\"$I\",1210083077,1210083078\) > $I.out 2>&1
+done
+