CMS 3D CMS Logo

SimpleNavigableLayer.h
Go to the documentation of this file.
1 #ifndef TkNavigation_SimpleNavigableLayer_H
2 #define TkNavigation_SimpleNavigableLayer_H
4 
8 
12 
13 #include <vector>
14 
15 class GtfPropagator;
16 
21 public:
22  typedef std::vector<const DetLayer*> DLC;
23  typedef std::vector<const BarrelDetLayer*> BDLC;
24  typedef std::vector<const ForwardDetLayer*> FDLC;
25 
26  SimpleNavigableLayer(const MagneticField* field, float eps, bool checkCrossingSide = true)
27  : theField(field), theEpsilon(eps), theCheckCrossingSide(checkCrossingSide), theSelfSearch(false) {}
28 
29  virtual void setInwardLinks(const BDLC&, const FDLC&, TkLayerLess sorter = TkLayerLess(outsideIn)) = 0;
30 
31  virtual void setAdditionalLink(const DetLayer*, NavigationDirection direction = insideOut) = 0;
32 
33  void setCheckCrossingSide(bool docheck) { theCheckCrossingSide = docheck; }
34 
36  std::vector<const DetLayer*> compatibleLayers(const FreeTrajectoryState& fts,
37  PropagationDirection timeDirection,
38  int& counter) const final;
39 
40 protected:
42  float theEpsilon;
44 
45 public:
47 
48 protected:
49  typedef BDLC::iterator BDLI;
50  typedef FDLC::iterator FDLI;
51  typedef BDLC::const_iterator ConstBDLI;
52  typedef FDLC::const_iterator ConstFDLI;
54 
55  bool wellInside(const FreeTrajectoryState& fts,
57  const BarrelDetLayer* bl,
58  DLC& result) const dso_internal;
59 
60  bool wellInside(const FreeTrajectoryState& fts,
62  const ForwardDetLayer* bl,
63  DLC& result) const dso_internal;
64 
65  bool wellInside(const FreeTrajectoryState& fts,
67  ConstBDLI begin,
68  ConstBDLI end,
69  DLC& result) const dso_internal;
70 
71  bool wellInside(const FreeTrajectoryState& fts,
73  const DLC& layers,
74  DLC& result) const dso_internal;
75 
76  bool wellInside(const FreeTrajectoryState& fts,
78  ConstFDLI begin,
79  ConstFDLI end,
80  DLC& result) const dso_internal;
81 
83  AnalyticalPropagator aPropagator(theField);
84  aPropagator.setPropagationDirection(dir);
85  return aPropagator;
86  }
87 
88  TSOS crossingState(const FreeTrajectoryState& fts, PropagationDirection dir) const dso_internal;
89 };
90 
91 #endif // SimpleNavigableLayer_H
TrajectoryStateOnSurface TSOS
virtual void setPropagationDirection(PropagationDirection dir)
Definition: Propagator.h:130
PropagationDirection
virtual std::vector< const DetLayer * > compatibleLayers(NavigationDirection direction) const =0
SimpleNavigableLayer(const MagneticField *field, float eps, bool checkCrossingSide=true)
std::vector< const ForwardDetLayer * > FDLC
FDLC::const_iterator ConstFDLI
std::vector< const DetLayer * > DLC
#define dso_internal
Definition: Visibility.h:13
AnalyticalPropagator propagator(PropagationDirection dir) const
#define dso_hidden
Definition: Visibility.h:12
void setCheckCrossingSide(bool docheck)
const MagneticField * theField
BDLC::const_iterator ConstBDLI
std::vector< const BarrelDetLayer * > BDLC