X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVE%2Falice-macros%2Fpmd_raw.C;h=3729cfffb5a84deba77211df188700ff97ede6ab;hb=367c6d1fa338d1cd2b8abc9fca7dcd4bfb4cb9cc;hp=19db34ea92592df91be8f49418c6c5bd342f1334;hpb=d22e4f00d92f32c1673e2de9abc96cec01750b41;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVE/alice-macros/pmd_raw.C b/EVE/alice-macros/pmd_raw.C index 19db34ea925..3729cfffb5a 100644 --- a/EVE/alice-macros/pmd_raw.C +++ b/EVE/alice-macros/pmd_raw.C @@ -19,7 +19,10 @@ void pmd_raw(Int_t mode = 0) TString sddl; TString bsddl="DDL"; - Int_t ievt = 0; + // Use this to get data consistent with current event: + // AliRawReader *reader = AliEveEventManager::AssertRawReader(); + + Int_t ievt = 159; AliRawReaderRoot reader("raw.root",ievt); AliPMDRawStream stream(&reader); @@ -27,7 +30,7 @@ void pmd_raw(Int_t mode = 0) TEveElementList* l = new TEveElementList("PMD"); // l->SetTitle("PMD"); - // l->SetMainColor((Color_t)3); + // l->SetMainColor(3); gEve->AddElement(l); Int_t NSM = 0; @@ -81,17 +84,17 @@ void pmd_raw(Int_t mode = 0) } TEveElementList* lplane = new TEveElementList(spl.Data()); - // l->SetMainColor((Color_t)3); + // l->SetMainColor(3); gEve->AddElement(lplane, l); Int_t iddl = -1; - while ((iddl = rawStream.DdlData(&pmdddlcont)) >=0) { + while ((iddl = stream.DdlData(&pmdddlcont)) >=0) { if (iddl >= istartDDL && iddl < iendDDL){ sddl = bsddl; sddl += iddl; TEveElementList* lddl = new TEveElementList(sddl.Data()); - // l->SetMainColor((Color_t)3); + // l->SetMainColor(3); gEve->AddElement(ddl, lplane); modnumber = iddl*6; @@ -115,7 +118,7 @@ void pmd_raw(Int_t mode = 0) if (iddl == 4 && modnumber == 30) modnumber = 42; } - pmdddlcont->Clear(); + pmdddlcont->Delete(); } }