X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliMagF.cxx;h=70eea8dfa43f772e32c6543b89099a1be5a1c9c6;hb=5b2a2954350aec02f3f52faff64a3879f864c4b1;hp=e709b6ef71f3408e96346e2c1902be93ed86bcd2;hpb=3b94b44f104f5256c9c5fdc4789da24a82ce386b;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliMagF.cxx b/STEER/AliMagF.cxx index e709b6ef71f..70eea8dfa43 100644 --- a/STEER/AliMagF.cxx +++ b/STEER/AliMagF.cxx @@ -127,7 +127,7 @@ AliMagF::AliMagF(const char *name, const char* title, Double_t factorSol, Double // if (fBeamEnergy<=0 && fBeamType!=kNoBeamField) { if (fBeamType == kBeamTypepp) fBeamEnergy = 7000.; // max proton energy - else if (fBeamType == kBeamTypeAA) fBeamEnergy = 2750; // max PbPb energy + else if (fBeamType == kBeamTypeAA) fBeamEnergy = 2760; // max PbPb energy AliInfo("Maximim possible beam energy for requested beam is assumed"); } const char* parname = 0; @@ -524,7 +524,7 @@ AliMagF* AliMagF::CreateFieldMap(Float_t l3Cur, Float_t diCur, Int_t convention, else if (btypestr.Contains(protonBeam)) btype = kBeamTypepp; else AliInfoGeneral("AliMagF",Form("Assume no LHC magnet field for the beam type %s, ",beamtype)); char ttl[80]; - sprintf(ttl,"L3: %+5d Dip: %+4d kA; %s | Polarities in %s convention",(int)TMath::Sign(l3Cur,float(sclL3)), + snprintf(ttl,79,"L3: %+5d Dip: %+4d kA; %s | Polarities in %s convention",(int)TMath::Sign(l3Cur,float(sclL3)), (int)TMath::Sign(diCur,float(sclDip)),uniform ? " Constant":"", convention==kConvLHC ? "LHC":"DCS2008"); // LHC and DCS08 conventions have opposite dipole polarities