Updated ldap configuration files for TOF and schema
[u/mrichter/AliRoot.git] / SHUTTLE / schema_prod / TestDPs.C
CommitLineData
aa9a217f 1void TestDPs(const char* detector, int tsFrom, int tsTo)
f123b6d9 2{
aa9a217f 3 // Query amanda for DPs for detector from timestamp tsFrom to tsTo
4 //
f123b6d9 5 gSystem->Load("libRLDAP.so");
6 gSystem->Load("libMonaLisa");
7 gSystem->Load("libSHUTTLE");
8
9 AliDCSClient client("alidcsamanda.cern.ch",1337,1000,500,100);
10
11 AliShuttleConfig config("pcalishuttle01.cern.ch", 389, "", "", "o=shuttle_prod,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());
aa9a217f 17 client.GetAliasValues(list, tsFrom, tsTo, i, i+1);
f123b6d9 18 }
19}