]>
Commit | Line | Data |
---|---|---|
ba978640 | 1 | #if !defined(__CINT__) || defined(__MAKECINT__) |
2 | #include <TFile.h> | |
3 | #include <TEveManager.h> | |
4 | #include <TEveElement.h> | |
5 | #include <TEveGeoShape.h> | |
6 | #include <TEveGeoShapeExtract.h> | |
3aff0c2e | 7 | |
6c49a8e1 | 8 | #include <AliEveEventManager.h> |
9 | #include <AliEveMultiView.h> | |
ba978640 | 10 | #endif |
3aff0c2e | 11 | |
ba978640 | 12 | void geom_gentle_default(Bool_t register_as_global=kTRUE) |
13 | { | |
14 | TEveGeoShape* gsre1; | |
15 | TEveGeoShape* gsre2; | |
16 | TEveGeoShape* gsre3; | |
17 | ||
18 | // Geometry 3D | |
3aff0c2e | 19 | { |
ba978640 | 20 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root"); |
21 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); | |
22 | gsre1 = TEveGeoShape::ImportShapeExtract(gse); | |
23 | f.Close(); | |
24 | ||
25 | if (register_as_global) | |
26 | { | |
27 | gEve->AddGlobalElement(gsre1); | |
28 | } | |
3aff0c2e | 29 | } |
ba978640 | 30 | |
31 | // Geometry rphi | |
32 | { | |
33 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root"); | |
34 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); | |
35 | gsre2 = TEveGeoShape::ImportShapeExtract(gse); | |
36 | f.Close(); | |
37 | } | |
38 | ||
39 | // Geometry rhoz | |
40 | { | |
41 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root"); | |
42 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle"); | |
43 | gsre3 = TEveGeoShape::ImportShapeExtract(gse); | |
44 | f.Close(); | |
45 | } | |
46 | ||
3aff0c2e | 47 | TEveElement* top = gEve->GetCurrentEvent(); |
48 | ||
49 | AliEveMultiView *mv = AliEveMultiView::Instance(); | |
ba978640 | 50 | |
51 | mv->InitGeomGentle(gsre1, gsre2, gsre3, 0); | |
3aff0c2e | 52 | |
53 | gEve->FullRedraw3D(kTRUE, kTRUE); | |
54 | ||
55 | } |