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//
@@ -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 }
You can’t perform that action at this time.
0 commit comments