// MAUS WARNING: THIS IS LEGACY CODE. #include #include #include #include "Interface/BetaFuncBank.hh" using namespace std; BetaFuncBank::BetaFuncBank() { dz=0; zStart=0; zEnd=0; z = NULL; bz = NULL; beta = NULL; alpha = NULL; pz = NULL; emittance = NULL; kappa = NULL; } BetaFuncBank::BetaFuncBank(const BetaFuncBank& rhs) { dz=0; zStart=0; zEnd=0; z = NULL; bz = NULL; beta = NULL; alpha = NULL; pz = NULL; emittance = NULL; kappa = NULL; *this = rhs; } BetaFuncBank::~BetaFuncBank() { DeleteArrays(); } const BetaFuncBank& BetaFuncBank::operator= (const BetaFuncBank& rhs) { if (this==&rhs) return *this; dz = rhs.dz; zStart = rhs.zStart; zEnd = rhs.zEnd; nSteps = rhs.nSteps; quadBAtPoleTip = rhs.quadBAtPoleTip; quadZ = rhs.quadZ; quadRadiusAtPoleTip = rhs.quadRadiusAtPoleTip; quadEffectiveLength = rhs.quadEffectiveLength; DeleteArrays(); NewArrays(); for(int i=0; i inputVariables; double aSingleInput; while(fin) { for(int i=0; i<9; i++) { fin >> aSingleInput; inputVariables.push_back(aSingleInput); } } nSteps = ((int)inputVariables.size()/9)-1; if(z!=NULL) DeleteArrays(); NewArrays(); for(int i=0; i