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 **************************************************************************/
12 gGeoManager = AliEveEventManager::AssertGeometry();
14 TEveElementList* list = new TEveElementList("FMD");
15 gEve->AddGlobalElement(list);
17 for(Int_t i=1; i<=3; ++i)
20 TEveGeoTopNode *re = 0;
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));
27 sprintf(form,"F%dMT_%d", i, i);
28 node = gGeoManager->GetTopVolume()->FindNode(form);
29 re = new TEveGeoTopNode(gGeoManager, node);
31 gEve->AddGlobalElement(re, list);
33 sprintf(form,"F%dMB_%d", i, i);
34 node = gGeoManager->GetTopVolume()->FindNode(form);
35 re = new TEveGeoTopNode(gGeoManager, node);
37 gEve->AddGlobalElement(re, list);