Skip to content

Commit e893ec7

Browse files
committed
StBFChain: Call compiled CreateGeometry()
1 parent 9cda6a6 commit e893ec7

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

0 commit comments

Comments
 (0)