2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
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 **************************************************************************/
10 #if !defined(__CINT__) || defined(__MAKECINT__)
12 #include <TEveManager.h>
13 #include <TEveGeoNode.h>
14 #include <TEveElement.h>
15 #include <TEveGeoShape.h>
16 #include <TEveGeoShapeExtract.h>
19 TEveGeoShape* geom_gentle(Bool_t register_as_global=kTRUE)
21 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
22 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
23 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
26 TEveElement* elPHOS = gsre->FindChild("PHOS");
27 elPHOS->SetRnrState(kTRUE);
28 elPHOS->FindChild("PHOS_4")->SetRnrState(kFALSE);
29 elPHOS->FindChild("PHOS_5")->SetRnrState(kFALSE);
31 if (register_as_global)
33 gEve->AddGlobalElement(gsre);
39 TEveGeoShape* geom_gentle_rphi()
41 // The resulting geometry is NOT added into the global scene!
43 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
44 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
45 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
48 TEveElement* elPHOS = gsre->FindChild("PHOS");
49 elPHOS->SetRnrState(kTRUE);
50 elPHOS->FindChild("PHOS_4")->SetRnrState(kFALSE);
51 elPHOS->FindChild("PHOS_5")->SetRnrState(kFALSE);
56 TEveGeoShape* geom_gentle_rhoz()
58 // The resulting geometry is NOT added into the global scene!
60 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
61 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
62 TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);