X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVE%2Falice-macros%2Fpmd_hits.C;h=75cbdf03d565f72cc0d598abd74644353c3b2e14;hb=27e63fee7d87ec3796396ecfec218450f818f92b;hp=0bb18eef687f19d4809886f5ab38125c6d038f7c;hpb=7be1e8cd393354fa4f1773fe21601ba91c1c6319;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVE/alice-macros/pmd_hits.C b/EVE/alice-macros/pmd_hits.C index 0bb18eef687..75cbdf03d56 100644 --- a/EVE/alice-macros/pmd_hits.C +++ b/EVE/alice-macros/pmd_hits.C @@ -1,33 +1,36 @@ // $Id$ +// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 -Reve::PointSet* +/************************************************************************** + * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * + * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * + * full copyright notice. * + **************************************************************************/ + +TEvePointSet* pmd_hits(const char *varexp = "fX:fY:fZ", const char *selection = "") { - AliRunLoader* rl = Alieve::Event::AssertRunLoader(); + AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); rl->LoadHits("PMD"); TTree* ht = rl->GetTreeH("PMD", false); - - //PH The line below is replaced waiting for a fix in Root - //PH which permits to use variable siza arguments in CINT - //PH on some platforms (alphalinuxgcc, solariscc5, etc.) - //PH Reve::PointSet* points = new Reve::PointSet(Form("PMD Hits '%s'", selection)); - char form[1000]; - sprintf(form,"PMD Hits '%s'", selection); - Reve::PointSet* points = new Reve::PointSet(form); - - TPointSelector ps(ht, points, varexp, selection); + + TEvePointSet* points = new TEvePointSet(Form("PMD Hits '%s'", selection)); + + TEvePointSelector ps(ht, points, varexp, selection); ps.Select(); - //PH points->SetTitle(Form("N=%d", points->Size())); - sprintf(form,"N=%d", points->Size()); - points->SetTitle(form); + points->SetName(Form("PMD Hits")); + const TString viz_tag("SIM Hits PMD"); + points->ApplyVizTag(viz_tag, "Hits"); + + points->SetTitle(Form("N=%d", points->Size())); points->SetMarkerSize(.5); - points->SetMarkerColor((Color_t)2); + points->SetMarkerColor(2); - gReve->AddRenderElement(points); - gReve->Redraw3D(); + gEve->AddElement(points); + gEve->Redraw3D(); return points; }