Definition at line 103 of file MultipleScatteringUpdator.cc.
References a, beta, GetRecoTauVFromDQM_MC_cff::cl, gather_cfg::cout, edmIntegrityCheck::d, MillePedeFileConverter_cfg::e, TrajectoryStateOnSurface::globalMomentum(), MediumProperties::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localMomentum(), cmsBatch::log, funct::m, PV3DBase< T, PVType, FrameType >::mag(), MaterialEffectsUpdator::mass(), LocalTrajectoryError::matrix(), Surface::mediumProperties(), AlCaHLTBitMon_ParallelJobs::p, PV3DBase< T, PVType, FrameType >::perp(), ALCARECOTkAlMinBias_cff::pMin, MediumProperties::radLen(), mathSSE::sqrt(), TrajectoryStateOnSurface::surface(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
121 float xf = 1./fabs(d.
z());
123 const float amscon = 1.8496e-4;
124 const float m =
mass;
125 float e =
sqrt(p*p + m*m);
128 float radLen = mp.
radLen()*xf;
132 float a = (1. + 0.038*
log(radLen))/(beta*p); a *=
a;
133 sigt2 = amscon*radLen*
a;
141 float error2_QoverP = covMatrix(0,0);
145 sigt2 *= (1. + (p*
p) * error2_QoverP *
146 (1. + 5*m*m/(e*e) + 3*m*m*beta*beta*error2_QoverP));
154 float betaMin = pMin/
sqrt(pMin * pMin + m*m);
155 float a_max = (1. + 0.038*
log(radLen))/(betaMin * pMin); a_max *= a_max;
156 float sigt2_max = amscon*radLen*a_max;
157 if (sigt2 > sigt2_max) sigt2 = sigt2_max;
159 std::cout<<
" after P constraint ("<<pMin<<
") = "<<
sqrt(sigt2);
160 std::cout<<
" for track with 1/p="<<1/p<<
"+-"<<
sqrt(error2_QoverP)<<std::endl;
170 std::cout <<
"old " << sigt2*(sf*sf*cl*cl + cf*cf)/(cl*cl*cl*cl)
171 <<
" " << sigt2*(cf*sf*sl*sl )/(cl*cl*cl*cl)
172 <<
" " << sigt2*(cf*cf*cl*cl + sf*sf)/(cl*cl*cl*cl) << std::endl;
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
LocalVector localMomentum() const
const SurfaceType & surface() const
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
GlobalVector globalMomentum() const
const MediumProperties & mediumProperties() const