16 : peakMode_(latency.singleReadOutMode() == 1),
19 LorentzAngleMap_(LorentzAngle),
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; })
46 for (map_t::const_iterator it = modules.begin(); it != modules.end(); it++) {
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 =
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 float coveredStrips(const LocalPoint &lp1, const LocalPoint &lp2) const
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
StripTopology const * topology
constexpr uint32_t rawId() const
get the raw id
const Bounds & bounds() const
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
const TrackerGeometry & geom_
const Plane & surface() const
The nominal surface of the GeomDet.
float backplanecorrection
bool isTrackerStrip() const
U second(std::pair< T, U > const &p)
const SiStripLorentzAngle & LorentzAngleMap_
std::vector< float > xtalk1
float getLorentzAngle(const uint32_t &) const
virtual StripGeomDetType const & specificType() const
unsigned int offsetDU(SubDetector sid) const
virtual const TopologyType & specificTopology() const
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
DetId geographicalId() const
The label of this GeomDet.
const MagneticField & magfield_
float coveredStrips(const LocalVector &, const LocalPoint &) const
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_
valueType get(const std::string &name) const
virtual LocalError localError(float strip, float stripErr2) const =0
std::vector< float > xtalk2
Param const & param(const GeomDetUnit &det) const
virtual LocalPoint localPosition(float strip) const =0
const GeomDetType & type() const override
bool isParameter(const std::string &name) const
const PositionType & position() const
tuple size
Write out results.
LocalVector driftDirection(const StripGeomDetUnit *det) const override
Power< A, B >::type pow(const A &a, const B &b)
constexpr SubDetector tkDetEnum[8]
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.