]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/muon_digits.C
Changed default point-size in accordance with the new convention.
[u/mrichter/AliRoot.git] / EVE / alice-macros / muon_digits.C
1 void muon_digits()
2 {
3   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
4
5   rl->LoadDigits("MUON");
6
7   TTree* dt = rl->GetTreeD("MUON", false);
8
9   Alieve::MUONDigitsInfo* di = new Alieve::MUONDigitsInfo();
10   di->SetDTree(dt);
11
12   gStyle->SetPalette(1, 0);
13
14   gReve->DisableRedraw();
15
16   rl->LoadgAlice();
17
18   char name[128];
19   char title[128];
20
21   /* DIGITS */
22
23   for (Int_t iSta = 1; iSta <= 7; iSta++) {
24
25     for (Int_t iCha = 1; iCha <= 2; iCha++) {
26
27       sprintf(name,"M-ST%1dCH%1d/Digits",iSta,iCha);
28
29       Reve::RenderElementList* l = new Reve::RenderElementList(name);
30       
31       if (iSta <= 5) {
32         sprintf(title,"Station %1d chamber %1d (tracking)",iSta,iCha);
33       } else {
34         sprintf(title,"Station %1d chamber %1d (trigger)",iSta,iCha);
35       }
36       
37       l->SetTitle(title);
38       l->SetMainColor((Color_t)4);
39       gReve->AddRenderElement(l);
40     
41       Int_t iChamber = (iSta-1) * 2 + iCha; 
42
43       AliMpDEIterator it;
44       for ( it.First(iChamber-1); ! it.IsDone(); it.Next() ) {
45         
46         Int_t detElemId = it.CurrentDE();
47         
48         for (Int_t iCat = 1; iCat <=2; iCat++) {
49
50           Alieve::MUONModule* m = new Alieve::MUONModule(detElemId, iCat, di, 1, 0, (Color_t)2);
51           gReve->AddRenderElement(l, m);      
52         
53         }
54
55       }
56
57     }
58     
59   }
60   
61   gReve->EnableRedraw();
62
63 }