]> git.uio.no Git - u/mrichter/AliRoot.git/blob - SHUTTLE/DCSClient/macros/TestMultialiases.C
.so cleanup: more gSystem->Load()
[u/mrichter/AliRoot.git] / SHUTTLE / DCSClient / macros / TestMultialiases.C
1 void TestMultialiases(){
2 // Simple test for the multi request query
3
4 gSystem->Load("$ALICE_ROOT/SHUTTLE/DCSClient/AliDCSClient");
5  AliDCSClient client("aldcs053.cern.ch",4242,1000,5,100);
6
7 //TObjArray *arr = new TObjArray();
8 //arr->SetOwner(1);
9 //client.GetAliasValues("tpc_PT_322.Temperature", 1180686465, 1180686575, arr);
10
11
12
13 TList list;
14 list.Add(new TObjString("tof_hv_vp_00"));
15 list.Add(new TObjString("tof_hv_vp_01"));
16 list.Add(new TObjString("tof_hv_vp_02"));
17 list.Add(new TObjString("tof_hv_vp_03"));
18 list.Add(new TObjString("tof_hv_vp_04"));
19
20 TMap *map = client.GetAliasValues(&list, 1180586575, 1180686575, 0, 5);
21
22 TIter iter(map);
23 TObjString *objstr=0;
24
25 while(objstr = dynamic_cast<TObjString*>(iter.Next())){
26
27    cout << objstr->GetName() << endl;
28    TObjArray *arr = map->GetValue(objstr->GetName());   
29
30    cout << "N of values: " << arr->GetEntries() << endl;
31    //arr->Print(); 
32 }
33
34
35 }
36