Go to the source code of this file.
createGeoSim |
( |
TString |
infile = "TrackingStation.root" | ) |
|
Definition at line 3 of file createGeoSim.C.
References gGeoMan, infile(), outfile, top, and TString.
8 outfile.ReplaceAll(
".root",
"Sim.root");
10 TString geomanagerName =
"FAIRGeom";
13 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
15 TFile* fileIn =
new TFile(
infile,
"READ");
17 TGeoManager*
gGeoMan = (TGeoManager*)gROOT->FindObject(geomanagerName.Data());
18 TGeoVolume *
top = gGeoMan->GetTopVolume();
19 if(topVolumeName!=
"") top->SetName(topVolumeName);
21 TFile* fileOut =
new TFile(outfile,
"RECREATE");
TFile infile("dedx_out.root","READ")