7#include "../src/openFile.tpl"
19 bool argsOK = (IP == 1 || IP == 5) && (side ==
beam1 || side ==
beam2);
23 ss<<
"Legal side arg values = beam1 or beam2, is "<<side<<
" Legal IP arg values = 1 or 5, is "<<IP<<
'\n';
25 throw std::runtime_error(
ss.str().c_str());
31 if (side ==
beam2){
return "twiss_65_b2_old.txt";}
32 return "twiss_65_b1_old.txt";
37 if( side==
beam2 ) {
return "LHCB2IR1_6500";}
38 return "LHCB1IR1_6500";
42 if( side==
beam2 ) {
return "LHCB2IR5_6500";}
43 return "LHCB1IR5_6500";
std::string determineMagnetConfigFileName(int IP, const Side &side, int magver)
std::shared_ptr< std::ifstream > getConfigFile(const std::string &dir, const std::string &fn)
std::shared_ptr< std::ifstream > getMagnetConfigFiles(const std::string &dir, int IP, int magVer, const Side &side)