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 // ---------------------------------------------------------------------- //
11 #if !defined(__CINT__) || defined(__MAKECINT__)
12 #include <TObjArray.h>
15 #include <TEveManager.h>
16 #include <TEveElement.h>
17 #include <TEvePointSet.h>
19 #include <AliPMDRawStream.h>
20 #include <AliRawReaderRoot.h>
21 #include <AliCluster.h>
22 #include <AliEveEventManager.h>
23 #include <AliEvePMDModule.h>
26 void pmd_raw(Int_t mode = 0)
28 gStyle->SetPalette(1, 0);
31 TObjArray *pmdddlcont = new TObjArray();
38 // Use this to get data consistent with current event:
39 // AliRawReader *reader = AliEveEventManager::AssertRawReader();
42 AliRawReaderRoot reader("raw.root",ievt);
43 AliPMDRawStream stream(&reader);
45 gEve->DisableRedraw();
47 TEveElementList* l = new TEveElementList("PMD");
48 // l->SetTitle("PMD");
49 // l->SetMainColor(3);
56 Int_t istartPlane = 0;
65 printf("--- Visualization is set for PREshower Plane ---\n");
71 printf("--- Visualization is set for CPV Plane ---\n");
77 printf("--- Visualization is set for both the Plane ---\n");
81 printf("--- Not set for any Plane ---\n");
84 for (Int_t ipl = istartPlane; ipl < iendPlane; ipl++)
102 TEveElementList* lplane = new TEveElementList(spl.Data());
103 // l->SetMainColor(3);
104 gEve->AddElement(lplane, l);
108 while ((iddl = stream.DdlData(pmdddlcont)) >=0) {
109 if (iddl >= istartDDL && iddl < iendDDL){
112 TEveElementList* lddl = new TEveElementList(sddl.Data());
113 // l->SetMainColor(3);
114 gEve->AddElement(lddl, lplane);
122 else if (iddl >=4 && iddl < 6)
127 for (Int_t ism = 0; ism < NSM; ism++)
129 AliEvePMDModule *lmodule = new AliEvePMDModule();
130 lmodule->SetPosition(0.,0.,zpos);
131 lmodule->DisplayRawData(modnumber,pmdddlcont);
132 gEve->AddElement(lmodule, lddl);
134 if (iddl == 4 && modnumber == 30) modnumber = 42;
137 pmdddlcont->Delete();
141 gEve->EnableRedraw();
145 // ---------------------------------------------------------------------- //