GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Problem in creating geometry from root file
Problem in creating geometry from root file [message #14984] Fri, 19 July 2013 19:08 Go to previous message
Shyam Kumar is currently offline  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 ***
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Constant magnetic field instead Solenoid Field maps
Next Topic: Help in Creating a new diamond detector for Pid
Goto Forum:
  


Current Time: Mon Nov 04 08:41:27 CET 2024

Total time taken to generate the page: 0.00806 seconds