FairRoot/PandaRoot
detectors/fts/drawGeo.C
Go to the documentation of this file.
1 
2 
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 }
35 
36 
37 
TFile * file
exit(0)
TGeoManager * geoMan
TGeoManager * gGeoManager