Skip to content
Snippets Groups Projects
Commit 9bfa044c authored by Dmitry Popov's avatar Dmitry Popov
Browse files

fixed lhcb g4 rich test

parent d253b3c2
Branches
Tags
1 merge request!79"Modernize" CMake configuration
......@@ -82,6 +82,13 @@ install(
scripts/G4RichTbSimHTest.py
TYPE BIN
)
install(
DIRECTORY
options
InputData
DESTINATION
data
)
return()
gaudi_subdir(G4RichTbSimHTest v1r0)
......
......@@ -148,10 +148,9 @@ int main(int argc, char **argv) {
session->SessionStart();
delete session;
} else { // Batch mode
G4UImanager *UI = G4UImanager::GetUIpointer();
G4String command = "/control/execute ";
G4String fileName = argv[1];
UI->ApplyCommand(command + fileName);
G4UImanager::GetUIpointer()->ApplyCommand(command + fileName);
}
}
......
......@@ -15,7 +15,13 @@ RichTbRunConfig::RichTbRunConfig()
// Now open the Run Configuration file.
const std::string G4RICHTBSIMHROOT = std::string(std::getenv("G4RICHTBSIMHTESTROOT")) + "/";
if (std::getenv("GEANT4_PROJECT_ROOT") == nullptr || std::getenv("BINARY_TAG") == nullptr) {
G4cout << "GEANT4_PROJECT_ROOT or BINARY_TAG is not set, exiting!" << G4endl;
exit(1);
}
const std::string G4RICHTBSIMHROOT = std::string(std::getenv("GEANT4_PROJECT_ROOT")) +
"/InstallArea/" + std::string(std::getenv("BINARY_TAG")) + "/data/";
const std::string RunConfigFile = G4RICHTBSIMHROOT + "options/RunConfig.dat";
G4cout << " Run Configuration Input is from " << RunConfigFile << G4endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment