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,
28  const StartingLayerFinder* aFinder,
29  float dr,
30  float dz)
31  : theSchool(aSchool), thePropagator(aPropagator), theStartingLayerFinder(aFinder), theDeltaR(dr), theDeltaZ(dz) {}
32 
34 
35  std::vector<const DetLayer*> allLayers(const FTS& aFts) const;
36  std::vector<const BarrelDetLayer*> barrelLayers(const FTS& aFts) const;
37  std::vector<const ForwardDetLayer*> forwardLayers(const FTS& aFts) const;
38 
39  const Propagator* propagator() const { return thePropagator; }
41  float deltaR() const { return theDeltaR; }
42  float deltaZ() const { return theDeltaZ; }
43 
44 private:
48  float theDeltaR;
49  float theDeltaZ;
50 
51  inline bool rangesIntersect(const Range& a, const Range& b) const {
52  if (a.first > b.second || b.first > a.second)
53  return false;
54  else
55  return true;
56  }
57 };
58 
59 #endif //TR_LayerCollector_H_
Propagator.h
TrajectoryStateOnSurface.h
FreeTrajectoryState.h
LayerCollector::theStartingLayerFinder
const StartingLayerFinder * theStartingLayerFinder
Definition: LayerCollector.h:47
LayerCollector::forwardLayers
std::vector< const ForwardDetLayer * > forwardLayers(const FTS &aFts) const
Definition: LayerCollector.cc:66
LayerCollector
Definition: LayerCollector.h:19
LayerCollector::LayerCollector
LayerCollector(NavigationSchool const *aSchool, const Propagator *aPropagator, const StartingLayerFinder *aFinder, float dr, float dz)
Definition: LayerCollector.h:26
NavigationSchool
Definition: NavigationSchool.h:18
LayerCollector::deltaZ
float deltaZ() const
Definition: LayerCollector.h:42
LayerCollector::TSOS
TrajectoryStateOnSurface TSOS
Definition: LayerCollector.h:22
LayerCollector::barrelLayers
std::vector< const BarrelDetLayer * > barrelLayers(const FTS &aFts) const
Definition: LayerCollector.cc:54
Propagator
Definition: Propagator.h:44
LayerCollector::allLayers
std::vector< const DetLayer * > allLayers(const FTS &aFts) const
Definition: LayerCollector.cc:7
LayerCollector::Range
std::pair< float, float > Range
Definition: LayerCollector.h:23
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
LayerCollector::theDeltaR
float theDeltaR
Definition: LayerCollector.h:48
LayerCollector::~LayerCollector
~LayerCollector()
Definition: LayerCollector.h:33
LayerCollector::FTS
FreeTrajectoryState FTS
Definition: LayerCollector.h:21
LayerCollector::propagator
const Propagator * propagator() const
Definition: LayerCollector.h:39
LayerCollector::theDeltaZ
float theDeltaZ
Definition: LayerCollector.h:49
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
LayerCollector::thePropagator
const Propagator * thePropagator
Definition: LayerCollector.h:46
BarrelDetLayer.h
LayerCollector::finder
const StartingLayerFinder * finder() const
Definition: LayerCollector.h:40
LayerCollector::theSchool
NavigationSchool const * theSchool
Definition: LayerCollector.h:45
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
PVValHelper::dz
Definition: PVValidationHelpers.h:50
LayerCollector::deltaR
float deltaR() const
Definition: LayerCollector.h:41
ForwardDetLayer.h
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
LayerCollector::rangesIntersect
bool rangesIntersect(const Range &a, const Range &b) const
Definition: LayerCollector.h:51
StartingLayerFinder.h
StartingLayerFinder
Definition: StartingLayerFinder.h:27