88 ? pixIdHelper->
eta_module(tsf.associatedDetectorElementIdentifier())
89 : sctIdHelper->
eta_module(tsf.associatedDetectorElementIdentifier());
93 size_t newCapacity = surfaces.size() + 19;
94 if (pElement->
otherSide()) newCapacity += 19;
95 surfaces.reserve(newCapacity);
130 (*(surf[
offset])).associatedDetectorElementIdentifier())
132 (*(surf[
offset])).associatedDetectorElementIdentifier());
135 etamod > (etaModule + 1)) {
136 offset += (std::as_const(*m_singleBinUtils).at(
bin))->
bins();
140 double PrevDeltaPhi = 9999.;
141 double NextDeltaPhi = -9999.;
143 if (
etamod == (etaModule-1) ) {
144 if( tsf.center().phi() == (*(surf[
ss])).center().phi() )
145 samePhi_PrevEta = surf[
ss];
146 double DeltaPhi = tsf.center().phi() - (*(surf[
ss])).center().phi();
147 if( DeltaPhi < PrevDeltaPhi && DeltaPhi > 0) {
148 previousPhi_PrevEta = surf[
ss];
149 PrevDeltaPhi = DeltaPhi;
151 if( DeltaPhi > NextDeltaPhi && DeltaPhi < 0) {
152 nextPhi_PrevEta = surf[
ss];
153 NextDeltaPhi = DeltaPhi;
155 }
else if (
etamod == (etaModule+1) ) {
156 if( tsf.center().phi() == (*(surf[
ss])).center().phi() )
157 samePhi_NextEta = surf[
ss];
158 double DeltaPhi = tsf.center().phi() - (*(surf[
ss])).center().phi();
159 if( DeltaPhi < PrevDeltaPhi && DeltaPhi > 0) {
160 previousPhi_NextEta = surf[
ss];
161 PrevDeltaPhi = DeltaPhi;
164 if( DeltaPhi > NextDeltaPhi && DeltaPhi < 0) {
165 nextPhi_NextEta = surf[
ss];
166 NextDeltaPhi = DeltaPhi;
170 offset += (std::as_const(*m_singleBinUtils).at(
bin))->
bins();
173 if (samePhi_PrevEta) {
175 if (PhiEta_Element) {
181 if (previousPhi_PrevEta) {
183 if (PhiEta_Element) {
192 if (nextPhi_PrevEta) {
194 if (PhiEta_Element) {
203 if (samePhi_NextEta) {
205 if (PhiEta_Element) {
211 if (previousPhi_NextEta) {
213 if (PhiEta_Element) {
222 if (nextPhi_NextEta) {
224 if (PhiEta_Element) {