File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments