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)
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 
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
def window
Definition: svgfig.py:642
ReferenceCountingPointer< BoundDiskSector > theFrontDiskSector
Definition: PixelBlade.h:89
ReferenceCountingPointer< BoundDiskSector > theBackDiskSector
Definition: PixelBlade.h:90
virtual const BoundSurface & surface() const
The surface of the GeometricSearchDet.
Definition: PixelBlade.h:24
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const
Definition: PixelBlade.cc:171
PropagationDirection
std::vector< const GeomDet * > theFrontDets
Definition: PixelBlade.h:85
GlobalPoint findPosition(int index, int diskSectorIndex) const
Definition: PixelBlade.cc:266
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const
Definition: PixelBlade.cc:115
std::vector< const GeomDet * > theBackDets
Definition: PixelBlade.h:86
const std::vector< const GeomDet * > & subBlade(int ind) const
Definition: PixelBlade.h:77
virtual const std::vector< const GeometricSearchDet * > & components() const
Returns basic components, if any.
Definition: PixelBlade.cc:61
bool overlap(const GlobalPoint &gpos, const GeomDet &det, float phiWin) const
Definition: PixelBlade.cc:220
int findBin(float R, int layer) const
Definition: PixelBlade.cc:247
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const
Definition: PixelBlade.cc:158
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, float window, std::vector< DetGroup > &result, bool checkClosest) const
Definition: PixelBlade.cc:182
virtual const std::vector< const GeomDet * > & basicComponents() const
Definition: PixelBlade.h:26
#define GCC11_FINAL
tuple result
Definition: query.py:137
PixelBlade(std::vector< const GeomDet * > &frontDets, std::vector< const GeomDet * > &backDets)
Definition: PixelBlade.cc:20
virtual const BoundDiskSector & specificSurface() const
Definition: PixelBlade.h:41
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const
Definition: PixelBlade.cc:66
virtual void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
Definition: PixelBlade.cc:75
std::vector< const GeomDet * > theDets
Definition: PixelBlade.h:84
ReferenceCountingPointer< BoundDiskSector > theDiskSector
Definition: PixelBlade.h:88