CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LayerCollector.h
Go to the documentation of this file.
1 #ifndef TkNavigation_LayerCollector_H_
2 #define TkNavigation_LayerCollector_H_
3 
16 
17 
18 
19 
21 
22 private:
23 
26  typedef std::pair<float, float> Range;
27 
28 public:
29 
30  LayerCollector(const Propagator* aPropagator,
31  const StartingLayerFinder* aFinder,
32  float dr,
33  float dz) :
34  thePropagator(aPropagator),
35  theStartingLayerFinder(aFinder),
36  theDeltaR(dr),
37  theDeltaZ(dz) { }
38 
40 
41  std::vector<const DetLayer*> allLayers(const FTS& aFts) const;
42  std::vector<const BarrelDetLayer*> barrelLayers(const FTS& aFts) const;
43  std::vector<const ForwardDetLayer*> forwardLayers(const FTS& aFts) const;
44 
45  const Propagator* propagator() const {return thePropagator;}
47  float deltaR() const {return theDeltaR;}
48  float deltaZ() const {return theDeltaZ;}
49 
50 private:
51 
54  float theDeltaR;
55  float theDeltaZ;
56 
57 
58 
59  inline bool rangesIntersect( const Range& a, const Range& b) const {
60  if ( a.first > b.second || b.first > a.second) return false;
61  else return true;
62  }
63 
64 
65 };
66 
67 #endif //TR_LayerCollector_H_
const Propagator * thePropagator
float deltaR() const
std::vector< const ForwardDetLayer * > forwardLayers(const FTS &aFts) const
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(const Propagator *aPropagator, const StartingLayerFinder *aFinder, float dr, float dz)