16 : peakMode_(
latency.singleReadOutMode() == 1),
20 BackPlaneCorrectionMap_(BackPlaneCorrection) {
21 typedef std::map<std::string, SiStripModuleGeometry> map_t;
39 static_cast<unsigned int>(
40 max_element(
modules.begin(),
modules.end(), [&](
auto& arg1,
auto& arg2) {
return arg1.second < arg2.second; })
48 xtalk2S(
"xtalk2_" +
it->first + modeS);
51 throw cms::Exception(
"SiStripConfObject does not contain: ") << xtalk1S;
53 throw cms::Exception(
"SiStripConfObject does not contain: ") << xtalk2S;
55 xtalk1[
static_cast<int>(
it->second)] = confObj.
get<
double>(xtalk1S);
56 xtalk2[
static_cast<int>(
it->second)] = confObj.
get<
double>(xtalk2S);
66 const float fullProjection =
67 p.coveredStrips(
p.drift +
LocalVector(0, 0, -
p.thickness),
p.topology->localPosition(barycenter));
68 const float strip = barycenter - 0.5f * (1.f -
p.backplanecorrection) * fullProjection;
70 return std::make_pair(
p.topology->localPosition(
strip),
p.topology->localError(
strip, 1.
f / 12.
f));
82 float dir_x = -tanLorentzAnglePerTesla * lbfield.
y();
83 float dir_y = tanLorentzAnglePerTesla * lbfield.
x();
92 for (
unsigned int i = 1;
i < 7; ++
i) {
105 LogDebug(
"LookingForFirstStrip") <<
" Chosen offset: " <<
m_off;
107 for (
auto i =
m_off;
i != dus.size(); ++
i) {
116 p.thickness =
bounds.thickness();
117 p.invThickness = 1.f /
p.thickness;
120 p.nstrips =
p.topology->nstrips();
std::pair< LocalPoint, LocalError > LocalValues
Local3DVector LocalVector
Point3DBase< Scalar, LocalTag > LocalPoint
StripCPE(edm::ParameterSet &conf, const MagneticField &, const TrackerGeometry &, const SiStripLorentzAngle &, const SiStripBackPlaneCorrection &, const SiStripConfObject &, const SiStripLatency &)
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
unsigned int offsetDU(SubDetector sid) const
StripTopology const * topology
Param const & param(const GeomDetUnit &det) const
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
const TrackerGeometry & geom_
U second(std::pair< T, U > const &p)
const SiStripLorentzAngle & LorentzAngleMap_
bool isParameter(const std::string &name) const
std::vector< float > xtalk1
float getBackPlaneCorrection(const uint32_t &) const
const Topology & topology() const override
Returns a reference to the strip proxy topology.
float localPitch(const LocalPoint &) const override
virtual StripGeomDetType const & specificType() const
const MagneticField & magfield_
virtual const TopologyType & specificTopology() const
bool isTrackerStrip() const
virtual float coveredStrips(const LocalPoint &lp1, const LocalPoint &lp2) const
DetId geographicalId() const
The label of this GeomDet.
float stripLength() const override
float angularWidth() const override
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &cl, const GeomDetUnit &) const override
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
Detector identifier class for the strip tracker.
const SiStripBackPlaneCorrection & BackPlaneCorrectionMap_
float getLorentzAngle(const uint32_t &) const
const Plane & surface() const
The nominal surface of the GeomDet.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
const PositionType & position() const
constexpr uint32_t rawId() const
get the raw id
std::vector< float > xtalk2
const GeomDetType & type() const override
valueType get(const std::string &name) const
float coveredStrips(const LocalVector &, const LocalPoint &) const
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
LocalVector driftDirection(const StripGeomDetUnit *det) const override
Power< A, B >::type pow(const A &a, const B &b)
constexpr SubDetector tkDetEnum[8]
const Bounds & bounds() const