]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/region_marker.C
- introduction of gain scenarios (e.g. OROC only - for homogeneous gain in 11h)
[u/mrichter/AliRoot.git] / EVE / alice-macros / region_marker.C
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
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 #if !defined(__CINT__) || defined(__MAKECINT__)
10 #include <TPolyMarker3D.h>
11 #include <TEveManager.h>
12 #include <TEveElement.h>
13 #include <TEveUtil.h>
14 #endif
15
16
17 void region_marker(Float_t a=10, Float_t b=10, Float_t c=20,
18                    Float_t x=0, Float_t y=0, Float_t z=0)
19 {
20   TPolyMarker3D* mark = new TPolyMarker3D(8);
21   mark->SetName("Origin marker");
22   mark->SetMarkerStyle(3);
23   mark->SetMarkerColor(6);
24   mark->SetPoint(0, x+a, y+b, z+c);
25   mark->SetPoint(1, x+a, y-b, z+c);
26   mark->SetPoint(2, x-a, y-b, z+c);
27   mark->SetPoint(3, x-a, y+b, z+c);
28
29   mark->SetPoint(4, x+a, y+b, z-c);
30   mark->SetPoint(5, x+a, y-b, z-c);
31   mark->SetPoint(6, x-a, y+b, z-c);
32   mark->SetPoint(7, x-a, y-b, z-c);
33   Color_t* colp = TEveUtil::FindColorVar(mark, "fMarkerColor");
34   TEveElementObjectPtr* rnrEl = new TEveElementObjectPtr(mark, *colp);
35   gEve->AddGlobalElement(rnrEl);
36   gEve->Redraw3D();
37 }