CMS 3D CMS Logo

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 
13 #pragma GCC visibility push(hidden)
14 class PixelBlade final : public GeometricSearchDet {
15 public:
16  PixelBlade(std::vector<const GeomDet*>& frontDets, std::vector<const GeomDet*>& backDets) __attribute__((cold));
17 
18  ~PixelBlade() override __attribute__((cold));
19 
20  // GeometricSearchDet interface
21  const BoundSurface& surface() const override { return *theDiskSector; }
22 
23  const std::vector<const GeomDet*>& basicComponents() const override { return theDets; }
24 
25  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
26 
30  __attribute__((cold));
31 
33  const Propagator& prop,
35  std::vector<DetGroup>& result) const override __attribute__((hot));
36 
37  //Extension of the interface
38  virtual const BoundDiskSector& specificSurface() const { return *theDiskSector; }
39 
40 private:
41  // private methods for the implementation of groupedCompatibleDets()
42 
44  __attribute__((hot));
45 
46  bool addClosest(const TrajectoryStateOnSurface& tsos,
47  const Propagator& prop,
48  const MeasurementEstimator& est,
49  const SubLayerCrossing& crossing,
50  std::vector<DetGroup>& result) const __attribute__((hot));
51 
52  float computeWindowSize(const GeomDet* det,
53  const TrajectoryStateOnSurface& tsos,
54  const MeasurementEstimator& est) const;
55 
57  const Propagator& prop,
58  const MeasurementEstimator& est,
59  const SubLayerCrossing& crossing,
60  float window,
61  std::vector<DetGroup>& result,
62  bool checkClosest) const __attribute__((hot));
63 
64  bool overlap(const GlobalPoint& gpos, const GeomDet& det, float phiWin) const;
65 
66  // This 2 find methods should be substituted with the use
67  // of a GeneralBinFinderInR
68 
69  int findBin(float R, int layer) const;
70 
71  GlobalPoint findPosition(int index, int diskSectorIndex) const;
72 
73  const std::vector<const GeomDet*>& subBlade(int ind) const { return (ind == 0 ? theFrontDets : theBackDets); }
74 
75 private:
76  std::vector<const GeomDet*> theDets;
77  std::vector<const GeomDet*> theFrontDets;
78  std::vector<const GeomDet*> theBackDets;
79 
83 };
84 
85 #pragma GCC visibility pop
86 #endif
PixelBlade::overlap
bool overlap(const GlobalPoint &gpos, const GeomDet &det, float phiWin) const
Definition: PixelBlade.cc:189
MeasurementEstimator
Definition: MeasurementEstimator.h:19
PixelBlade::PixelBlade
PixelBlade(std::vector< const GeomDet * > &frontDets, std::vector< const GeomDet * > &backDets) __attribute__((cold))
Definition: PixelBlade.cc:20
PixelBlade::~PixelBlade
~PixelBlade() override __attribute__((cold))
Definition: PixelBlade.cc:18
GeomDet
Definition: GeomDet.h:27
svgfig.window
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:643
GeometricSearchDet.h
Surface
Definition: Surface.h:36
ReferenceCountingPointer< BoundDiskSector >
watchdog.const
const
Definition: watchdog.py:83
SubLayerCrossings.h
PixelBlade::subBlade
const std::vector< const GeomDet * > & subBlade(int ind) const
Definition: PixelBlade.h:73
Propagator
Definition: Propagator.h:44
PixelBlade::theDets
std::vector< const GeomDet * > theDets
Definition: PixelBlade.h:76
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
PeriodicBinFinderInZ.h
PixelBlade::theDiskSector
ReferenceCountingPointer< BoundDiskSector > theDiskSector
Definition: PixelBlade.h:80
PixelBlade::basicComponents
const std::vector< const GeomDet * > & basicComponents() const override
Definition: PixelBlade.h:23
PixelBlade::searchNeighbors
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))
Definition: PixelBlade.cc:151
PixelBlade::computeWindowSize
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const
Definition: PixelBlade.cc:145
PixelBlade::surface
const BoundSurface & surface() const override
The surface of the GeometricSearchDet.
Definition: PixelBlade.h:21
Point3DBase< float, GlobalTag >
PixelBlade::computeCrossings
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
Definition: PixelBlade.cc:97
PixelBlade::specificSurface
virtual const BoundDiskSector & specificSurface() const
Definition: PixelBlade.h:38
PixelBlade::findBin
int findBin(float R, int layer) const
Definition: PixelBlade.cc:214
PixelBlade::theBackDiskSector
ReferenceCountingPointer< BoundDiskSector > theBackDiskSector
Definition: PixelBlade.h:82
__attribute__
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
PixelBlade::theFrontDiskSector
ReferenceCountingPointer< BoundDiskSector > theFrontDiskSector
Definition: PixelBlade.h:81
PixelBlade::compatible
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
Definition: PixelBlade.cc:52
PixelBlade::groupedCompatibleDetsV
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
Definition: PixelBlade.cc:59
PixelBlade::addClosest
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
Definition: PixelBlade.cc:136
BoundDiskSector
Definition: BoundDiskSector.h:8
PixelBlade::theFrontDets
std::vector< const GeomDet * > theFrontDets
Definition: PixelBlade.h:77
std
Definition: JetResolutionObject.h:76
PixelBlade::theBackDets
std::vector< const GeomDet * > theBackDets
Definition: PixelBlade.h:78
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
BoundDiskSector.h
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
SubLayerCrossing
Definition: SubLayerCrossings.h:7
PixelBlade::components
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
Definition: PixelBlade.cc:48
PixelBlade
Definition: PixelBlade.h:14
DetGroup
Definition: DetGroup.h:41
mps_fire.result
result
Definition: mps_fire.py:303
PixelBlade::findPosition
GlobalPoint findPosition(int index, int diskSectorIndex) const
Definition: PixelBlade.cc:230
GeometricSearchDet
Definition: GeometricSearchDet.h:17
dttmaxenums::R
Definition: DTTMax.h:29
SubLayerCrossings
Definition: SubLayerCrossings.h:22