CMS 3D CMS Logo

MuRingForwardDoubleLayer.h
Go to the documentation of this file.
1 #ifndef DetLayers_MuRingForwardDoubleLayer_H
2 #define DetLayers_MuRingForwardDoubleLayer_H
3 
14 
15 class ForwardDetRing;
16 class ForwardDetRingBuilder;
17 class GeomDet;
18 
20 public:
22  MuRingForwardDoubleLayer(const std::vector<const ForwardDetRing*>& frontRings,
23  const std::vector<const ForwardDetRing*>& backRings);
24 
26 
27  // GeometricSearchDet interface
28 
29  const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComponents; }
30 
31  const std::vector<const GeometricSearchDet*>& components() const override { return theComponents; }
32 
33  bool isInsideOut(const TrajectoryStateOnSurface& tsos) const;
34 
35  // tries closest layer first
36  std::pair<bool, TrajectoryStateOnSurface> compatible(const TrajectoryStateOnSurface&,
37  const Propagator&,
38  const MeasurementEstimator&) const override;
39 
40  std::vector<DetWithState> compatibleDets(const TrajectoryStateOnSurface& startingState,
41  const Propagator& prop,
42  const MeasurementEstimator& est) const override;
43 
44  std::vector<DetGroup> groupedCompatibleDets(const TrajectoryStateOnSurface& startingState,
45  const Propagator& prop,
46  const MeasurementEstimator& est) const override;
47 
48  // DetLayer interface
49  SubDetector subDetector() const override { return theBackLayer.subDetector(); }
50 
51  // Extension of the interface
52 
54  virtual const std::vector<const ForwardDetRing*>& rings() const { return theRings; }
55 
56  bool isCrack(const GlobalPoint& gp) const;
57 
58  const MuRingForwardLayer* frontLayer() const { return &theFrontLayer; }
59  const MuRingForwardLayer* backLayer() const { return &theBackLayer; }
60 
61  void selfTest() const;
62 
63 protected:
64  BoundDisk* computeSurface() override;
65 
66 private:
69  std::vector<const ForwardDetRing*> theRings;
70  std::vector<const GeometricSearchDet*> theComponents; // duplication of the above
71  std::vector<const GeomDet*> theBasicComponents; // All chambers
72 };
73 #endif
MuRingForwardDoubleLayer::MuRingForwardDoubleLayer
MuRingForwardDoubleLayer(const std::vector< const ForwardDetRing * > &frontRings, const std::vector< const ForwardDetRing * > &backRings)
Constructor, takes ownership of pointers.
Definition: MuRingForwardDoubleLayer.cc:21
GeomDetEnumerators::SubDetector
SubDetector
Definition: GeomDetEnumerators.h:10
MeasurementEstimator
Definition: MeasurementEstimator.h:19
MuRingForwardDoubleLayer::theComponents
std::vector< const GeometricSearchDet * > theComponents
Definition: MuRingForwardDoubleLayer.h:70
GeomDet
Definition: GeomDet.h:27
MuRingForwardDoubleLayer::isInsideOut
bool isInsideOut(const TrajectoryStateOnSurface &tsos) const
Definition: MuRingForwardDoubleLayer.cc:70
BoundDisk
MuRingForwardDoubleLayer::computeSurface
BoundDisk * computeSurface() override
Definition: MuRingForwardDoubleLayer.cc:51
MuRingForwardDoubleLayer::components
const std::vector< const GeometricSearchDet * > & components() const override
Definition: MuRingForwardDoubleLayer.h:31
Propagator
Definition: Propagator.h:44
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MuRingForwardLayer
Definition: MuRingForwardLayer.h:18
MuRingForwardDoubleLayer::compatibleDets
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
Definition: MuRingForwardDoubleLayer.cc:113
MuRingForwardDoubleLayer::isCrack
bool isCrack(const GlobalPoint &gp) const
Definition: MuRingForwardDoubleLayer.cc:163
MuRingForwardDoubleLayer::theBasicComponents
std::vector< const GeomDet * > theBasicComponents
Definition: MuRingForwardDoubleLayer.h:71
Point3DBase< float, GlobalTag >
MuRingForwardLayer.h
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
MuRingForwardDoubleLayer::theRings
std::vector< const ForwardDetRing * > theRings
Definition: MuRingForwardDoubleLayer.h:69
MuRingForwardLayer::subDetector
SubDetector subDetector() const override
Definition: MuRingForwardLayer.cc:184
RingedForwardLayer
BaseBinFinder.h
MuRingForwardDoubleLayer::basicComponents
const std::vector< const GeomDet * > & basicComponents() const override
Definition: MuRingForwardDoubleLayer.h:29
RingedForwardLayer.h
MuRingForwardDoubleLayer::frontLayer
const MuRingForwardLayer * frontLayer() const
Definition: MuRingForwardDoubleLayer.h:58
MuRingForwardDoubleLayer::theBackLayer
MuRingForwardLayer theBackLayer
Definition: MuRingForwardDoubleLayer.h:68
MuRingForwardDoubleLayer::selfTest
void selfTest() const
Definition: MuRingForwardDoubleLayer.cc:184
MuRingForwardDoubleLayer::subDetector
SubDetector subDetector() const override
Definition: MuRingForwardDoubleLayer.h:49
MuRingForwardDoubleLayer::groupedCompatibleDets
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
Definition: MuRingForwardDoubleLayer.cc:140
MuRingForwardDoubleLayer::theFrontLayer
MuRingForwardLayer theFrontLayer
Definition: MuRingForwardDoubleLayer.h:67
MuRingForwardDoubleLayer::compatible
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const override
Definition: MuRingForwardDoubleLayer.cc:74
MuRingForwardDoubleLayer::backLayer
const MuRingForwardLayer * backLayer() const
Definition: MuRingForwardDoubleLayer.h:59
MuRingForwardDoubleLayer
Definition: MuRingForwardDoubleLayer.h:19
MuRingForwardDoubleLayer::~MuRingForwardDoubleLayer
~MuRingForwardDoubleLayer() override
Definition: MuRingForwardDoubleLayer.h:25
ForwardDetRing
Definition: ForwardDetRing.h:11
MuRingForwardDoubleLayer::rings
virtual const std::vector< const ForwardDetRing * > & rings() const
Return the vector of rings.
Definition: MuRingForwardDoubleLayer.h:54