Skip to content

Commit 1d765eb

Browse files
committed
StBFChain: Call compiled CreateGeometry()
1 parent 0d7669b commit 1d765eb

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

StRoot/StBFChain/StBFChain.cxx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "StEnumerations.h"
1919
#include "TTree.h"
2020
#include "TEnv.h"
21+
#include "StarVMC/StarGeometry/CreateGeometry.h"
2122
#define STAR_LOGGER 1
2223
// PLease, preserve the comment after = { . It is used for documentation formatting
2324
//
@@ -1030,21 +1031,7 @@ Int_t StBFChain::Init() {
10301031
if (GetOption("VmcGeo")) {
10311032
path = "./StarDb/VmcGeo:$STAR/StarDb/VmcGeo";
10321033
}
1033-
TString geom("Geometry.");
1034-
geom += DbAlias[i].geometry;
1035-
geom += ".C";
1036-
Char_t *file = gSystem->Which(path.Data(),geom,kReadPermission);
1037-
if (file) {
1038-
LOG_INFO << "StBFChain::Init force load of " << file << endm;
1039-
TString command = ".L "; command += file;
1040-
gInterpreter->ProcessLine(command);
1041-
gInterpreter->Calc("CreateTable()");
1042-
command.ReplaceAll(".L ",".U ");
1043-
gInterpreter->ProcessLine(command);
1044-
delete [] file;
1045-
} else {
1046-
LOG_INFO << "StBFChain::Init file for geometry tag " << geom << " has not been found in path" << path << endm;
1047-
}
1034+
CreateGeometry(DbAlias[i].geometry);
10481035
break;
10491036
}
10501037
}

0 commit comments

Comments
 (0)