1 void AgML(
const Char_t *tag=
"y2013_2",
const Char_t *geom=
"") {
5 cout <<
"Tag has not defined" << endl;
8 if (Geom ==
"") Geom = Tag;
9 gSystem->Load(
"StarAgmlLib");
11 gSystem->Load(
"Geometry");
12 gSystem->AddIncludePath(
" -IStRoot -Igeom -IStarVMC -IStarVMC/Geometry/macros -I$STAR/StRoot -Igeom -I$STAR/StarVMC -I$STAR/StarVMC/Geometry/macros ");
13 gErrorIgnoreLevel=9999;
14 gGeoManager =
new TGeoManager(Geom.Data(),Form(
"%s/AgML",Geom.Data()));
15 AgBlock::SetStacker(
new StarTGeoStacker() );
16 Geometry *build =
new Geometry();
17 build -> ConstructGeometry ( Geom.Data() );
19 gGeoManager->CloseGeometry();
22 TFile *fOut =
new TFile(Form(
"Geometry.%s.root",Tag.Data()),
"recreate");
25 TCollection::StartGarbageCollection();
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)