GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » TGeoManager and TGeoVolume
Re: TGeoManager and TGeoVolume [message #5969 is a reply to message #5963] Tue, 26 February 2008 08:33 Go to previous messageGo to previous message
Aleksandra Wronska is currently offline  Aleksandra Wronska
Messages: 38
Registered: May 2006
Location: Cracow
continuous participant
From: *if.uj.edu.pl
Hi Ralf,

in macro/dch/createRootGeoFile.C you can find how we do it for the drift chambers (and it works Wink). Simply

TGeoVolume *top = gGeoMan->MakeBox("top",gGeoMan->GetMedium("air"),350,100,800);
gGeoMan->SetTopVolume(top);
//..
//filling the top volume
//...
TFile* fi = new TFile(outfile,"RECREATE");
top->Write();
fi->Close();


does the job, including top's content (i.e. recursively).

I hope this helps,
ola
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Includes for MacOs X for different detectors.
Next Topic: root files with the same hitcolection structure
Goto Forum:
  


Current Time: Thu Apr 18 18:15:22 CEST 2024

Total time taken to generate the page: 0.00910 seconds