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