Go to the source code of this file.
int geotester |
( |
TString |
filename = "../../../geometry/MVD_v1.0_woPassiveTraps.root" | ) |
|
Definition at line 1 of file Ralf/geotester.C.
References file, filename, geoMan, and topvol.
4 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
13 TGeoManager *
geoMan =
new TGeoManager();
14 TGeoVolume*
topvol = (TGeoVolume*)file->Get(
"topNode");
15 if(!topvol) cout<<
"Error: topvolume is not there"<<endl;
16 geoMan->SetTopVolume(topvol);
25 geoMan->SetVisLevel(100);
26 geoMan->DefaultColors();
29 std::cout<<
"------------------------------"<<std::endl;
30 std::cout<<
"------------------------------"<<std::endl;
31 std::cout<<
"------------------------------"<<std::endl;
33 geoMan->GetListOfVolumes()->Print();