is supposed to correspond to proton
//
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;