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 Feb 7, 2023
1 parent 0d7669b commit 1d765eb
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 @@ -1030,21 +1031,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 1d765eb

Please sign in to comment.