Skip to content

Commit 69edf6b

Browse files
committed
StBFChain: Call compiled CreateGeometry()
1 parent 42662dd commit 69edf6b

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
//
@@ -1023,21 +1024,7 @@ Int_t StBFChain::Init() {
10231024
if (GetOption("VmcGeo")) {
10241025
path = "./StarDb/VmcGeo:$STAR/StarDb/VmcGeo";
10251026
}
1026-
TString geom("Geometry.");
1027-
geom += DbAlias[i].geometry;
1028-
geom += ".C";
1029-
Char_t *file = gSystem->Which(path.Data(),geom,kReadPermission);
1030-
if (file) {
1031-
LOG_INFO << "StBFChain::Init force load of " << file << endm;
1032-
TString command = ".L "; command += file;
1033-
gInterpreter->ProcessLine(command);
1034-
gInterpreter->Calc("CreateTable()");
1035-
command.ReplaceAll(".L ",".U ");
1036-
gInterpreter->ProcessLine(command);
1037-
delete [] file;
1038-
} else {
1039-
LOG_INFO << "StBFChain::Init file for geometry tag " << geom << " has not been found in path" << path << endm;
1040-
}
1027+
CreateGeometry(DbAlias[i].geometry);
10411028
break;
10421029
}
10431030
}

0 commit comments

Comments
 (0)