CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleNavigableLayer.h
Go to the documentation of this file.
1 #ifndef TkNavigation_SimpleNavigableLayer_H
2 #define TkNavigation_SimpleNavigableLayer_H
3 
7 
11 
12 #include <vector>
13 
14 class GtfPropagator;
15 
20 public:
21 
22  typedef std::vector<const DetLayer*> DLC;
23  typedef std::vector<BarrelDetLayer*> BDLC;
24  typedef std::vector<ForwardDetLayer*> FDLC;
25 
26  SimpleNavigableLayer( const MagneticField* field,float eps,bool checkCrossingSide=true) :
27  thePropagator(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(DetLayer*, NavigationDirection direction=insideOut) = 0;
32 
33  void setCheckCrossingSide(bool docheck) {theCheckCrossingSide = docheck;}
34 
35 
36  virtual std::vector< const DetLayer * > compatibleLayers (const FreeTrajectoryState &fts,
37  PropagationDirection timeDirection,
38  int& counter) const GCC11_FINAL;
39 
40 protected:
41 
43  float theEpsilon;
45 public:
47 protected:
48 
49  typedef BDLC::iterator BDLI;
50  typedef FDLC::iterator FDLI;
51  typedef BDLC::const_iterator ConstBDLI;
52  typedef FDLC::const_iterator ConstFDLI;
54 
55 
57  const BarrelDetLayer* bl, DLC& result) const dso_internal;
58 
60  const ForwardDetLayer* bl, DLC& result) const dso_internal;
61 
64 
66  const DLC& layers, DLC& result) const dso_internal;
67 
70 
72  thePropagator.setPropagationDirection(dir);
73  return thePropagator;
74  }
75 
77 
78 };
79 
80 #endif // SimpleNavigableLayer_H
TrajectoryStateOnSurface TSOS
virtual std::vector< const DetLayer * > compatibleLayers(const FreeTrajectoryState &fts, PropagationDirection timeDirection, int &counter) const GCC11_FINAL
std::vector< BarrelDetLayer * > BDLC
PropagationDirection
TSOS crossingState(const FreeTrajectoryState &fts, PropagationDirection dir) const dso_internal
virtual void setInwardLinks(const BDLC &, const FDLC &, TkLayerLess sorter=TkLayerLess(outsideIn))=0
SimpleNavigableLayer(const MagneticField *field, float eps, bool checkCrossingSide=true)
bool wellInside(const FreeTrajectoryState &fts, PropagationDirection dir, const BarrelDetLayer *bl, DLC &result) const dso_internal
#define GCC11_FINAL
tuple result
Definition: query.py:137
FDLC::const_iterator ConstFDLI
std::vector< const DetLayer * > DLC
#define dso_internal
Definition: Visibility.h:13
#define end
Definition: vmac.h:38
Propagator & propagator(PropagationDirection dir) const
virtual void setAdditionalLink(DetLayer *, NavigationDirection direction=insideOut)=0
std::vector< ForwardDetLayer * > FDLC
void setCheckCrossingSide(bool docheck)
#define begin
Definition: vmac.h:31
AnalyticalPropagator thePropagator
dbl *** dir
Definition: mlp_gen.cc:35
BDLC::const_iterator ConstBDLI