]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix in LHC magnets initialization convention: for pA beams the provided energy
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Jun 2013 23:58:34 +0000 (23:58 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Jun 2013 23:58:34 +0000 (23:58 +0000)
is supposed to correspond to proton

STEER/STEERBase/AliMagF.cxx

index 363841a47caac510b43c83de7e258c4a2b4ec7de..54fcb2dc1a67be195e6ee3812718bc39b83c11b1 100644 (file)
@@ -263,7 +263,9 @@ void AliMagF::InitMachineField(BeamType_t btype, Double_t benergy)
   //
   double rigScale = benergy/7000.;   // scale according to ratio of E/Enominal
   // for ions assume PbPb (with energy provided per nucleon) and account for A/Z
-  if (btype==kBeamTypeAA || btype==kBeamTypepA || btype==kBeamTypeAp) rigScale *= 208./82.;
+  if (btype==kBeamTypeAA/* || btype==kBeamTypepA || btype==kBeamTypeAp */) rigScale *= 208./82.;
+  // Attention: in p-Pb the energy recorded in the GRP is the PROTON energy, no rigidity
+  // rescaling is needed
   //
   fQuadGradient = 22.0002*rigScale;
   fDipoleField  = 37.8781*rigScale;