3 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/basiclibs.C");
6 gSystem->Load(
"libGeoBase");
7 gSystem->Load(
"libParBase");
8 gSystem->Load(
"libBase");
9 gSystem->Load(
"libField");
10 gSystem->Load(
"libGen");
11 gSystem->Load(
"libPassive");
12 gSystem->Load(
"libPndData");
20 TFile*
file =
new TFile(
"teststation.root");
27 TGeoManager *
geoMan =
new TGeoManager();
28 TGeoVolume*
topvol = (TGeoVolume*)file->Get(
"top");
29 if(!topvol) cout<<
"Error: topvolume is not there"<<endl;
30 geoMan->SetTopVolume(topvol);
39 geoMan->SetVisLevel(100);
40 geoMan->DefaultColors();
43 std::cout<<
"------------------------------"<<std::endl;
44 std::cout<<
"------------------------------"<<std::endl;
45 std::cout<<
"------------------------------"<<std::endl;
47 geoMan->GetListOfVolumes()->Print();