GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » CBM » CBMROOT » General » Moving the Geometry from data file to the parameters
Re: Moving the Geometry from data file to the parameters [message #9608 is a reply to message #9443] Mon, 26 October 2009 09:09 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Quote:

Error in <TBufferFile::ReadObject>: trying to read an emulated class (CbmTrd) to store in a compiled pointer (TObject)


you are missing the Trd library!


Quote:

-E- FairRootManager Branch: GeoTracks not found in Tree
-E- FairRootManager Branch: GeoTracks not found in Tree
FairMCPointDraw::Init() branch Monte-Carlo Tracks Not found! Task will be deactivated


in the run_sim.C macro the visualization flag is not set to true.



The geometry is now stored in the parameters (FairBaseParSet) exactly like the field. if you load the parameters the geometry will be loaded. if you would like to see the geometry in plain ROOT, then:



Quote:



//Load the libraries you need, then

TFile* file = new TFile("testparams.root");
file->Get("FairBaseParSet");

// now the geometry is available as TGeo in memory

gGeoManager->GetMasterVolume()->Draw("ogl");




regards

Mohammad


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Control of Cuts for Geant4 in CBMRoot
Next Topic: CBMROOT release DEC09
Goto Forum:
  


Current Time: Tue Oct 15 17:18:49 CEST 2024

Total time taken to generate the page: 0.01105 seconds