FairRoot/PandaRoot
Functions
detectors/fts/drawGeo.C File Reference

Go to the source code of this file.

Functions

 drawGeo ()
 

Function Documentation

drawGeo ( )

Definition at line 3 of file detectors/fts/drawGeo.C.

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

4 {
5 
6  /*
7  gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
8  rootlogon();
9 
10  TFile* file = new TFile("params.root");
11  file->Get("FairBaseParSet");
12 
13  gGeoManager->SetVisLevel(3); //defoult 3
14  gGeoManager->GetMasterVolume()->Draw("ogl");
15  */
16 
17  TFile* file = new TFile("simparams.root"); //params.root
18 
19  if (!gGeoManager) {
20  file->Get("FairBaseParSet");
21  TGeoManager *geoMan = gGeoManager;
22  if(!geoMan) {
23  file->Get("FairGeoParSet");
24  geoMan = gGeoManager;
25  if(!geoMan) {
26  std::cout<<"Could not find valid GeoManager. Abort now!"<<std::endl;
27  exit(1);
28  }
29  }
30  geoMan->SetVisLevel(3);
31  geoMan->GetMasterVolume()->Draw("ogl");
32  }
33 
34 }
TFile * file
exit(0)
TGeoManager * geoMan
TGeoManager * gGeoManager