12 tanLorentzAnglePerTesla_(conf.getParameter<double>(
"TanLorentzAnglePerTesla")) {
20 auto const& topo = *
p.topology;
21 float ix = cluster.
center() - 0.5f *
p.coveredStrips;
24 LocalPoint lp(topo.localX(ix), topo.localY(iy), 0);
26 return std::make_pair(lp,
p.localErr);
35 float dir_x = -langle * lbfield.
y();
36 float dir_y = langle * lbfield.
x();
47 for (
unsigned int i = 3;
i < 7; ++
i) {
48 LogDebug(
"LookingForFirstPhase2OT") <<
" Subdetector " <<
i <<
" GeomDetEnumerator " 56 LogDebug(
"LookingForFirstPhase2OT") <<
" Chosen offset: " <<
m_off;
60 for (
auto i =
m_off;
i != dus.size(); ++
i) {
67 auto pitch_x =
p.topology->pitch().first;
68 auto pitch_y =
p.topology->pitch().second;
74 p.coveredStrips = lvec.x() / pitch_x;
76 constexpr
float o12 = 1. / 12;
77 p.localErr =
LocalError(o12 * pitch_x * pitch_x, 0, o12 * pitch_y * pitch_y);
float getLorentzAngle(const uint32_t &) const
std::vector< Param > m_Params
T getParameter(std::string const &) const
Local3DVector LocalVector
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
float tanLorentzAnglePerTesla_
unsigned int offsetDU(SubDetector sid) const
LocalVector drift(const StripGeomDetUnit *, const MagneticField &, const SiStripLorentzAngle &)
const SiPhase2OuterTrackerLorentzAngle & lorentzAngleMap_
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
virtual float thickness() const =0
LocalVector driftDirection(const Phase2TrackerGeomDetUnit &det) const
std::pair< LocalPoint, LocalError > LocalValues
Phase2StripCPE(edm::ParameterSet &conf, const MagneticField &, const TrackerGeometry &, const SiPhase2OuterTrackerLorentzAngle &)
DetId geographicalId() const
The label of this GeomDet.
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
unsigned int column() const
const Plane & surface() const
The nominal surface of the GeomDet.
const PositionType & position() const
constexpr uint32_t rawId() const
get the raw id
bool use_LorentzAngle_DB_
const TrackerGeometry & geom_
LocalValues localParameters(const Phase2TrackerCluster1D &cluster, const GeomDetUnit &det) const override
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
const MagneticField & magfield_
constexpr SubDetector tkDetEnum[8]
const Bounds & bounds() const