Commit 083483fa authored by Chad Lantz's avatar Chad Lantz
Browse files

Added a check for alignment and survey files in the executable directory for cluster operation

parent a59eaf00
......@@ -746,8 +746,10 @@ void DetectorConstruction::LoadAlignmentFile2021( G4String _inFile ){
m_XMLparser = new XMLSettingsReader();
if (!m_XMLparser->parseFile(_inFile)) {
if (!m_XMLparser->parseFile("Alignment_2021.xml")) {
std::cerr << " Data Reader could not parse file : " << _inFile << std::endl;
return;
}
}
m_alignment2021 = new Alignment2021();
......@@ -851,8 +853,10 @@ void DetectorConstruction::LoadSurveyFile2021( G4String _inFile ){
m_XMLparser = new XMLSettingsReader();
if (!m_XMLparser->parseFile(_inFile)) {
if (!m_XMLparser->parseFile("Survey_2021.xml")) {
std::cerr << " Data Reader could not parse file : " << _inFile << std::endl;
return;
}
}
int first_run, last_run;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment