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 **************************************************************************/
9 // ---------------------------------------------------------------------- //
10 void pmd_raw(Int_t mode = 0)
12 gStyle->SetPalette(1, 0);
15 TObjArray *pmdddlcont = new TObjArray();
22 // Use this to get data consistent with current event:
23 // AliRawReader *reader = AliEveEventManager::AssertRawReader();
26 AliRawReaderRoot reader("raw.root",ievt);
27 AliPMDRawStream stream(&reader);
29 gEve->DisableRedraw();
31 TEveElementList* l = new TEveElementList("PMD");
32 // l->SetTitle("PMD");
33 // l->SetMainColor(3);
40 Int_t istartPlane = 0;
49 printf("--- Visualization is set for PREshower Plane ---\n");
55 printf("--- Visualization is set for CPV Plane ---\n");
61 printf("--- Visualization is set for both the Plane ---\n");
65 printf("--- Not set for any Plane ---\n");
68 for (Int_t ipl = istartPlane; ipl < iendPlane; ipl++)
86 TEveElementList* lplane = new TEveElementList(spl.Data());
87 // l->SetMainColor(3);
88 gEve->AddElement(lplane, l);
92 while ((iddl = stream.DdlData(&pmdddlcont)) >=0) {
93 if (iddl >= istartDDL && iddl < iendDDL){
96 TEveElementList* lddl = new TEveElementList(sddl.Data());
97 // l->SetMainColor(3);
98 gEve->AddElement(ddl, lplane);
106 else if (iddl >=4 && iddl < 6)
111 for (Int_t ism = 0; ism < NSM; ism++)
113 AliEvePMDModule *lmodule = new AliEvePMDModule();
114 lmodule->SetPosition(0.,0.,zpos);
115 lmodule->DisplayRawData(modnumber,pmdddlcont);
116 gEve->AddElement(lmodule, lddl);
118 if (iddl == 4 && modnumber == 30) modnumber = 42;
121 pmdddlcont->Delete();
125 gEve->EnableRedraw();
129 // ---------------------------------------------------------------------- //