Bool_t AliMagF::LoadParameterization()
{
if (fMeasuredMap) {
- AliError(Form("Field data %s are already loaded from %s\n",GetParamName(),GetDataFileName()));
- return kTRUE;
+ AliFatal(Form("Field data %s are already loaded from %s\n",GetParamName(),GetDataFileName()));
}
//
char* fname = gSystem->ExpandPathName(GetDataFileName());
if (TMath::Abs((sclDip=diCur/diNominalCurrent)-1.) > tolerance && !uniform) {
if (diCur <= zero) sclDip = 0.; // some small current.. -> Dipole OFF
else {
- AliErrorGeneral("AliMagF",Form("Wrong dipole current (%f A)!",diCur));
- return 0;
+ AliFatalGeneral("AliMagF",Form("Wrong dipole current (%f A)!",diCur));
}
}
//
else if (TMath::Abs((sclL3=l3Cur/l3NominalCurrent2)-1.) < tolerance) map = k2kG;
else if (l3Cur <= zero && diCur<=zero) { sclL3=0; sclDip=0; map = k5kGUniform;}
else {
- AliErrorGeneral("AliMagF",Form("Wrong L3 current (%f A)!",l3Cur));
- return 0;
+ AliFatalGeneral("AliMagF",Form("Wrong L3 current (%f A)!",l3Cur));
}
}
//
if (sclDip!=0 && map!=k5kGUniform) {
if ( (l3Cur<=zero) || ((convention==kConvLHC && l3Pol!=diPol) || (convention==kConvDCS2008 && l3Pol==diPol)) ) {
- AliErrorGeneral("AliMagF",Form("Wrong combination for L3/Dipole polarities (%c/%c) for convention %d",
+ AliFatalGeneral("AliMagF",Form("Wrong combination for L3/Dipole polarities (%c/%c) for convention %d",
l3Pol>0?'+':'-',diPol>0?'+':'-',GetPolarityConvention()));
- return 0;
}
}
//