5 void build_geom( TString geomtag =
"dev2022", TString output=
"fGeom.root" ) {
7 gSystem->Load(
"libStarRoot.so" );
11 gROOT->SetMacroPath(
".:/star-sw/StRoot/macros/:./StRoot/macros:./StRoot/macros/graphics:./StRoot/macros/analysis:./StRoot/macros/test:./StRoot/macros/examples:./StRoot/macros/html:./StRoot/macros/qa:./StRoot/macros/calib:./StRoot/macros/mudst:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/graphics:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/analysis:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/test:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/examples:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/html:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/qa:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/calib:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/mudst:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/macros:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/tutorials");
12 gROOT->LoadMacro(
"bfc.C");
13 bfc(0,
"fzin agml sdt20211016",
"" );
15 gSystem->Load(
"libStarClassLibrary.so");
16 gSystem->Load(
"libStEvent.so" );
19 TFile *geom = TFile::Open( output.Data() );
22 AgModule::SetStacker(
new StarTGeoStacker() );
23 AgPosition::SetDebug(2);
24 StarGeometry::Construct(
"dev2022");
27 gGeoManager->Export( output.Data() );
28 cout <<
"Writing output to geometry file [" << output.Data() <<
"]" << endl;
31 cout <<
"WARNING: Geometry file [" << output.Data() <<
"] already exists." << endl;
32 cout <<
"Existting without doing anything!" << endl;