20 : TTRHbuilder(nullptr),
21 trackerGeometry(nullptr),
24 theInnerLayer(
inner) {
53 bool seedfromoverlaps =
false;
54 bool InTheBarrel =
false;
55 bool InTheForward =
false;
62 float radius1 = dynamic_cast<const BarrelDetLayer*>(
theInnerLayer->
layer())->specificSurface().radius();
63 float radius2 = dynamic_cast<const BarrelDetLayer*>(
theOuterLayer->
layer())->specificSurface().radius();
64 seedfromoverlaps = (
abs(radius1 - radius2) < 0.1) ?
true :
false;
67 vector<OrderedHitPair> allthepairs;
74 auto oh = static_cast<BaseTrackerRecHit const* const>(*ohh);
75 auto ih = static_cast<BaseTrackerRecHit const* const>(*ihh);
77 float z_diff = ih->globalPosition().z() - oh->globalPosition().z();
78 float inny = ih->globalPosition().y();
79 float outy = oh->globalPosition().y();
80 float innx = ih->globalPosition().x();
81 float outx = oh->globalPosition().x();
83 float dxdy =
abs((outx - innx) / (outy - inny));
84 float DeltaR = oh->globalPosition().perp() - ih->globalPosition().perp();
90 && (dxdy < 2) && (inny * outy > 0) && (
abs(
DeltaR) > 0)) {
92 if (seedfromoverlaps) {
98 (
abs(ih->globalPosition().phi() - oh->globalPosition().phi()) < 0.05) && (dxdy < 2))
103 if (InTheForward && (
abs(z_diff) > 1.)) {