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 GeometricSearchDet {
16  public:
17 
18  PixelBlade(std::vector<const GeomDet*>& frontDets,
19  std::vector<const GeomDet*>& backDets ) __attribute__ ((cold));
20 
21  ~PixelBlade() __attribute__ ((cold));
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 __attribute__ ((cold));
29 
30  std::pair<bool, TrajectoryStateOnSurface>
33 
34  virtual void
35  groupedCompatibleDetsV( const TrajectoryStateOnSurface& tsos,
36  const Propagator& prop,
38  std::vector<DetGroup> & result) const __attribute__ ((hot));
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 __attribute__ ((hot));
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 __attribute__ ((hot));
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 __attribute__ ((hot));
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
const std::vector< const GeomDet * > & subBlade(int ind) const
Definition: PixelBlade.h:77
ReferenceCountingPointer< BoundDiskSector > theBackDiskSector
Definition: PixelBlade.h:90
virtual const std::vector< const GeometricSearchDet * > & components() const =0
Returns basic components, if any.
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)
tuple result
Definition: query.py:137
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
Definition: BarrelUtil.h:35
float __attribute__((vector_size(8))) float32x2_t
Definition: ExtVec.h:6
string const
Definition: compareJSON.py:14
ReferenceCountingPointer< BoundDiskSector > theFrontDiskSector
Definition: PixelBlade.h:89
Unlimited (trivial) bounds.