2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 void pmd_digits(Int_t mode = 0)
12 Bool_t drawBackPolygons = kFALSE;
14 gStyle->SetPalette(1, 0);
23 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
24 rl->LoadDigits("PMD");
25 TTree* pmdt = rl->GetTreeD("PMD", false);
27 // cout << pmdt->GetEntries() << endl;
29 gEve->DisableRedraw();
31 TEveElementList* l = new TEveElementList("PMD");
32 // l->SetTitle("tooltip");
33 // l->SetMainColor(3);
36 TEveRGBAPalette* pal = new TEveRGBAPalette(20, 1000);
37 pal->SetLimits(0, 1024);
43 Int_t istartPlane = 0;
52 printf("--- Visualization is set for PREshower Plane ---\n");
58 printf("--- Visualization is set for CPV Plane ---\n");
64 printf("--- Visualization is set for both Planes ---\n");
68 printf("--- Not set for any Plane ---\n");
71 for (Int_t ipl = istartPlane; ipl < iendPlane; ipl++)
89 TEveElementList* lplane = new TEveElementList(spl.Data());
90 // l->SetMainColor(3);
91 gEve->AddElement(lplane, l);
93 for (Int_t iddl = istartDDL; iddl < iendDDL; iddl++)
97 TEveElementList* lddl = new TEveElementList(sddl.Data());
98 // l->SetMainColor(3);
99 gEve->AddElement(lddl, lplane);
107 else if (iddl >=4 && iddl < 6)
112 for (Int_t ism = 0; ism < NSM; ism++)
115 AliEvePMDModule *lmodule = new AliEvePMDModule();
116 lmodule->SetPosition(0.,0.,zpos);
117 lmodule->DisplayDigitsData(modnumber, pmdt);
118 lmodule->SetPalette(pal);
119 if (drawBackPolygons)
121 TEveFrameBox* b = lmodule->GetFrame();
122 b->SetFrameWidth(1.5);
124 b->SetBackColor ((Color_t) (kTeal - 9));
125 b->SetFrameFill (kFALSE);
126 b->SetDrawBack (kTRUE);
128 gEve->AddElement(lmodule, lddl);
130 if (iddl == 4 && modnumber == 30) modnumber = 42;
137 gEve->EnableRedraw();
140 // ---------------------------------------------------------------------- //