2 void Ast2Root(
const Char_t *vers=
"y2005x") {
3 gROOT->LoadMacro(
"bfc.C");
4 TString cmd(
"bfc(0,\"gstar,nodefault,");
7 gInterpreter->ProcessLine(cmd.Data());
15 TString cmd(
"grfile ");
17 geant->
Do(cmd.Data());
19 Char_t *sets[2] = {
"geom",
"Detectors"};
20 for (Int_t i = 0; i < 2; i++) {
21 TString setN(
".const/");
25 TString file(sets[i]);
29 TFile *f =
new TFile(file.Data(),
"RECREATE");
36 rzFile.ReplaceAll(
"grfile ",
"");
38 cmd +=
" "; cmd += vers; cmd +=
".h";
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
virtual void Do(const Char_t *option="dcut cave x 0.1 10 10 0.03 0.03")
Executes a KUIP command.
virtual TDataSet * Find(const char *path) const