18 std::vector<std::vector<float> > riPhiStubs(0);
21 vecStubRefs = trk->getStubRefs();
24 int rsize = vecStubRefs.size();
25 for (
int j = 0;
j < rsize; ++
j) {
42 std::vector<float>
tmp(0);
43 float Rad =
sqrt(stubPosition.
x() * stubPosition.
x() + stubPosition.
y() * stubPosition.
y() + stubPosition.
z() +
45 float r_i =
sqrt(stubPosition.
x() * stubPosition.
x() + stubPosition.
y() * stubPosition.
y());
46 float phi_i = stubPosition.
phi();
52 riPhiStubs.push_back(
tmp);
56 std::sort(riPhiStubs.begin(), riPhiStubs.end());
58 float nr1 = (riPhiStubs[0])[1];
59 float nphi1 = (riPhiStubs[0])[2];
61 float nr2 = (riPhiStubs[1])[1];
62 float nphi2 = (riPhiStubs[1])[2];
66 float ndist =
sqrt(nr2 * nr2 + nr1 * nr1 - 2 * nr1 * nr2 *
cos(
dPhi));
const edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > & clusterRef(unsigned int hitStackMember) const
Clusters composing the Stub – see https://twiki.cern.ch/twiki/bin/viewauth/CMS/SLHCTrackerTriggerSWT...
constexpr double deltaPhi(double phi1, double phi2)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
virtual const Topology & topology() const
Geom::Phi< T > phi() const
Sin< T >::type sin(const T &t)
static constexpr float B_field
constexpr Detector det() const
get the detector field from this detid
T curvature(T InversePt, const MagneticField &field)
float rInvFrom2(std::vector< TTTrack< Ref_Phase2TrackerDigi_ > >::const_iterator trk, const TrackerGeometry *tkGeometry)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
Class to store the L1 Track Trigger stubs.
const TrackerGeomDet * idToDet(DetId) const override
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const Plane & surface() const
The nominal surface of the GeomDet.
Class to store the L1 Track Trigger tracks.
double rinv(double phi1, double phi2, double r1, double r2)
static constexpr float local_c_light
float pTFrom2(std::vector< TTTrack< Ref_Phase2TrackerDigi_ > >::const_iterator trk, const TrackerGeometry *tkGeometry)
static constexpr auto TID