CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LayerCollector.h
Go to the documentation of this file.
1 #ifndef TkNavigation_LayerCollector_H_
2 #define TkNavigation_LayerCollector_H_
3 
16 
17 class NavigationSchool;
18 
20 private:
23  typedef std::pair<float, float> Range;
24 
25 public:
27  const Propagator* aPropagator,
28  const MeasurementTracker* tracker,
29  float dr,
30  float dz)
31  : theSchool(aSchool),
32  thePropagator(aPropagator),
33  theStartingLayerFinder{*aPropagator, *tracker},
34  theDeltaR(dr),
35  theDeltaZ(dz) {}
36 
37  std::vector<const DetLayer*> allLayers(const FTS& aFts) const;
38  std::vector<const BarrelDetLayer*> barrelLayers(const FTS& aFts) const;
39  std::vector<const ForwardDetLayer*> forwardLayers(const FTS& aFts) const;
40 
41  const Propagator* propagator() const { return thePropagator; }
42  float deltaR() const { return theDeltaR; }
43  float deltaZ() const { return theDeltaZ; }
44 
45 private:
49  float theDeltaR;
50  float theDeltaZ;
51 
52  inline bool rangesIntersect(const Range& a, const Range& b) const {
53  if (a.first > b.second || b.first > a.second)
54  return false;
55  else
56  return true;
57  }
58 };
59 
60 #endif //TR_LayerCollector_H_
const StartingLayerFinder theStartingLayerFinder
const Propagator * thePropagator
float deltaR() const
std::vector< const ForwardDetLayer * > forwardLayers(const FTS &aFts) const
NavigationSchool const * theSchool
TrajectoryStateOnSurface TSOS
bool rangesIntersect(const Range &a, const Range &b) const
std::vector< const BarrelDetLayer * > barrelLayers(const FTS &aFts) const
std::pair< float, float > Range
float deltaZ() const
const Propagator * propagator() const
std::vector< const DetLayer * > allLayers(const FTS &aFts) const
double b
Definition: hdecay.h:118
LayerCollector(NavigationSchool const *aSchool, const Propagator *aPropagator, const MeasurementTracker *tracker, float dr, float dz)
double a
Definition: hdecay.h:119
FreeTrajectoryState FTS