22 m_addMoreSurfaces(addMoreSurfaces),
23 m_etaSlices(eta_slices)
29 std::vector<Trk::SurfaceIntersection>& cSurfaces,
47 size_t newCapacity = cSurfaces.size() + 2;
57 cSurfaces.reserve(newCapacity);
61 double positionPhi =
pos.phi() +
M_PI;
87 unsigned int next = 1;
91 currentElement = currentElement->
nextInEta();
99 unsigned int prev = 1;
101 while (currentElement and prev<(
unsigned int)
m_etaSlices) {
103 currentElement = currentElement->
prevInEta();
104 if (currentElement) {
114 if (surfacePhi < positionPhi) {
122 double positionEta =
pos.eta();
123 double surfaceEta = tsf.
center().eta();
124 int side = (sElement->
isBarrel() || surfaceEta > 0.) ? 1 : -1;
126 if (
side * surfaceEta <
side * positionEta) {
145 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
150 const SCT_ID* sctIdHelper =
nullptr;
151 if (
detStore->retrieve(sctIdHelper,
"SCT_ID").isFailure()) {
157 std::cout <<
"Dumping Surfaces for SCT with size = " << surfaces.size() << std::endl;
158 for (
auto & surface : surfaces) {
159 Identifier hitId = (surface.object)->associatedDetectorElementIdentifier();
160 std::cout <<
"barrel_ec " <<
m_sctIdHelper.load()->barrel_ec(hitId)