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 
18 class NavigationSchool;
19 
21 
22 private:
23 
26  typedef std::pair<float, float> Range;
27 
28 public:
29 
31  const Propagator* aPropagator,
32  const StartingLayerFinder* aFinder,
33  float dr,
34  float dz) :
35  theSchool(aSchool),
36  thePropagator(aPropagator),
37  theStartingLayerFinder(aFinder),
38  theDeltaR(dr),
39  theDeltaZ(dz) { }
40 
42 
43  std::vector<const DetLayer*> allLayers(const FTS& aFts) const;
44  std::vector<const BarrelDetLayer*> barrelLayers(const FTS& aFts) const;
45  std::vector<const ForwardDetLayer*> forwardLayers(const FTS& aFts) const;
46 
47  const Propagator* propagator() const {return thePropagator;}
49  float deltaR() const {return theDeltaR;}
50  float deltaZ() const {return theDeltaZ;}
51 
52 private:
56  float theDeltaR;
57  float theDeltaZ;
58 
59 
60 
61  inline bool rangesIntersect( const Range& a, const Range& b) const {
62  if ( a.first > b.second || b.first > a.second) return false;
63  else return true;
64  }
65 
66 
67 };
68 
69 #endif //TR_LayerCollector_H_
const Propagator * thePropagator
float deltaR() const
std::vector< const ForwardDetLayer * > forwardLayers(const FTS &aFts) const
NavigationSchool const * theSchool
TrajectoryStateOnSurface TSOS
const StartingLayerFinder * finder() const
bool rangesIntersect(const Range &a, const Range &b) const
const StartingLayerFinder * theStartingLayerFinder
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:120
double a
Definition: hdecay.h:121
FreeTrajectoryState FTS
LayerCollector(NavigationSchool const *aSchool, const Propagator *aPropagator, const StartingLayerFinder *aFinder, float dr, float dz)