CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CompositeTECPetal.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_CompositeTECPetal_h
2 #define TkDetLayers_CompositeTECPetal_h
3 
5 
6 #include "TECWedge.h"
7 
9 
10 #include "SubLayerCrossings.h"
11 
13 
17 #pragma GCC visibility push(hidden)
18 class CompositeTECPetal final : public GeometricSearchDet {
19 public:
20  struct WedgePar {
22  };
23 
24  CompositeTECPetal(std::vector<const TECWedge*>& innerWedges, std::vector<const TECWedge*>& outerWedges)
25  __attribute__((cold));
26 
27  ~CompositeTECPetal() override __attribute__((cold));
28 
29  // GeometricSearchDet interface
31  //Extension of the interface
32  virtual const BoundDiskSector& specificSurface() const final { return *theDiskSector; }
33 
34  // GeometricSearchDet interface
35  const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComps; }
36 
37  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold)) { return theComps; }
38 
39  std::pair<bool, TrajectoryStateOnSurface> compatible(const TrajectoryStateOnSurface& ts,
40  const Propagator&,
41  const MeasurementEstimator&) const override
42  __attribute__((cold));
43 
45  const Propagator& prop,
47  std::vector<DetGroup>& result) const override __attribute__((hot));
48 
49 private:
51 
52  // private methods for the implementation of groupedCompatibleDets()
55 
57  const Propagator& prop,
59  const SubLayerCrossing& crossing,
60  std::vector<DetGroup>& result) const __attribute__((hot)) dso_internal;
61 
63  const Propagator& prop,
65  const SubLayerCrossing& crossing,
66  float window,
67  std::vector<DetGroup>& result,
68  bool checkClosest) const __attribute__((hot)) dso_internal;
69 
70  static float computeWindowSize(const GeomDet* det,
72  const MeasurementEstimator& est) __attribute__((hot)) dso_internal;
73 
74  int findBin(float R, int layer) const dso_internal;
75 
76  WedgePar const& findPar(int index, int diskSectorType) const dso_internal {
77  return (diskSectorType == 0) ? theFrontPars[index] : theBackPars[index];
78  }
79 
80  const std::vector<const TECWedge*>& subLayer(int ind) const dso_internal {
81  return (ind == 0 ? theFrontComps : theBackComps);
82  }
83 
84 private:
85  std::vector<const GeomDet*> theBasicComps;
86  std::vector<const GeometricSearchDet*> theComps;
87 
88  std::vector<const TECWedge*> theFrontComps;
89  std::vector<const TECWedge*> theBackComps;
90 
91  std::vector<float> theFrontBoundaries;
92  std::vector<float> theBackBoundaries;
93  std::vector<WedgePar> theFrontPars;
94  std::vector<WedgePar> theBackPars;
95 
98 };
99 
100 #pragma GCC visibility pop
101 #endif
std::vector< float > theFrontBoundaries
int findBin(float R, int layer) const
def window
Definition: svgfig.py:643
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))
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
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))
const std::vector< const GeomDet * > & basicComponents() const override
~CompositeTECPetal() override __attribute__((cold))
PropagationDirection
virtual const BoundDiskSector & specificSurface() const final
constexpr std::array< uint8_t, layerIndexSize > layer
tuple result
Definition: mps_fire.py:311
const std::vector< const TECWedge * > & subLayer(int ind) const
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
ReferenceCountingPointer< BoundDiskSector > theDiskSector
#define dso_internal
Definition: Visibility.h:13
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
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
std::vector< WedgePar > theBackPars
std::vector< const GeomDet * > theBasicComps
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
std::vector< float > theBackBoundaries
std::vector< const TECWedge * > theBackComps
std::vector< WedgePar > theFrontPars