CMS 3D CMS Logo

MTDSectorForwardDoubleLayer.h
Go to the documentation of this file.
1 #ifndef RecoMTD_DetLayers_MTDSectorForwardDoubleLayer_H
2 #define RecoMTD_DetLayers_MTDSectorForwardDoubleLayer_H
3 
7 
8 class MTDDetSector;
9 class GeomDet;
10 
12 public:
14  MTDSectorForwardDoubleLayer(const std::vector<const MTDDetSector*>& frontSectors,
15  const std::vector<const MTDDetSector*>& backSectors);
16 
18 
19  // GeometricSearchDet interface
20 
21  const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComponents; }
22 
23  const std::vector<const GeometricSearchDet*>& components() const override { return theComponents; }
24 
25  bool isInsideOut(const TrajectoryStateOnSurface& tsos) const;
26 
27  // tries closest layer first
28  std::pair<bool, TrajectoryStateOnSurface> compatible(const TrajectoryStateOnSurface&,
29  const Propagator&,
30  const MeasurementEstimator&) const override;
31 
32  std::vector<DetWithState> compatibleDets(const TrajectoryStateOnSurface& startingState,
33  const Propagator& prop,
34  const MeasurementEstimator& est) const override;
35 
36  std::vector<DetGroup> groupedCompatibleDets(const TrajectoryStateOnSurface& startingState,
37  const Propagator& prop,
38  const MeasurementEstimator& est) const override;
39 
40  // DetLayer interface
41  SubDetector subDetector() const override { return theBackLayer.subDetector(); }
42 
43  // Extension of the interface
44 
46  virtual const std::vector<const MTDDetSector*>& sectors() const { return theSectors; }
47 
48  bool isCrack(const GlobalPoint& gp) const;
49 
50  const MTDSectorForwardLayer* frontLayer() const { return &theFrontLayer; }
51  const MTDSectorForwardLayer* backLayer() const { return &theBackLayer; }
52 
53  void selfTest() const;
54 
55 protected:
56  BoundDisk* computeSurface() override;
57 
58 private:
61  std::vector<const MTDDetSector*> theSectors;
62  std::vector<const GeometricSearchDet*> theComponents; // duplication of the above
63  std::vector<const GeomDet*> theBasicComponents; // All chambers
64 };
65 #endif
SubDetector subDetector() const override
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
MTDSectorForwardDoubleLayer(const std::vector< const MTDDetSector *> &frontSectors, const std::vector< const MTDDetSector *> &backSectors)
Constructor, takes ownership of pointers.
const std::vector< const GeometricSearchDet * > & components() const override
Returns basic components, if any.
bool isCrack(const GlobalPoint &gp) const
bool isInsideOut(const TrajectoryStateOnSurface &tsos) const
const MTDSectorForwardLayer * frontLayer() const
virtual const std::vector< const MTDDetSector * > & sectors() const
Return the vector of sectors.
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const override
SubDetector subDetector() const override
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
std::vector< const GeomDet * > theBasicComponents
const MTDSectorForwardLayer * backLayer() const
std::vector< const MTDDetSector * > theSectors
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
std::vector< const GeometricSearchDet * > theComponents
const std::vector< const GeomDet * > & basicComponents() const override
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override