From 17c30c5bb735f8551819d45354b857ef00ee7a59 Mon Sep 17 00:00:00 2001 From: shahoian Date: Tue, 15 Dec 2009 12:52:14 +0000 Subject: [PATCH] Fix for the loophole in the magnets currents check: the L3Off/DipON was passing the check --- STEER/AliMagF.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/STEER/AliMagF.cxx b/STEER/AliMagF.cxx index b8b03c7e309..a0fa318227d 100644 --- a/STEER/AliMagF.cxx +++ b/STEER/AliMagF.cxx @@ -473,12 +473,12 @@ AliMagF* AliMagF::CreateFieldMap(Float_t l3Cur, Float_t diCur, Int_t convention, } } // - if (sclDip!=0 && (map==k5kG || map==k2kG) && - ((convention==kConvLHC && l3Pol!=diPol) || - (convention==kConvDCS2008 && l3Pol==diPol)) ) { - AliErrorGeneral("AliMagF",Form("Wrong combination for L3/Dipole polarities (%c/%c) for convention %d", - l3Pol>0?'+':'-',diPol>0?'+':'-',GetPolarityConvention())); - return 0; + 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", + l3Pol>0?'+':'-',diPol>0?'+':'-',GetPolarityConvention())); + return 0; + } } // if (l3Pol<0) sclL3 = -sclL3; -- 2.43.0