CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DetLayer.cc
Go to the documentation of this file.
3 #include <algorithm>
4 
5 using namespace std;
6 
7 DetLayer::~DetLayer() { delete theNavigableLayer;}
8 
9 
12  theNavigableLayer = nlp;
13 
14  //nlp=0 amount to cleaning the link. do nothing further
15  if (nlp){
16  if (nlp->detLayer() != this) {
17  if (nlp->detLayer() != 0) {
18  edm::LogWarning("DetLayers") << "DetLayer Warning: my navigable layer does not point to me. "
19  << " Correcting..." ;
20  }
21  theNavigableLayer->setDetLayer( this);
22  }
23  }//nlp!=0
24 }
25 
26 vector<const DetLayer*>
28  PropagationDirection timeDirection) const {
29  return theNavigableLayer
30  ? theNavigableLayer->nextLayers( fts, timeDirection)
31  : vector<const DetLayer*>();
32 }
33 
34 vector<const DetLayer*>
36  return theNavigableLayer
37  ? theNavigableLayer->nextLayers( direction)
38  : vector<const DetLayer*>();
39 }
40 
41 vector<const DetLayer*>
43  PropagationDirection timeDirection) const {
44  return theNavigableLayer
45  ? theNavigableLayer->compatibleLayers( fts, timeDirection)
46  : vector<const DetLayer*>();
47 }
48 
49 
50 vector<const DetLayer*>
52  PropagationDirection timeDirection,
53  int& counter) const {
54  return theNavigableLayer
55  ? theNavigableLayer->compatibleLayers( fts, timeDirection,counter)
56  : vector<const DetLayer*>();
57 }
58 
59 vector<const DetLayer*>
61  return theNavigableLayer
62  ? theNavigableLayer->compatibleLayers( direction)
63  : vector<const DetLayer*>();
64 }
65 
66 
virtual DetLayer * detLayer() const =0
virtual void setNavigableLayer(NavigableLayer *nlp)
Set the NavigableLayer associated with this DetLayer.
Definition: DetLayer.cc:10
virtual std::vector< const DetLayer * > nextLayers(NavigationDirection direction) const
Definition: DetLayer.cc:35
PropagationDirection
virtual ~DetLayer()
Definition: DetLayer.cc:7
std::vector< const DetLayer * > compatibleLayers(NavigationDirection direction) const
Definition: DetLayer.cc:60