]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_gentle.C
Clarify cluster loop. Add check for cluster being 0 (seen in online reco-viz).
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle.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
10 TEveGeoShape* geom_gentle(Bool_t register_as_global=kTRUE)
11 {
12   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
13   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
14   TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
15   f.Close();
16
17   if (register_as_global)
18   {
19     gEve->AddGlobalElement(gsre);
20   }
21
22   return gsre;
23 }
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 }