CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
21  public:
22 
24  MuRingForwardDoubleLayer(const std::vector<const ForwardDetRing*>& frontRings,
25  const std::vector<const ForwardDetRing*>& backRings);
26 
28 
29 
30  // GeometricSearchDet interface
31 
32  virtual const std::vector<const GeomDet*>& basicComponents() const {return theBasicComponents;}
33 
34  virtual const std::vector<const GeometricSearchDet*>& components() const {return theComponents;}
35 
36  bool isInsideOut(const TrajectoryStateOnSurface&tsos) const;
37 
38  // tries closest layer first
39  virtual std::pair<bool, TrajectoryStateOnSurface>
41  const MeasurementEstimator&) const;
42 
43  virtual std::vector<DetWithState>
44  compatibleDets( const TrajectoryStateOnSurface& startingState,
45  const Propagator& prop,
46  const MeasurementEstimator& est) const;
47 
48  virtual std::vector<DetGroup>
49  groupedCompatibleDets( const TrajectoryStateOnSurface& startingState,
50  const Propagator& prop,
51  const MeasurementEstimator& est) const;
52 
53 
54  virtual bool hasGroups() const {return true;}
55 
56 
57  // DetLayer interface
58  virtual SubDetector subDetector() const {return theBackLayer.subDetector();}
59 
60 
61  // Extension of the interface
62 
64  virtual const std::vector<const ForwardDetRing*>& rings() const {return theRings;}
65 
66  bool isCrack(const GlobalPoint & gp) const;
67 
68  const MuRingForwardLayer * frontLayer() const {return &theFrontLayer;}
69  const MuRingForwardLayer * backLayer() const {return &theBackLayer;}
70 
71  void selfTest() const;
72  protected:
73  virtual BoundDisk * computeSurface();
74  private:
77  std::vector<const ForwardDetRing*> theRings;
78  std::vector <const GeometricSearchDet*> theComponents; // duplication of the above
79  std::vector<const GeomDet*> theBasicComponents; // All chambers
80 
81 };
82 #endif
83 
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const
virtual const std::vector< const GeometricSearchDet * > & components() const
Returns basic components, if any.
virtual const std::vector< const GeomDet * > & basicComponents() const
std::vector< const GeomDet * > theBasicComponents
std::vector< const ForwardDetRing * > theRings
const MuRingForwardLayer * backLayer() const
virtual bool hasGroups() const
virtual std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
bool isCrack(const GlobalPoint &gp) const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual const std::vector< const ForwardDetRing * > & rings() const
Return the vector of rings.
virtual SubDetector subDetector() const
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
virtual SubDetector subDetector() const
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
const MuRingForwardLayer * frontLayer() const
virtual BoundDisk * computeSurface()
std::vector< const GeometricSearchDet * > theComponents
bool isInsideOut(const TrajectoryStateOnSurface &tsos) const
MuRingForwardDoubleLayer(const std::vector< const ForwardDetRing * > &frontRings, const std::vector< const ForwardDetRing * > &backRings)
Constructor, takes ownership of pointers.