CMS 3D CMS Logo

CompositeTECPetal.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_CompositeTECPetal_h
2 #define TkDetLayers_CompositeTECPetal_h
3 
4 
6 
7 #include "TECWedge.h"
8 
9 #include "BoundDiskSector.h"
10 
11 #include "SubLayerCrossings.h"
12 
14 
15 
19 #pragma GCC visibility push(hidden)
20 class CompositeTECPetal final : public GeometricSearchDet {
21  public:
22  struct WedgePar { float theR, thetaMin, thetaMax;};
23 
24  CompositeTECPetal(std::vector<const TECWedge*>& innerWedges,
25  std::vector<const TECWedge*>& outerWedges) __attribute__ ((cold));
26 
27  ~CompositeTECPetal() override __attribute__ ((cold));
28 
29  // GeometricSearchDet interface
30  const BoundSurface& surface() const final {return *theDiskSector;}
31  //Extension of the interface
32  virtual const BoundDiskSector& specificSurface() const final {return *theDiskSector;}
33 
34 
35 
36  // GeometricSearchDet interface
37  const std::vector<const GeomDet*>& basicComponents() const override {return theBasicComps;}
38 
39  const std::vector<const GeometricSearchDet*>& components() const override __attribute__ ((cold)) {return theComps;}
40 
41  std::pair<bool, TrajectoryStateOnSurface>
43  const MeasurementEstimator&) const override __attribute__((cold));
44 
45  void
47  const Propagator& prop,
48  const MeasurementEstimator& est,
49  std::vector<DetGroup> & result) const override __attribute__ ((hot));
50 
51 
52  private:
53 
55 
56 
57  // private methods for the implementation of groupedCompatibleDets()
59  PropagationDirection propDir) const __attribute__ ((hot)) dso_internal;
60 
61 
62 
63  bool addClosest( const TrajectoryStateOnSurface& tsos,
64  const Propagator& prop,
65  const MeasurementEstimator& est,
66  const SubLayerCrossing& crossing,
67  std::vector<DetGroup>& result) const __attribute__ ((hot)) dso_internal;
68 
69  void searchNeighbors( const TrajectoryStateOnSurface& tsos,
70  const Propagator& prop,
71  const MeasurementEstimator& est,
72  const SubLayerCrossing& crossing,
73  float window,
74  std::vector<DetGroup>& result,
75  bool checkClosest) const __attribute__ ((hot)) dso_internal;
76 
77 
78  static
79  float computeWindowSize( const GeomDet* det,
80  const TrajectoryStateOnSurface& tsos,
81  const MeasurementEstimator& est) __attribute__ ((hot)) dso_internal;
82 
83  int findBin( float R,int layer) const dso_internal;
84 
85  WedgePar const & findPar(int index,int diskSectorType) const dso_internal {
86  return (diskSectorType == 0) ? theFrontPars[index] : theBackPars[index];
87  }
88 
89  const std::vector<const TECWedge*>& subLayer( int ind) const dso_internal {
90  return (ind==0 ? theFrontComps : theBackComps);
91  }
92 
93 
94  private:
95  std::vector<const GeomDet*> theBasicComps;
96  std::vector<const GeometricSearchDet*> theComps;
97 
98  std::vector<const TECWedge*> theFrontComps;
99  std::vector<const TECWedge*> theBackComps;
100 
101  std::vector<float> theFrontBoundaries;
102  std::vector<float> theBackBoundaries;
103  std::vector<WedgePar> theFrontPars;
104  std::vector<WedgePar> theBackPars;
105 
108 
109 };
110 
111 
112 #pragma GCC visibility pop
113 #endif
std::vector< float > theFrontBoundaries
int findBin(float R, int layer) const
WedgePar const & findPar(int index, int diskSectorType) const
const std::vector< const GeomDet * > & basicComponents() const override
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
CompositeTECPetal(std::vector< const TECWedge * > &innerWedges, std::vector< const TECWedge * > &outerWedges) __attribute__((cold))
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
std::vector< const GeometricSearchDet * > theComps
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))
~CompositeTECPetal() override __attribute__((cold))
PropagationDirection
const std::vector< const TECWedge * > & subLayer(int ind) const
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
ReferenceCountingPointer< BoundDiskSector > theDiskSector
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
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:642
static float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) __attribute__((hot))
ReferenceCountingPointer< BoundDiskSector > theFrontSector
std::vector< const TECWedge * > theFrontComps
ReferenceCountingPointer< BoundDiskSector > theBackSector
#define dso_internal
std::vector< WedgePar > theBackPars
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
std::vector< const GeomDet * > theBasicComps
std::vector< float > theBackBoundaries
virtual const BoundDiskSector & specificSurface() const final
std::vector< const TECWedge * > theBackComps
std::vector< WedgePar > theFrontPars