CMS 3D CMS Logo

BTLNavigableLayer.h
Go to the documentation of this file.
1 #ifndef Navigation_BTLNavigableLayer_H
2 #define Navigation_BTLNavigableLayer_H
3 
14 /* Collaborating Class Declarations */
17 
18 class DetLayer;
19 class BarrelDetLayer;
20 
21 /* Base Class Headers */
23 /* C++ Headers */
24 
25 /* ====================================================================== */
26 
27 /* Class BTLNavigableLayer Interface */
28 
30 public:
33  const MapB& outerBarrel,
34  const MapB& innerBarrel,
35  const MapE& outerBackward,
36  const MapE& outerForward,
37  const MapE& innerBackward,
38  const MapE& innerForward)
39  : theDetLayer(bdl),
40  theOuterBarrelLayers(outerBarrel),
41  theInnerBarrelLayers(innerBarrel),
42  theOuterBackwardLayers(outerBackward),
43  theInnerBackwardLayers(innerBackward),
44  theOuterForwardLayers(outerForward),
45  theInnerForwardLayers(innerForward) {}
46 
48  const MapB& outerBarrel,
49  const MapB& innerBarrel,
50  const MapE& outerBackward,
51  const MapE& outerForward,
52  const MapE& innerBackward,
53  const MapE& innerForward,
54  const MapB& allOuterBarrel,
55  const MapB& allInnerBarrel,
56  const MapE& allOuterBackward,
57  const MapE& allOuterForward,
58  const MapE& allInnerBackward,
59  const MapE& allInnerForward)
60  : theDetLayer(bdl),
61  theOuterBarrelLayers(outerBarrel),
62  theInnerBarrelLayers(innerBarrel),
63  theOuterBackwardLayers(outerBackward),
64  theInnerBackwardLayers(innerBackward),
65  theOuterForwardLayers(outerForward),
66  theInnerForwardLayers(innerForward),
67  theAllOuterBarrelLayers(allOuterBarrel),
68  theAllInnerBarrelLayers(allInnerBarrel),
69  theAllOuterBackwardLayers(allOuterBackward),
70  theAllInnerBackwardLayers(allInnerBackward),
71  theAllOuterForwardLayers(allOuterForward),
72  theAllInnerForwardLayers(allInnerForward) {}
73 
75  BTLNavigableLayer(BarrelDetLayer* bdl, const MapB& outerBarrel, const MapE& outerBackward, const MapE& outerForward)
76  : theDetLayer(bdl),
77  theOuterBarrelLayers(outerBarrel),
78  theOuterBackwardLayers(outerBackward),
79  theOuterForwardLayers(outerForward) {}
80 
82  const MapB& outerBarrel,
83  const MapE& outerBackward,
84  const MapE& outerForward,
85  const MapB& allOuterBarrel,
86  const MapE& allOuterBackward,
87  const MapE& allOuterForward)
88  : theDetLayer(bdl),
89  theOuterBarrelLayers(outerBarrel),
90  theOuterBackwardLayers(outerBackward),
91  theOuterForwardLayers(outerForward),
92  theAllOuterBarrelLayers(allOuterBarrel),
93  theAllOuterBackwardLayers(allOuterBackward),
94  theAllOuterForwardLayers(allOuterForward) {}
95 
97  std::vector<const DetLayer*> nextLayers(NavigationDirection dir) const override;
98 
100  std::vector<const DetLayer*> nextLayers(const FreeTrajectoryState& fts, PropagationDirection dir) const override;
101 
102  std::vector<const DetLayer*> compatibleLayers(NavigationDirection dir) const override;
103 
105  std::vector<const DetLayer*> compatibleLayers(const FreeTrajectoryState& fts,
106  PropagationDirection dir) const override;
107 
109  const DetLayer* detLayer() const override;
110 
112  void setDetLayer(const DetLayer*) override;
113 
120 
127 
129  void setInwardLinks(const MapB&);
130  void setInwardCompatibleLinks(const MapB&);
131 
132 private:
133  void pushResult(std::vector<const DetLayer*>& result, const MapB& map) const;
134 
135  void pushResult(std::vector<const DetLayer*>& result, const MapE& map) const;
136 
137  void pushResult(std::vector<const DetLayer*>& result, const MapB& map, const FreeTrajectoryState& fts) const;
138 
139  void pushResult(std::vector<const DetLayer*>& result, const MapE& map, const FreeTrajectoryState& fts) const;
140  void pushCompatibleResult(std::vector<const DetLayer*>& result,
141  const MapB& map,
142  const FreeTrajectoryState& fts) const;
143 
144  void pushCompatibleResult(std::vector<const DetLayer*>& result,
145  const MapE& map,
146  const FreeTrajectoryState& fts) const;
147 
148 private:
162 };
163 #endif
BTLNavigableLayer::setInwardCompatibleLinks
void setInwardCompatibleLinks(const MapB &)
Definition: BTLNavigableLayer.cc:147
BTLNavigableLayer::getOuterBackwardLayers
MapE getOuterBackwardLayers() const
Definition: BTLNavigableLayer.h:116
BTLNavigableLayer::theAllOuterForwardLayers
MapE theAllOuterForwardLayers
Definition: BTLNavigableLayer.h:160
DetLayer
Definition: DetLayer.h:21
BTLNavigableLayer::getOuterForwardLayers
MapE getOuterForwardLayers() const
Definition: BTLNavigableLayer.h:118
BTLNavigableLayer::theOuterForwardLayers
MapE theOuterForwardLayers
Definition: BTLNavigableLayer.h:154
BTLNavigableLayer::getInnerBackwardLayers
MapE getInnerBackwardLayers() const
Definition: BTLNavigableLayer.h:117
BTLNavigableLayer::theAllOuterBarrelLayers
MapB theAllOuterBarrelLayers
Definition: BTLNavigableLayer.h:156
BTLNavigableLayer::detLayer
const DetLayer * detLayer() const override
return DetLayer
Definition: BTLNavigableLayer.cc:140
BTLNavigableLayer::theDetLayer
const BarrelDetLayer * theDetLayer
Definition: BTLNavigableLayer.h:149
BTLNavigableLayer::BTLNavigableLayer
BTLNavigableLayer(const BarrelDetLayer *bdl, const MapB &outerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapB &allOuterBarrel, const MapE &allOuterBackward, const MapE &allOuterForward)
Definition: BTLNavigableLayer.h:81
MTDDetLayerMap.h
BTLNavigableLayer::theInnerBarrelLayers
MapB theInnerBarrelLayers
Definition: BTLNavigableLayer.h:151
BTLNavigableLayer::getAllInnerForwardLayers
MapE getAllInnerForwardLayers() const
Definition: BTLNavigableLayer.h:126
BTLNavigableLayer
Definition: BTLNavigableLayer.h:29
BTLNavigableLayer::theInnerBackwardLayers
MapE theInnerBackwardLayers
Definition: BTLNavigableLayer.h:153
BTLNavigableLayer::getInnerBarrelLayers
MapB getInnerBarrelLayers() const
Definition: BTLNavigableLayer.h:115
BTLNavigableLayer::setDetLayer
void setDetLayer(const DetLayer *) override
set DetLayer
Definition: BTLNavigableLayer.cc:142
BTLNavigableLayer::getAllOuterForwardLayers
MapE getAllOuterForwardLayers() const
Definition: BTLNavigableLayer.h:125
MTDNavigableLayer.h
BTLNavigableLayer::theOuterBarrelLayers
MapB theOuterBarrelLayers
Definition: BTLNavigableLayer.h:150
BTLNavigableLayer::getAllInnerBackwardLayers
MapE getAllInnerBackwardLayers() const
Definition: BTLNavigableLayer.h:124
BTLNavigableLayer::BTLNavigableLayer
BTLNavigableLayer(BarrelDetLayer *bdl, const MapB &outerBarrel, const MapB &innerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapE &innerBackward, const MapE &innerForward)
Constructor.
Definition: BTLNavigableLayer.h:32
BTLNavigableLayer::theAllInnerBarrelLayers
MapB theAllInnerBarrelLayers
Definition: BTLNavigableLayer.h:157
BTLNavigableLayer::getOuterBarrelLayers
MapB getOuterBarrelLayers() const
Definition: BTLNavigableLayer.h:114
BTLNavigableLayer::theAllOuterBackwardLayers
MapE theAllOuterBackwardLayers
Definition: BTLNavigableLayer.h:158
BTLNavigableLayer::BTLNavigableLayer
BTLNavigableLayer(BarrelDetLayer *bdl, const MapB &outerBarrel, const MapB &innerBarrel, const MapE &outerBackward, const MapE &outerForward, const MapE &innerBackward, const MapE &innerForward, const MapB &allOuterBarrel, const MapB &allInnerBarrel, const MapE &allOuterBackward, const MapE &allOuterForward, const MapE &allInnerBackward, const MapE &allInnerForward)
Definition: BTLNavigableLayer.h:47
MTDNavigableLayer
Definition: MTDNavigableLayer.h:25
BTLNavigableLayer::getAllOuterBarrelLayers
MapB getAllOuterBarrelLayers() const
Definition: BTLNavigableLayer.h:121
BTLNavigableLayer::theInnerForwardLayers
MapE theInnerForwardLayers
Definition: BTLNavigableLayer.h:155
MapB
std::map< const BarrelDetLayer *, MTDEtaRange, MTDDetLayerComp > MapB
Definition: MTDDetLayerMap.h:36
BTLNavigableLayer::getInnerForwardLayers
MapE getInnerForwardLayers() const
Definition: BTLNavigableLayer.h:119
BarrelDetLayer
Definition: BarrelDetLayer.h:22
BTLNavigableLayer::getAllOuterBackwardLayers
MapE getAllOuterBackwardLayers() const
Definition: BTLNavigableLayer.h:123
BTLNavigableLayer::theAllInnerForwardLayers
MapE theAllInnerForwardLayers
Definition: BTLNavigableLayer.h:161
MTDEtaRange.h
NavigationDirection
NavigationDirection
Definition: NavigationDirection.h:4
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
MapE
std::map< const ForwardDetLayer *, MTDEtaRange, MTDDetLayerComp > MapE
Definition: MTDDetLayerMap.h:37
BTLNavigableLayer::getAllInnerBarrelLayers
MapB getAllInnerBarrelLayers() const
Definition: BTLNavigableLayer.h:122
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
BTLNavigableLayer::compatibleLayers
std::vector< const DetLayer * > compatibleLayers(NavigationDirection dir) const override
Definition: BTLNavigableLayer.cc:60
BTLNavigableLayer::pushCompatibleResult
void pushCompatibleResult(std::vector< const DetLayer * > &result, const MapB &map, const FreeTrajectoryState &fts) const
Definition: BTLNavigableLayer.cc:122
mps_fire.result
result
Definition: mps_fire.py:303
genParticles_cff.map
map
Definition: genParticles_cff.py:11
BTLNavigableLayer::nextLayers
std::vector< const DetLayer * > nextLayers(NavigationDirection dir) const override
NavigableLayer interface.
Definition: BTLNavigableLayer.cc:24
BTLNavigableLayer::BTLNavigableLayer
BTLNavigableLayer(BarrelDetLayer *bdl, const MapB &outerBarrel, const MapE &outerBackward, const MapE &outerForward)
Constructor with outer layers only.
Definition: BTLNavigableLayer.h:75
BTLNavigableLayer::theOuterBackwardLayers
MapE theOuterBackwardLayers
Definition: BTLNavigableLayer.h:152
BTLNavigableLayer::theAllInnerBackwardLayers
MapE theAllInnerBackwardLayers
Definition: BTLNavigableLayer.h:159
BTLNavigableLayer::pushResult
void pushResult(std::vector< const DetLayer * > &result, const MapB &map) const
Definition: BTLNavigableLayer.cc:96
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
BTLNavigableLayer::setInwardLinks
void setInwardLinks(const MapB &)
set inward links
Definition: BTLNavigableLayer.cc:146