X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVE%2Falice-macros%2Fgeom_gentle_trd.C;h=b59ab315075197df77affe505d9b77c7c0a17454;hb=3b05f4a8a3e80945f585ec6bfdeb223aae4dae85;hp=e9f6cce9404f70beaf4e2ac1f36e426b1641eb27;hpb=81515106f3bcf78f83a0d3799deff8a178050695;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVE/alice-macros/geom_gentle_trd.C b/EVE/alice-macros/geom_gentle_trd.C index e9f6cce9404..b59ab315075 100644 --- a/EVE/alice-macros/geom_gentle_trd.C +++ b/EVE/alice-macros/geom_gentle_trd.C @@ -1,4 +1,4 @@ -// $Id: geom_gentle.C 24242 2008-03-02 02:23:52Z mtadel $ +// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** @@ -15,6 +15,9 @@ TEveGeoShape* geom_gentle_trd() gEve->AddGlobalElement(gsre); f.Close(); + const Int_t smInstalled[]={0, 1, 7, 8, 9, 10, 11, 15, 16, 17}; + const Int_t nInstalled = static_cast(sizeof(smInstalled)/sizeof(Int_t)); + Int_t sm = 0; // Fix visibility, color and transparency gsre->SetRnrSelf(kFALSE); for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i) @@ -24,11 +27,18 @@ TEveGeoShape* geom_gentle_trd() for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j) { TEveGeoShape* lvl2 = (TEveGeoShape*) *j; - lvl2->SetRnrSelf(kTRUE); + lvl2->SetRnrSelf(kFALSE); + for(Int_t ism(nInstalled); ism--;){ + if ( sm == smInstalled[ism] ){ + lvl2->SetRnrSelf(kTRUE); + break; + } + } lvl2->SetMainColor(3); lvl2->SetMainTransparency(80); + + ++sm; } - } return gsre;