CMS 3D CMS Logo

Phase2OTBarrelRod.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_Phase2OTBarrelRod_h
2 #define TkDetLayers_Phase2OTBarrelRod_h
3 
4 
8 #include "SubLayerCrossings.h"
9 
10 
15 #pragma GCC visibility push(hidden)
16 class Phase2OTBarrelRod final : public DetRod {
17  public:
19 
20  Phase2OTBarrelRod(std::vector<const GeomDet*>& innerDets,
21  std::vector<const GeomDet*>& outerDets,
22  std::vector<const GeomDet*>& innerDetBrothers,
23  std::vector<const GeomDet*>& outerDetBrothers) __attribute__ ((cold));
24  ~Phase2OTBarrelRod() override __attribute__ ((cold));
25 
26  // GeometricSearchDet interface
27 
28  const std::vector<const GeomDet*>& basicComponents() const override {return theDets;}
29 
30  const std::vector<const GeometricSearchDet*>& components() const override __attribute__ ((cold));
31 
32 
33  std::pair<bool, TrajectoryStateOnSurface>
35  const MeasurementEstimator&) const override __attribute__ ((cold));
36 
38  const Propagator& prop,
39  const MeasurementEstimator& est,
40  std::vector<DetGroup> & result) const override __attribute__ ((hot));
41 
42 
43  private:
44  // private methods for the implementation of groupedCompatibleDets()
45 
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,
54  std::vector<DetGroup>& brotherresult) const __attribute__ ((hot));
55 
56  float computeWindowSize( const GeomDet* det,
57  const TrajectoryStateOnSurface& tsos,
58  const MeasurementEstimator& est) const __attribute__ ((hot));
59 
60 
61  void searchNeighbors( const TrajectoryStateOnSurface& tsos,
62  const Propagator& prop,
63  const MeasurementEstimator& est,
64  const SubLayerCrossing& crossing,
65  float window,
66  std::vector<DetGroup>& result,
67  std::vector<DetGroup>& brotherresult,
68  bool checkClosest) const __attribute__ ((hot));
69 
70  const std::vector<const GeomDet*>& subRod( int ind) const {
71  return (ind==0 ? theInnerDets : theOuterDets);
72  }
73 
74  const std::vector<const GeomDet*>& subRodBrothers( int ind) const {
75  return (ind==0 ? theInnerDetBrothers : theOuterDetBrothers);
76  }
77 
78 
79  private:
80  std::vector<const GeomDet*> theDets;
81  std::vector<const GeomDet*> theInnerDets;
82  std::vector<const GeomDet*> theOuterDets;
83  std::vector<const GeomDet*> theInnerDetBrothers;
84  std::vector<const GeomDet*> theOuterDetBrothers;
85 
88 
89  BinFinderType theInnerBinFinder;
90  BinFinderType theOuterBinFinder;
91 
92 };
93 
94 
95 #pragma GCC visibility pop
96 #endif
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
Phase2OTBarrelRod(std::vector< const GeomDet * > &innerDets, std::vector< const GeomDet * > &outerDets, std::vector< const GeomDet * > &innerDetBrothers, std::vector< const GeomDet * > &outerDetBrothers) __attribute__((cold))
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
BinFinderType theOuterBinFinder
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
PropagationDirection
std::vector< const GeomDet * > theDets
BinFinderType theInnerBinFinder
std::vector< const GeomDet * > theOuterDetBrothers
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
const std::vector< const GeomDet * > & basicComponents() const override
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))
GenericBinFinderInZ< float, GeomDet > BinFinderType
const std::vector< const GeomDet * > & subRodBrothers(int ind) const
Definition: DetRod.h:13
ReferenceCountingPointer< Plane > theOuterPlane
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const __attribute__((hot))
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
ReferenceCountingPointer< Plane > theInnerPlane
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))
~Phase2OTBarrelRod() override __attribute__((cold))
const std::vector< const GeomDet * > & subRod(int ind) const
std::vector< const GeomDet * > theOuterDets
std::vector< const GeomDet * > theInnerDets
std::vector< const GeomDet * > theInnerDetBrothers