FairRoot/PandaRoot
outdated/run/drawGeo.C
Go to the documentation of this file.
2 {
3  TFile* file = new TFile("simparams.root");
4 
5  if (!gGeoManager) {
6  file->Get("FairBaseParSet");
7  TGeoManager *geoMan = gGeoManager;
8  if(!geoMan) {
9  file->Get("FairGeoParSet");
10  geoMan = gGeoManager;
11  if(!geoMan) {
12  std::cout<<"Could not find valid GeoManager. Abort now!"<<std::endl;
13  exit(1);
14  }
15  }
16  geoMan->SetVisLevel(3);
17  geoMan->GetMasterVolume()->Draw("ogl");
18  }
19 
20 }
21 
TFile * file
exit(0)
TGeoManager * geoMan
TGeoManager * gGeoManager
drawGeo()