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) {
144 ISvcLocator* svcLocator = Gaudi::svcLocator();
148 if (svcLocator->service(
"DetectorStore",
detStore).isFailure()) {
152 const SCT_ID* sctIdHelper =
nullptr;
153 if (
detStore->retrieve(sctIdHelper,
"SCT_ID").isFailure()) {
159 std::cout <<
"Dumping Surfaces for SCT with size = " << surfaces.size() << std::endl;
160 for (
auto & surface : surfaces) {
161 Identifier hitId = (surface.object)->associatedDetectorElementIdentifier();
162 std::cout <<
"barrel_ec " <<
m_sctIdHelper.load()->barrel_ec(hitId)