]>
Commit | Line | Data |
---|---|---|
8085068a | 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) { | |
7be1e8cd | 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); | |
8085068a | 17 | |
5b96ea20 | 18 | Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node); |
19 | re->SetUseNodeTrans(kTRUE); | |
8085068a | 20 | gReve->AddGlobalRenderElement(re); |
8085068a | 21 | } |
5b96ea20 | 22 | |
23 | gReve->Redraw3D(); | |
8085068a | 24 | } |