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

Added G4RichTbSimHTest stirring script, fixed env variable

parent 684e632f
No related branches found
No related tags found
1 merge request!24Migrate 'master' to G4 v10r3p3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
"""
Stirring application for the RICH test beam simulation test (aka RichTbSimH).
"""
def main():
print 'Starting RICH test beam simulation test...'
workspace = os.path.join(os.sep, os.getcwd(), 'G4RichTbSimHTestOutput')
if not os.path.exists(workspace):
os.makedirs(workspace)
os.chdir(workspace)
print 'Working directory:', os.getcwd()
print 'Executing the test...'
cmd = 'G4RichTbSimHTest.exe'
subprocess.call(cmd, shell=True)
if __name__ == '__main__':
main()
#EOF
...@@ -18,9 +18,9 @@ RichTbRunConfig::RichTbRunConfig() ...@@ -18,9 +18,9 @@ RichTbRunConfig::RichTbRunConfig()
// Now open the Run Configuration file. // Now open the Run Configuration file.
const std::string G4RICHTBSIMHROOT = std::string(std::getenv("G4RICHTBSIMHROOT")) + "/"; const std::string G4RICHTBSIMHROOT = std::string(std::getenv("G4RICHTBSIMHTESTROOT")) + "/";
const std::string RunConfigFile = G4RICHTBSIMHROOT + "options/RunConfig.dat"; const std::string RunConfigFile = G4RICHTBSIMHROOT + "options/RunConfig.dat";
G4cout<<" Run Configuration Input is from "<< RunConfigFile<<G4endl; G4cout<<" Run Configuration Input is from "<< RunConfigFile<<G4endl;
std::ifstream finpconf( RunConfigFile); std::ifstream finpconf( RunConfigFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment