FairRoot/PandaRoot
Functions
outdated/run/drawGeo.C File Reference

Go to the source code of this file.

Functions

 drawGeo ()
 

Function Documentation

drawGeo ( )

Definition at line 1 of file outdated/run/drawGeo.C.

References exit(), file, geoMan, and gGeoManager.

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 }
TFile * file
exit(0)
TGeoManager * geoMan
TGeoManager * gGeoManager