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();
23 AliRawReaderRoot reader("raw.root",ievt);
24 AliPMDRawStream stream(&reader);
26 gEve->DisableRedraw();
28 TEveElementList* l = new TEveElementList("PMD");
29 // l->SetTitle("PMD");
30 // l->SetMainColor((Color_t)3);
37 Int_t istartPlane = 0;
46 printf("--- Visualization is set for PREshower Plane ---\n");
52 printf("--- Visualization is set for CPV Plane ---\n");
58 printf("--- Visualization is set for both the Plane ---\n");
62 printf("--- Not set for any Plane ---\n");
65 for (Int_t ipl = istartPlane; ipl < iendPlane; ipl++)
83 TEveElementList* lplane = new TEveElementList(spl.Data());
84 // l->SetMainColor((Color_t)3);
85 gEve->AddElement(lplane, l);
87 for (Int_t iddl = istartDDL; iddl < iendDDL; iddl++)
88 //for (Int_t iddl = 0; iddl < 1; iddl++)
92 TEveElementList* lddl = new TEveElementList(sddl.Data());
93 // l->SetMainColor((Color_t)3);
94 gEve->AddElement(ddl, lplane);
102 else if (iddl >=4 && iddl < 6)
107 reader.Select("PMD", iddl, iddl);
108 Bool_t junk = stream.DdlData(iddl,pmdddlcont);
110 for (Int_t ism = 0; ism < NSM; ism++)
112 AliEvePMDModule *lmodule = new AliEvePMDModule();
113 lmodule->SetPosition(0.,0.,zpos);
114 lmodule->DisplayRawData(modnumber,pmdddlcont);
115 gEve->AddElement(lmodule, lddl);
117 if (iddl == 4 && modnumber == 30) modnumber = 42;
124 gEve->EnableRedraw();
127 // ---------------------------------------------------------------------- //