12 hits.reserve(bucket.size());
14 [](
const SpacePointBucket::value_type& hit){return hit.get();});
21 if (
hits.empty())
return;
25 const double dZ =
a->positionInChamber().
z() -
b->positionInChamber().z();
29 return a->positionInChamber().
y() <
b->positionInChamber().y();
37 using LayerCounting = std::unordered_map<Identifier, unsigned int>;
38 LayerCounting mdtLayerCounting{}, stripLayerCounting{};
40 auto push_StripHit = [
this, &stripLayerCounting](
const Identifier& layId,
const SpacePoint* hit) {
41 const unsigned int layer = stripLayerCounting.insert(std::make_pair(layId,stripLayerCounting.size())).
first->second;
47 if (pushTo.capacity() == pushTo.size()){
48 pushTo.reserve(pushTo.size() + 5);
50 pushTo.push_back(hit);
56 switch (hit->type()) {
58 const MdtIdHelper& idHelper{idHelperSvc->mdtIdHelper()};
59 const Identifier layId = idHelper.channelID(idHelper.stationName(
id), 1, idHelper.stationPhi(
id),
60 idHelper.multilayer(
id), idHelper.tubeLayer(
id), 1);
62 const unsigned int layer = mdtLayerCounting.insert(std::make_pair(layId, mdtLayerCounting.size())).
first->second;
67 if (pushTo.capacity() == pushTo.size()){
68 pushTo.reserve(pushTo.size() + 5);
70 pushTo.push_back(hit);
74 hit->primaryMeasurement()->identifierHash()) {
79 const RpcIdHelper& idHelper{idHelperSvc->rpcIdHelper()};
81 const Identifier layId = idHelper.panelID(idHelper.stationName(
id), 1, idHelper.stationPhi(
id),
82 idHelper.doubletR(
id), 1, 1, idHelper.gasGap(
id),
false);
83 push_StripHit(layId, hit);
86 const TgcIdHelper& idHelper{idHelperSvc->tgcIdHelper()};
87 const Identifier layId = idHelper.channelID(idHelper.stationName(
id), 1, 1, idHelper.gasGap(
id),
false, 1);
88 push_StripHit(layId, hit);
91 const sTgcIdHelper& idHelper{idHelperSvc->stgcIdHelper()};
92 const Identifier layId = idHelper.channelID(idHelper.stationName(
id), 1, 1,
93 idHelper.multilayer(
id), idHelper.gasGap(
id),
94 sTgcIdHelper::sTgcChannelTypes::Strip, 1);
95 push_StripHit(layId, hit);
98 const MmIdHelper& idHelper{idHelperSvc->mmIdHelper()};
99 const Identifier layId = idHelper.channelID(idHelper.stationName(
id), 1, 1,
100 idHelper.multilayer(
id), idHelper.gasGap(
id), 500);
101 push_StripHit(layId, hit);