CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Phase2EndcapRing.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_Phase2EndcapRing_h
2 #define TkDetLayers_Phase2EndcapRing_h
3 
6 #include "SubLayerCrossings.h"
8 
12 #pragma GCC visibility push(hidden)
13 class Phase2EndcapRing final : public GeometricSearchDet {
14 public:
15  Phase2EndcapRing(std::vector<const GeomDet*>& innerDets,
16  std::vector<const GeomDet*>& outerDets,
17  const std::vector<const GeomDet*>& innerDetBrothers = std::vector<const GeomDet*>(),
18  const std::vector<const GeomDet*>& outerDetBrothers = std::vector<const GeomDet*>());
19  ~Phase2EndcapRing() override;
20 
21  // GeometricSearchDet interface
22  const BoundSurface& surface() const override { return *theDisk; }
23 
24  const std::vector<const GeomDet*>& basicComponents() const override { return theDets; }
25 
26  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
27 
30  const MeasurementEstimator&) const override;
31 
32  void groupedCompatibleDetsV(const TrajectoryStateOnSurface& tsos,
33  const Propagator& prop,
35  std::vector<DetGroup>& result) const override __attribute__((hot));
36 
37  //Extension of interface
38  virtual const BoundDisk& specificSurface() const { return *theDisk; }
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,
51  std::vector<DetGroup>& brotherresult) const __attribute__((hot));
52 
54  const Propagator& prop,
55  const MeasurementEstimator& est,
56  const SubLayerCrossing& crossing,
57  float window,
58  std::vector<DetGroup>& result,
59  std::vector<DetGroup>& brotherresult,
60  bool checkClosest) const __attribute__((hot));
61 
62  const std::vector<const GeomDet*>& subLayer(int ind) const { return (ind == 0 ? theFrontDets : theBackDets); }
63 
64  const std::vector<const GeomDet*>& subLayerBrothers(int ind) const {
65  return (ind == 0 ? theFrontDetBrothers : theBackDetBrothers);
66  }
67 
68 private:
69  std::vector<const GeomDet*> theDets;
70  std::vector<const GeomDet*> theFrontDets;
71  std::vector<const GeomDet*> theBackDets;
72  std::vector<const GeomDet*> theFrontDetBrothers;
73  std::vector<const GeomDet*> theBackDetBrothers;
74 
78 
80 
83 };
84 
85 #pragma GCC visibility pop
86 #endif
const BoundSurface & surface() const override
The surface of the GeometricSearchDet.
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
def window
Definition: svgfig.py:643
const std::vector< const GeomDet * > & basicComponents() const override
std::vector< const GeomDet * > theDets
std::vector< const GeomDet * > theFrontDets
std::vector< const GeomDet * > theFrontDetBrothers
std::vector< const GeomDet * > theBackDets
PropagationDirection
const std::vector< const GeomDet * > & subLayer(int ind) const
tuple result
Definition: mps_fire.py:311
ReferenceCountingPointer< BoundDisk > theFrontDisk
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
BinFinderType theFrontBinFinder
ReferenceCountingPointer< BoundDisk > theDisk
const std::vector< const GeomDet * > & subLayerBrothers(int ind) const
std::vector< const GeomDet * > theBackDetBrothers
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, float window, std::vector< DetGroup > &result, std::vector< DetGroup > &brotherresult, bool checkClosest) const __attribute__((hot))
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result, std::vector< DetGroup > &brotherresult) const __attribute__((hot))
virtual const BoundDisk & specificSurface() const
~Phase2EndcapRing() override
PeriodicBinFinderInPhi< float > BinFinderType
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
BinFinderType theBackBinFinder
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const override
ReferenceCountingPointer< BoundDisk > theBackDisk
Phase2EndcapRing(std::vector< const GeomDet * > &innerDets, std::vector< const GeomDet * > &outerDets, const std::vector< const GeomDet * > &innerDetBrothers=std::vector< const GeomDet * >(), const std::vector< const GeomDet * > &outerDetBrothers=std::vector< const GeomDet * >())