]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/geom_gentle_trd.C
protect against missing pt in track references
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_trd.C
CommitLineData
503bfbc8 1// $Id: geom_gentle.C 24242 2008-03-02 02:23:52Z mtadel $
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
10TEveGeoShape* geom_gentle_trd()
11{
81515106 12 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_trd.root");
503bfbc8 13 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle TRD");
14 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
15 gEve->AddGlobalElement(gsre);
16 f.Close();
17
18 // Fix visibility, color and transparency
19 gsre->SetRnrSelf(kFALSE);
20 for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i)
21 {
22 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
23 lvl1->SetRnrSelf(kFALSE);
24 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
25 {
26 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
27 lvl2->SetRnrSelf(kTRUE);
fbc350a3 28 lvl2->SetMainColor(3);
503bfbc8 29 lvl2->SetMainTransparency(80);
30 }
31
32 }
33
34 return gsre;
35}