Problem in creating geometry from root file [message #14984] |
Fri, 19 July 2013 19:08 |
Shyam Kumar
Messages: 78 Registered: September 2012 Location: Mumbai, Maharashtra India
|
continuous participant |
From: 103.21.127*
|
|
Hi,
I want to draw the geometry from the root file given in /pandaroot/geometry folder although I can draw the geometry in TBrowser but not in code. I am using the code below which was for params.root file.The Error is shown below. Also tell me can I draw a .geo file to see its geometry?.
drawGeo()
{
gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
rootlogon();
gSystem->Load("libGeom");
TFile *f = TFile::Open("/home/shyam/fairsoft/pandaroot/geometry/LambdaDisksNew.root ");
//TFile* file = new TFile("params.root");
f->Get("FairBaseParSet");
gGeoManager->SetVisLevel(3);
//defoult 3
gGeoManager->GetMasterVolume()->Draw("ogl");
}
Processing drawGeo.C...
Note: File "/home/shyam/fairsoft/pandaroot/buildPanda/lib/libDrc.so" already loaded
Error: illegal pointer to class object gGeoManager 0x0 2182 drawGeo.C:17:
*** Interpreter error recovered ***
|
|
|
|
|
|
|