5 #include "vdt/vdtMath.h"
14 :
StripCPE(conf, mag, geom, lorentz, backPlaneCorrection, confObj, latency )
15 ,
useLegacyError(conf.existsAs<bool>(
"useLegacyError") ? conf.getParameter<bool>(
"useLegacyError") :
true)
16 ,
maxChgOneMIP(conf.existsAs<float>(
"maxChgOneMIP") ? conf.getParameter<double>(
"maxChgOneMIP") : -6000.),
35 auto uerr = (N <= 4) ? fun(uProj) :
mHC_P[loc-3][0]+float(N)*
mHC_P[loc-3][1];
42 return float(N*N)/12.f;
58 auto const &
p = par.p;
61 auto afp = par.afullProjection;
63 auto fill = [&](
unsigned int i,
float uerr2) {
64 const float strip = clusters[
i]->barycenter() +
corr;
65 retValues[
i].first =
p.topology->localPosition(strip, ltp.
vector());
66 retValues[
i].second =
p.topology->localError(strip, uerr2, ltp.
vector());
72 for (
auto i=0U; i< clusters.
size(); ++
i) {
74 auto N = clusters[
i]->amplitudes().
size();
80 for (
auto i=0U; i< clusters.
size(); ++
i) {
81 auto N = clusters[
i]->amplitudes().
size();
87 for (
auto i=0U; i< clusters.
size(); ++
i) {
88 auto N = clusters[
i]->amplitudes().
size();
100 auto const &
p = par.
p;
101 auto const & ltp = par.
ltp;
127 return std::make_pair(
p.topology->localPosition(strip, ltp.vector()),
128 p.topology->localError(strip, uerr2, ltp.vector()) );
float legacyStripErrorSquared(const unsigned N, const float uProj) const
T getParameter(std::string const &) const
StripCPEfromTrackAngle(edm::ParameterSet &conf, const MagneticField &mag, const TrackerGeometry &geom, const SiStripLorentzAngle &lorentz, const SiStripBackPlaneCorrection &backPlaneCorrection, const SiStripConfObject &confObj, const SiStripLatency &latency)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
void localParameters(AClusters const &clusters, ALocalValues &retValues, const GeomDetUnit &gd, const LocalTrajectoryParameters <p) const override
SiStripDetId::SubDetector loc
std::pair< LocalPoint, LocalError > LocalValues
AlgebraicVector5 vector() const
AlgoParam getAlgoParam(const GeomDetUnit &det, const LocalTrajectoryParameters <p) const
const LocalTrajectoryParameters & ltp
unsigned int size() const
const std::vector< uint8_t > & amplitudes() const
float stripErrorSquared(const unsigned N, const float uProj, const SiStripDetId::SubDetector loc) const