Merge changes from branches/dev/EVE. This branch was following development in ROOT...
[u/mrichter/AliRoot.git] / EVE / hlt-macros / test_sources.C
1 AliEveHOMERManager* homerM = 0;
2
3 void test_sources()
4 {
5   homerM = new AliEveHOMERManager("./sampleConfig.xml");
6
7   gEve->AddToListTree(homerM, kTRUE);
8
9   homerM->CreateHOMERSourcesList();
10
11   AliEveHOMERSourceList* srcL = new AliEveHOMERSourceList("Sources");
12   srcL->SetManager(homerM);
13   homerM->AddElement(srcL);
14
15   srcL->CreateByType();
16
17   /*
18   TList* srcList = homerM->GetSourceList();
19
20   AliEveHOMERSourceMap* smd = AliEveHOMERSourceMap::Create(AliEveHOMERSourceMap::kSG_ByDet);
21   smd->FillMap(srcList, 1);
22   printf(" **** ByDet  XXX ****\n");
23   smd->PrintXXX();
24
25   AliEveHOMERSourceMap* smt = AliEveHOMERSourceMap::Create(AliEveHOMERSourceMap::kSG_ByType);
26   smt->FillMap(srcList, 1);
27   printf(" **** ByType XXX ****\n");
28   smt->PrintXXX();
29
30   */
31 }