21 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;
83 float inny=ih->globalPosition().y();
84 float outy=oh->globalPosition().y();
85 float innx=ih->globalPosition().x();
86 float outx=oh->globalPosition().x();;
87 float dxdy=
abs((outx-innx)/(outy-inny));
88 float DeltaR=oh->globalPosition().perp()-ih->globalPosition().perp();;
90 if( InTheBarrel && (
abs(z_diff)<30)
97 if (seedfromoverlaps){
102 if ((DeltaR<0)&&(
abs(z_diff)<18)&&(
abs(ih->globalPosition().phi()-oh->globalPosition().phi())<0.05)&&(dxdy<2)) result.push_back(
OrderedHitPair(ih, oh));
110 if( InTheForward && (
abs(z_diff) > 1.)) {
const DetLayer * layer() const
SeedingHitSet::ConstRecHitPointer InnerRecHit
const LayerWithHits * theOuterLayer
Abs< T >::type abs(const T &t)
const LayerWithHits * theInnerLayer
~CosmicHitPairGeneratorFromLayerPair()
const TrackerGeometry * trackerGeometry
void hitPairs(const TrackingRegion &ar, OrderedHitPairs &ap, const edm::EventSetup &iSetup)
GlobalPoint globalPosition() const final
T const * product() const
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
CosmicHitPairGeneratorFromLayerPair(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
SeedingHitSet::ConstRecHitPointer OuterRecHit