Skip to content

Commit

Permalink
StBFChain: Call compiled CreateGeometry()
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Jan 17, 2024
1 parent 42662dd commit 69edf6b
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions StRoot/StBFChain/StBFChain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "StEnumerations.h"
#include "TTree.h"
#include "TEnv.h"
#include "StarVMC/StarGeometry/CreateGeometry.h"
#define STAR_LOGGER 1
// PLease, preserve the comment after = { . It is used for documentation formatting
//
Expand Down Expand Up @@ -1023,21 +1024,7 @@ Int_t StBFChain::Init() {
if (GetOption("VmcGeo")) {
path = "./StarDb/VmcGeo:$STAR/StarDb/VmcGeo";
}
TString geom("Geometry.");
geom += DbAlias[i].geometry;
geom += ".C";
Char_t *file = gSystem->Which(path.Data(),geom,kReadPermission);
if (file) {
LOG_INFO << "StBFChain::Init force load of " << file << endm;
TString command = ".L "; command += file;
gInterpreter->ProcessLine(command);
gInterpreter->Calc("CreateTable()");
command.ReplaceAll(".L ",".U ");
gInterpreter->ProcessLine(command);
delete [] file;
} else {
LOG_INFO << "StBFChain::Init file for geometry tag " << geom << " has not been found in path" << path << endm;
}
CreateGeometry(DbAlias[i].geometry);
break;
}
}
Expand Down

0 comments on commit 69edf6b

Please sign in to comment.