]>
Commit | Line | Data |
---|---|---|
197639c0 | 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 | **************************************************************************/ |
197639c0 | 9 | |
10 | void geom_fmd() | |
11 | { | |
ca8a6926 | 12 | gGeoManager = AliEveEventManager::AssertGeometry(); |
197639c0 | 13 | |
84aff7a4 | 14 | TEveElementList* list = new TEveElementList("FMD"); |
15 | gEve->AddGlobalElement(list); | |
197639c0 | 16 | |
84aff7a4 | 17 | for(Int_t i=1; i<=3; ++i) |
18 | { | |
19 | TGeoNode *node = 0; | |
20 | TEveGeoTopNode *re = 0; | |
197639c0 | 21 | |
7be1e8cd | 22 | //PH The line below is replaced waiting for a fix in Root |
23 | //PH which permits to use variable siza arguments in CINT | |
24 | //PH on some platforms (alphalinuxgcc, solariscc5, etc.) | |
25 | //PH node = gGeoManager->GetTopVolume()->FindNode(Form("F%dMT_%d", i, i)); | |
26 | char form[1000]; | |
27 | sprintf(form,"F%dMT_%d", i, i); | |
28 | node = gGeoManager->GetTopVolume()->FindNode(form); | |
84aff7a4 | 29 | re = new TEveGeoTopNode(gGeoManager, node); |
9a5c8f9c | 30 | re->UseNodeTrans(); |
84aff7a4 | 31 | gEve->AddGlobalElement(re, list); |
197639c0 | 32 | |
7be1e8cd | 33 | sprintf(form,"F%dMB_%d", i, i); |
34 | node = gGeoManager->GetTopVolume()->FindNode(form); | |
84aff7a4 | 35 | re = new TEveGeoTopNode(gGeoManager, node); |
9a5c8f9c | 36 | re->UseNodeTrans(); |
84aff7a4 | 37 | gEve->AddGlobalElement(re, list); |
197639c0 | 38 | } |
39 | ||
84aff7a4 | 40 | gEve->Redraw3D(); |
197639c0 | 41 | } |