]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_phos.C
Temporary replacement of Form by sprintf to avoid problems on some platforms (alpahli...
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_phos.C
1 // $Id$
2
3 void geom_phos()
4 {
5   using namespace std;
6
7   gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
8
9   for(Int_t i=1; i<=5; ++i) {
10     //PH The line below is replaced waiting for a fix in Root
11     //PH which permits to use variable siza arguments in CINT
12     //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
13     //PH TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("PHOS_%d", i));
14     char form[1000];
15     sprintf(form,"PHOS_%d", i);
16     TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
17
18     Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
19     re->SetUseNodeTrans(kTRUE);
20     gReve->AddGlobalRenderElement(re);
21   }
22
23   gReve->Redraw3D();
24 }