CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelBlade.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_PixelBlade_h
2 #define TkDetLayers_PixelBlade_h
3 
4 #include "BoundDiskSector.h"
6 
8 #include "SubLayerCrossings.h"
9 
10 
14 #pragma GCC visibility push(hidden)
15 class PixelBlade GCC11_FINAL : public GeometricSearchDetWithGroups {
16  public:
17 
18  PixelBlade(std::vector<const GeomDet*>& frontDets,
19  std::vector<const GeomDet*>& backDets );
20 
21  ~PixelBlade();
22 
23  // GeometricSearchDet interface
24  virtual const BoundSurface& surface() const {return *theDiskSector;}
25 
26  virtual const std::vector<const GeomDet*>& basicComponents() const {return theDets;}
27 
28  virtual const std::vector<const GeometricSearchDet*>& components() const;
29 
30  std::pair<bool, TrajectoryStateOnSurface>
32  const MeasurementEstimator&) const;
33 
34  virtual void
36  const Propagator& prop,
37  const MeasurementEstimator& est,
38  std::vector<DetGroup> & result) const;
39 
40  //Extension of the interface
41  virtual const BoundDiskSector& specificSurface() const {return *theDiskSector;}
42 
43  private:
44  // private methods for the implementation of groupedCompatibleDets()
45 
46  SubLayerCrossings computeCrossings( const TrajectoryStateOnSurface& tsos,
47  PropagationDirection propDir) const;
48 
49  bool addClosest( const TrajectoryStateOnSurface& tsos,
50  const Propagator& prop,
51  const MeasurementEstimator& est,
52  const SubLayerCrossing& crossing,
53  std::vector<DetGroup>& result) const;
54 
55  float computeWindowSize( const GeomDet* det,
56  const TrajectoryStateOnSurface& tsos,
57  const MeasurementEstimator& est) const;
58 
59 
60  void searchNeighbors( const TrajectoryStateOnSurface& tsos,
61  const Propagator& prop,
62  const MeasurementEstimator& est,
63  const SubLayerCrossing& crossing,
64  float window,
65  std::vector<DetGroup>& result,
66  bool checkClosest) const;
67 
68  bool overlap( const GlobalPoint& gpos, const GeomDet& det, float phiWin) const;
69 
70  // This 2 find methods should be substituted with the use
71  // of a GeneralBinFinderInR
72 
73  int findBin( float R,int layer) const;
74 
75  GlobalPoint findPosition(int index,int diskSectorIndex) const ;
76 
77  const std::vector<const GeomDet*>& subBlade( int ind) const {
78  return (ind==0 ? theFrontDets : theBackDets);
79  }
80 
81 
82 
83  private:
84  std::vector<const GeomDet*> theDets;
85  std::vector<const GeomDet*> theFrontDets;
86  std::vector<const GeomDet*> theBackDets;
87 
91 };
92 
93 
94 #pragma GCC visibility pop
95 #endif
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const =0
def window
Definition: svgfig.py:642
const std::vector< const GeomDet * > & subBlade(int ind) const
Definition: PixelBlade.h:77
ReferenceCountingPointer< BoundDiskSector > theDiskSector
Definition: PixelBlade.h:88
ReferenceCountingPointer< BoundDiskSector > theBackDiskSector
Definition: PixelBlade.h:90
virtual const std::vector< const GeometricSearchDet * > & components() const =0
Returns basic components, if any.
virtual void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
PropagationDirection
virtual const std::vector< const GeomDet * > & basicComponents() const
Definition: PixelBlade.h:26
bool overlap(const reco::Muon &muon1, const reco::Muon &muon2, double pullX=1.0, double pullY=1.0, bool checkAdjacentChambers=false)
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
Definition: TkDetUtil.cc:31
tuple result
Definition: query.py:137
virtual const BoundSurface & surface() const
The surface of the GeometricSearchDet.
Definition: PixelBlade.h:24
ReferenceCountingPointer< BoundDiskSector > theFrontDiskSector
Definition: PixelBlade.h:89
virtual const BoundDiskSector & specificSurface() const
Definition: PixelBlade.h:41
Unlimited (trivial) bounds.