CMS 3D CMS Logo

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,
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
std::vector< const ForwardDetLayer * > forwardLayers(const FTS &aFts) const
std::vector< const DetLayer * > allLayers(const FTS &aFts) const
NavigationSchool const * theSchool
TrajectoryStateOnSurface TSOS
std::pair< float, float > Range
float deltaZ() const
float deltaR() const
double b
Definition: hdecay.h:118
LayerCollector(NavigationSchool const *aSchool, const Propagator *aPropagator, const MeasurementTracker *tracker, float dr, float dz)
bool rangesIntersect(const Range &a, const Range &b) const
double a
Definition: hdecay.h:119
std::vector< const BarrelDetLayer * > barrelLayers(const FTS &aFts) const
const Propagator * propagator() const
FreeTrajectoryState FTS