30 std::vector<const DetLayer*>
result;
33 pushResult(result, theOuterBarrelLayers);
34 pushResult(result, theOuterBackwardLayers);
35 pushResult(result, theOuterForwardLayers);
37 pushResult(result, theInnerBarrelLayers);
38 reverse(result.begin(), result.end());
39 pushResult(result, theInnerBackwardLayers);
40 pushResult(result, theInnerForwardLayers);
43 result.reserve(result.size());
49 std::vector<const DetLayer*>
result;
52 pushResult(result, theOuterBarrelLayers, fts);
53 pushResult(result, theOuterBackwardLayers, fts);
54 pushResult(result, theOuterForwardLayers, fts);
56 pushResult(result, theInnerBarrelLayers, fts);
57 reverse(result.begin(), result.end());
58 pushResult(result, theInnerBackwardLayers, fts);
59 pushResult(result, theInnerForwardLayers, fts);
61 result.reserve(result.size());
66 std::vector<const DetLayer*>
result;
69 pushResult(result, theAllOuterBarrelLayers);
70 pushResult(result, theAllOuterBackwardLayers);
71 pushResult(result, theAllOuterForwardLayers);
73 pushResult(result, theAllInnerBarrelLayers);
74 reverse(result.begin(), result.end());
75 pushResult(result, theAllInnerBackwardLayers);
76 pushResult(result, theAllInnerForwardLayers);
79 result.reserve(result.size());
85 std::vector<const DetLayer*>
result;
88 pushCompatibleResult(result, theAllOuterBarrelLayers, fts);
89 pushCompatibleResult(result, theAllOuterBackwardLayers, fts);
90 pushCompatibleResult(result, theAllOuterForwardLayers, fts);
92 pushCompatibleResult(result, theAllInnerBarrelLayers, fts);
93 reverse(result.begin(), result.end());
94 pushCompatibleResult(result, theAllInnerBackwardLayers, fts);
95 pushCompatibleResult(result, theAllInnerForwardLayers, fts);
97 result.reserve(result.size());
102 for (
MapBI i = map.begin();
i != map.end();
i++)
103 result.push_back((*i).first);
107 for (
MapEI i = map.begin();
i != map.end();
i++)
108 result.push_back((*i).first);
114 for (
MapBI i = map.begin();
i != map.end();
i++)
116 result.push_back((*i).first);
122 for (
MapEI i = map.begin();
i != map.end();
i++)
124 result.push_back((*i).first);
131 for (
MapBI i = map.begin();
i != map.end();
i++)
132 if ((*i).second.isCompatible(range))
133 result.push_back((*i).first);
140 for (
MapEI i = map.begin();
i != map.end();
i++)
141 if ((*i).second.isCompatible(range))
142 result.push_back((*i).first);
148 edm::LogError(
"MuonBarrelNavigableLayer") <<
"MuonBarrelNavigableLayer::setDetLayer called!! " << endl;
std::vector< const DetLayer * > compatibleLayers(NavigationDirection dir) const override
void pushResult(std::vector< const DetLayer * > &result, const MapB &map) const
std::vector< const DetLayer * > nextLayers(NavigationDirection dir) const override
NavigableLayer interface.
MapB::const_iterator MapBI
std::map< const BarrelDetLayer *, MuonEtaRange, MuonDetLayerComp > MapB
Log< level::Error, false > LogError
const uint16_t range(const Frame &aFrame)
void setDetLayer(const DetLayer *) override
set DetLayer
void setInwardCompatibleLinks(const MapB &)
MapE::const_iterator MapEI
const DetLayer * detLayer() const override
return DetLayer
std::map< const ForwardDetLayer *, MuonEtaRange, MuonDetLayerComp > MapE
GlobalPoint position() const
void setInwardLinks(const MapB &)
set inward links
void pushCompatibleResult(std::vector< const DetLayer * > &result, const MapB &map, const FreeTrajectoryState &fts) const