29 const GeomDetUnit* det0 = theTrackerGeom_->idToDetUnit( stDetId+1 );
30 const GeomDetUnit* det1 = theTrackerGeom_->idToDetUnit( stDetId+2 );
37 std::pair< float, float > pitch0 = top0->
pitch();
38 std::pair< float, float > pitch1 = top1->
pitch();
43 int ratio = cols0/cols1;
44 int segment0 = floor( mp0.
y() /
ratio );
49 if ( mPerformZMatching2S && ( segment0 != floor( mp1.
y() ) ) )
54 if ( mPerformZMatchingPS && ( segment0 != floor( mp1.
y() ) ) )
59 double R0 = det0->position().perp();
61 double Z0 = det0->position().z();
67 double alpha = atan2(DR,DZ);
88 double dispD = 2 * (mp1.
x() - mp0.
x()) * (pitch0.first / pitch1.first);
89 int dispI = ((dispD>0)-(dispD<0))*floor(
std::abs(dispD));
95 double offsetD = 2 * delta * ( mp0.
x() - (top0->
nrows()/2 - 0.5) ) * (pitch0.first / pitch1.first);
96 int offsetI = ((offsetD>0)-(offsetD<0))*floor(
std::abs(offsetD));
100 int layer = theTrackerTopo_->layer(stDetId);
101 int ladder = theTrackerTopo_->tobRod(stDetId);
102 int type = 2*theTrackerTopo_->tobSide(stDetId)-3;
107 corr = (barrelNTilt.at(layer)+1)/2.;
108 ladder = corr-(corr-
ladder)*type;
109 window = 2*(tiltedCut.at(layer)).at(ladder);
113 window = 2*barrelCut.at( layer );
119 window = 2*(ringCut.at( theTrackerTopo_->tidWheel(stDetId))).at(theTrackerTopo_->tidRing(stDetId));
125 aConfirmation =
true;
126 aDisplacement = dispI;
virtual int nrows() const =0
Sin< T >::type sin(const T &t)
virtual std::pair< float, float > pitch() const =0
DetId getDetId() const
Detector element.
const Surface::PositionType & position() const
The position (origin of the R.F.)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
void PatternHitCorrelation(bool &aConfirmation, int &aDisplacement, int &anOffset, const TTStub< T > &aTTStub) const
Matching operations.
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Class to store the L1 Track Trigger stubs.
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual int ncolumns() const =0
const edm::Ref< edmNew::DetSetVector< TTCluster< T > >, TTCluster< T > > & getClusterRef(unsigned int hitIdentifier) const
Clusters composing the Stub.