]>
Commit | Line | Data |
---|---|---|
aa26cc37 | 1 | // $Id$ |
d810d0de | 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 * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
aa26cc37 | 9 | |
b1916ff9 | 10 | TEveGeoShape* geom_gentle(Bool_t register_as_global=kTRUE) |
aa26cc37 | 11 | { |
81515106 | 12 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root"); |
84aff7a4 | 13 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); |
a15e6d7d | 14 | TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse); |
aa26cc37 | 15 | f.Close(); |
32e219c2 | 16 | |
b1916ff9 | 17 | if (register_as_global) |
18 | { | |
19 | gEve->AddGlobalElement(gsre); | |
20 | } | |
21 | ||
32e219c2 | 22 | return gsre; |
aa26cc37 | 23 | } |
5e078eda | 24 | |
25 | TEveGeoShape* geom_gentle_rphi() | |
26 | { | |
27 | // The resulting geometry is NOT added into the global scene! | |
28 | ||
29 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root"); | |
30 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); | |
31 | TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse); | |
32 | f.Close(); | |
33 | ||
34 | return gsre; | |
35 | } | |
36 | ||
37 | TEveGeoShape* geom_gentle_rhoz() | |
38 | { | |
39 | // The resulting geometry is NOT added into the global scene! | |
40 | ||
41 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root"); | |
42 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); | |
43 | TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse); | |
44 | f.Close(); | |
45 | ||
46 | return gsre; | |
47 | } |