test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
28 
29  // GeometricSearchDet interface
30  virtual 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  virtual const std::vector<const GeomDet*>& basicComponents() const {return theBasicComps;}
38 
39  virtual const std::vector<const GeometricSearchDet*>& components() const __attribute__ ((cold)) {return theComps;}
40 
41  virtual std::pair<bool, TrajectoryStateOnSurface>
44 
45  virtual void
47  const Propagator& prop,
49  std::vector<DetGroup> & result) const __attribute__ ((hot));
50 
51 
52  private:
53 
55 
56 
57  // private methods for the implementation of groupedCompatibleDets()
60 
61 
62 
64  const Propagator& prop,
66  const SubLayerCrossing& crossing,
67  std::vector<DetGroup>& result) const __attribute__ ((hot)) dso_internal;
68 
70  const Propagator& prop,
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,
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
def window
Definition: svgfig.py:642
WedgePar const & findPar(int index, int diskSectorType) const
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
CompositeTECPetal(std::vector< const TECWedge * > &innerWedges, std::vector< const TECWedge * > &outerWedges) __attribute__((cold))
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))
PropagationDirection
virtual void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const __attribute__((hot))
virtual const BoundDiskSector & specificSurface() const final
virtual const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
tuple result
Definition: mps_fire.py:84
~CompositeTECPetal() __attribute__((cold))
const std::vector< const TECWedge * > & subLayer(int ind) const
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
ReferenceCountingPointer< BoundDiskSector > theDiskSector
static float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) __attribute__((hot))
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const __attribute__((cold))
ReferenceCountingPointer< BoundDiskSector > theFrontSector
float __attribute__((vector_size(8))) float32x2_t
Definition: ExtVec.h:12
std::vector< const TECWedge * > theFrontComps
string const
Definition: compareJSON.py:14
ReferenceCountingPointer< BoundDiskSector > theBackSector
#define dso_internal
std::vector< WedgePar > theBackPars
std::vector< const GeomDet * > theBasicComps
virtual const std::vector< const GeometricSearchDet * > & components() const __attribute__((cold))
Returns basic components, if any.
virtual const std::vector< const GeomDet * > & basicComponents() const
std::vector< float > theBackBoundaries
std::vector< const TECWedge * > theBackComps
std::vector< WedgePar > theFrontPars