20 : TTRHbuilder(0),trackerGeometry(0),
22 theOuterLayer(outer), theInnerLayer(inner)
55 bool seedfromoverlaps=
false;
56 bool InTheBarrel =
false;
57 bool InTheForward =
false;
61 else InTheForward =
true;
66 seedfromoverlaps=(
abs(radius1-radius2)<0.1) ?
true :
false;
70 vector<OrderedHitPair> allthepairs;
76 std::vector<const TrackingRecHit*>::const_iterator ohh;
79 std::vector<const TrackingRecHit*>::const_iterator ihh;
83 float z_diff =ih->globalPosition().z()-oh->globalPosition().z();
84 float inny=ih->globalPosition().y();
85 float outy=oh->globalPosition().y();
86 float innx=ih->globalPosition().x();
87 float outx=oh->globalPosition().x();;
88 float dxdy=
abs((outx-innx)/(outy-inny));
89 float DeltaR=oh->globalPosition().perp()-ih->globalPosition().perp();;
91 if( InTheBarrel && (
abs(z_diff)<30)
98 if (seedfromoverlaps){
103 if ((DeltaR<0)&&(
abs(z_diff)<18)&&(
abs(ih->globalPosition().phi()-oh->globalPosition().phi())<0.05)&&(dxdy<2)) result.push_back(
OrderedHitPair(ih, oh));
111 if( InTheForward && (
abs(z_diff) > 1.)) {
const DetLayer * layer() const
const LayerWithHits * theOuterLayer
TransientTrackingRecHit::ConstRecHitPointer TkHitPairsCachedHit
Abs< T >::type abs(const T &t)
const LayerWithHits * theInnerLayer
const TrackerGeometry * trackerGeometry
T const * product() const
virtual void hitPairs(const TrackingRegion &ar, OrderedHitPairs &ap, const edm::EventSetup &iSetup)
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
CosmicHitPairGeneratorFromLayerPair(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)