CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Phase1PixelBlade.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_Phase1PixelBlade_h
2 #define TkDetLayers_Phase1PixelBlade_h
3 
6 
8 #include "SubLayerCrossings.h"
9 
10 #include <utility>
11 
15 #pragma GCC visibility push(hidden)
16 class Phase1PixelBlade final : public GeometricSearchDet {
17 public:
18  Phase1PixelBlade(std::vector<const GeomDet*>& frontDets, std::vector<const GeomDet*>& backDets) __attribute__((cold));
19 
20  ~Phase1PixelBlade() override __attribute__((cold));
21 
22  // GeometricSearchDet interface
23  const BoundSurface& surface() const override { return *theDiskSector; }
24 
25  const std::vector<const GeomDet*>& basicComponents() const override { return theDets; }
26 
27  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
28 
32  __attribute__((cold));
33 
35  const Propagator& prop,
37  std::vector<DetGroup>& result) const override __attribute__((hot));
38 
39  //Extension of the interface
40  virtual const BoundDiskSector& specificSurface() const { return *theDiskSector; }
41 
42 private:
43  // private methods for the implementation of groupedCompatibleDets()
44 
46  __attribute__((hot));
47 
48  bool addClosest(const TrajectoryStateOnSurface& tsos,
49  const Propagator& prop,
50  const MeasurementEstimator& est,
51  const SubLayerCrossing& crossing,
52  std::vector<DetGroup>& result) const __attribute__((hot));
53 
54  float computeWindowSize(const GeomDet* det,
55  const TrajectoryStateOnSurface& tsos,
56  const MeasurementEstimator& est) const;
57 
59  const Propagator& prop,
60  const MeasurementEstimator& est,
61  const SubLayerCrossing& crossing,
62  float window,
63  std::vector<DetGroup>& result,
64  bool checkClosest) const __attribute__((hot));
65 
66  bool overlap(const GlobalPoint& gpos, const GeomDet& det, float phiWin) const;
67 
68  // This 2 find methods should be substituted with the use
69  // of a GeneralBinFinderInR
70 
71  int findBin(float R, int layer) const;
72  int findBin2(GlobalPoint thispoint, int layer) const;
73 
74  GlobalPoint findPosition(int index, int diskSectorIndex) const;
75 
76  const std::vector<const GeomDet*>& subBlade(int ind) const { return (ind == 0 ? theFrontDets : theBackDets); }
77 
78  std::pair<float, float> computeRadiusRanges(const std::vector<const GeomDet*>&);
79 
80 private:
81  std::vector<const GeomDet*> theDets;
82  std::vector<const GeomDet*> theFrontDets;
83  std::vector<const GeomDet*> theBackDets;
84  std::pair<float, float> front_radius_range_;
85  std::pair<float, float> back_radius_range_;
86 
90 };
91 
92 #pragma GCC visibility pop
93 #endif
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const
std::pair< float, float > front_radius_range_
def window
Definition: svgfig.py:643
const std::vector< const GeomDet * > & basicComponents() const override
std::vector< const GeomDet * > theBackDets
std::pair< float, float > computeRadiusRanges(const std::vector< const GeomDet * > &)
Phase1PixelBlade(std::vector< const GeomDet * > &frontDets, std::vector< const GeomDet * > &backDets) __attribute__((cold))
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
PropagationDirection
constexpr std::array< uint8_t, layerIndexSize > layer
tuple result
Definition: mps_fire.py:311
const std::vector< const GeomDet * > & subBlade(int ind) const
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
int findBin2(GlobalPoint thispoint, int layer) const
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
std::vector< const GeomDet * > theDets
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
bool overlap(const GlobalPoint &gpos, const GeomDet &det, float phiWin) const
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
~Phase1PixelBlade() override __attribute__((cold))
ReferenceCountingPointer< BoundDiskSector > theDiskSector
virtual const BoundDiskSector & specificSurface() const
GlobalPoint findPosition(int index, int diskSectorIndex) const
ReferenceCountingPointer< BoundDiskSector > theFrontDiskSector
int findBin(float R, int layer) const
const BoundSurface & surface() const override
The surface of the GeometricSearchDet.
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, float window, std::vector< DetGroup > &result, bool checkClosest) const __attribute__((hot))
std::pair< float, float > back_radius_range_
std::vector< const GeomDet * > theFrontDets
ReferenceCountingPointer< BoundDiskSector > theBackDiskSector