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