Go to the documentation of this file.
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 TrackerGeomDet * idToDet(DetId) const override
constexpr double deltaPhi(double phi1, double phi2)
static constexpr float B_field
constexpr Detector det() const
get the detector field from this detid
Class to store the L1 Track Trigger tracks.
virtual const Topology & topology() const
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
T curvature(T InversePt, const edm::EventSetup &iSetup)
Sin< T >::type sin(const T &t)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
float rInvFrom2(std::vector< TTTrack< Ref_Phase2TrackerDigi_ > >::const_iterator trk, const TrackerGeometry *tkGeometry)
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/SLHCTrackerTriggerSWTo...
const Plane & surface() const
The nominal surface of the GeomDet.
Cos< T >::type cos(const T &t)
static constexpr float local_c_light
Class to store the L1 Track Trigger stubs.
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
double rinv(double phi1, double phi2, double r1, double r2)
float pTFrom2(std::vector< TTTrack< Ref_Phase2TrackerDigi_ > >::const_iterator trk, const TrackerGeometry *tkGeometry)
static constexpr auto TOB
Abs< T >::type abs(const T &t)
Geom::Phi< T > phi() const
static constexpr auto TID