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 **************************************************************************/
10 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TGeoManager.h>
13 #include <TEveManager.h>
14 #include <TEveGeoNode.h>
15 #include <TEveElement.h>
17 #include <AliEveEventManager.h>
22 gGeoManager = AliEveEventManager::AssertGeometry();
24 TEveElementList* list = new TEveElementList("FMD");
25 gEve->AddGlobalElement(list);
27 for(Int_t i=1; i<=3; ++i)
30 TEveGeoTopNode *re = 0;
32 //PH The line below is replaced waiting for a fix in Root
33 //PH which permits to use variable siza arguments in CINT
34 //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
35 //PH node = gGeoManager->GetTopVolume()->FindNode(Form("F%dMT_%d", i, i));
37 sprintf(form,"F%dMT_%d", i, i);
38 node = gGeoManager->GetTopVolume()->FindNode(form);
39 re = new TEveGeoTopNode(gGeoManager, node);
41 gEve->AddGlobalElement(re, list);
43 sprintf(form,"F%dMB_%d", i, i);
44 node = gGeoManager->GetTopVolume()->FindNode(form);
45 re = new TEveGeoTopNode(gGeoManager, node);
47 gEve->AddGlobalElement(re, list);