CMS 3D CMS Logo

TIBRing.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_TIBRing_h
2 #define TkDetLayers_TIBRing_h
3 
7 
8 #include <optional>
9 
13 #pragma GCC visibility push(hidden)
14 class TIBRing final : public GeometricSearchDet {
15 public:
16  TIBRing(std::vector<const GeomDet*>& theGeomDets) __attribute__((cold));
17  ~TIBRing() override __attribute__((cold));
18 
19  // GeometricSearchDet interface
20  const BoundSurface& surface() const override { return *theCylinder; }
21 
22  const std::vector<const GeomDet*>& basicComponents() const override { return theDets; }
23 
24  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
25 
29  __attribute__((cold));
30 
32  const Propagator& prop,
34  std::vector<DetGroup>& result) const override __attribute__((hot));
35 
36  //--- Extension of the interface
37 
39  virtual const BoundCylinder& specificSurface() const { return *theCylinder; }
40 
41 private:
42  //general private methods
43 
44  void checkPeriodicity(std::vector<const GeomDet*>::const_iterator first,
45  std::vector<const GeomDet*>::const_iterator last) __attribute__((cold));
46 
47  void checkRadius(std::vector<const GeomDet*>::const_iterator first, std::vector<const GeomDet*>::const_iterator last)
48  __attribute__((cold));
49 
50  void computeHelicity() __attribute__((cold));
51 
52  // methods for groupedCompatibleDets implementation
54  SubRingCrossings(int ci, int ni, float nd) : closestIndex(ci), nextIndex(ni), nextDistance(nd) {}
55 
57  int nextIndex;
58  float nextDistance;
59  };
60 
62  const Propagator& prop,
63  const MeasurementEstimator& est,
64  const SubRingCrossings& crossings,
65  float window,
66  std::vector<DetGroup>& result) const __attribute__((hot));
67 
68  std::optional<SubRingCrossings> computeCrossings(const TrajectoryStateOnSurface& startingState,
69  PropagationDirection propDir) const __attribute__((hot));
70 
71  float computeWindowSize(const GeomDet* det,
72  const TrajectoryStateOnSurface& tsos,
73  const MeasurementEstimator& est) const __attribute__((hot));
74 
75 private:
78 
79  std::vector<const GeomDet*> theDets;
82 };
83 
84 #pragma GCC visibility pop
85 #endif
const BoundSurface & surface() const override
The surface of the GeometricSearchDet.
Definition: TIBRing.h:20
TIBRing(std::vector< const GeomDet *> &theGeomDets) __attribute__((cold))
Definition: TIBRing.cc:21
BinFinderType theBinFinder
Definition: TIBRing.h:77
void computeHelicity() __attribute__((cold))
Definition: TIBRing.cc:85
std::optional< SubRingCrossings > computeCrossings(const TrajectoryStateOnSurface &startingState, PropagationDirection propDir) const __attribute__((hot))
Definition: TIBRing.cc:196
const std::vector< const GeomDet * > & basicComponents() const override
Definition: TIBRing.h:22
std::vector< const GeomDet * > theDets
Definition: TIBRing.h:79
PropagationDirection
void checkPeriodicity(std::vector< const GeomDet *>::const_iterator first, std::vector< const GeomDet *>::const_iterator last) __attribute__((cold))
Definition: TIBRing.cc:64
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
Definition: TIBRing.cc:102
ReferenceCountingPointer< BoundCylinder > theCylinder
Definition: TIBRing.h:80
int theHelicity
Definition: TIBRing.h:81
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const __attribute__((hot))
Definition: TIBRing.cc:235
SubRingCrossings(int ci, int ni, float nd)
Definition: TIBRing.h:54
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
void checkRadius(std::vector< const GeomDet *>::const_iterator first, std::vector< const GeomDet *>::const_iterator last) __attribute__((cold))
Definition: TIBRing.cc:49
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
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubRingCrossings &crossings, float window, std::vector< DetGroup > &result) const __attribute__((hot))
Definition: TIBRing.cc:154
virtual const BoundCylinder & specificSurface() const
Return the ring surface as a.
Definition: TIBRing.h:39
PeriodicBinFinderInPhi< float > BinFinderType
Definition: TIBRing.h:76
~TIBRing() override __attribute__((cold))
Definition: TIBRing.cc:100
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
Definition: TIBRing.cc:45
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
Definition: TIBRing.cc:109