]> git.uio.no Git - u/mrichter/AliRoot.git/blob - SHUTTLE/schema/TestDPs.C
new shuttle machine
[u/mrichter/AliRoot.git] / SHUTTLE / schema / TestDPs.C
1 void TestDPs(const char* detector, int tsFrom, int tsTo)
2 {
3         // Query amanda for DPs for detector from timestamp tsFrom to tsTo
4         //
5         gSystem->Load("libRLDAP.so");
6         gSystem->Load("libMonaLisa");
7         gSystem->Load("libSHUTTLE");
8
9         AliDCSClient client("alidcsamanda.cern.ch",1337,1000,500,4000);
10
11         AliShuttleConfig config("pcalishuttle02.cern.ch", 389, "", "", "o=shuttle,dc=cern,dc=ch");
12
13         TObjArray* list = config.GetDCSAliases(detector, 0);
14         for (Int_t i=0; i<list->GetEntries(); i++)
15         {
16           //Printf("%s", list->At(i)->GetName());
17           client.GetAliasValues(list, tsFrom, tsTo, i, i+1);
18         }
19 }