CMS 3D CMS Logo

TIDLayer.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_TIDLayer_h
2 #define TkDetLayers_TIDLayer_h
3 
5 #include "TIDRing.h"
6 #include <array>
7 #include <atomic>
8 
13 #pragma GCC visibility push(hidden)
14 class TIDLayer final : public RingedForwardLayer {
15 public:
16  TIDLayer(std::vector<const TIDRing*>& rings) __attribute__((cold));
17  ~TIDLayer() override __attribute__((cold));
18 
19  //default implementations would not manage memory correctly
20  TIDLayer(const TIDLayer&) = delete;
21  TIDLayer& operator=(const TIDLayer&) = delete;
22 
23  // GeometricSearchDet interface
24 
25  const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComps; }
26 
27  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
28 
30  const Propagator& prop,
32  std::vector<DetGroup>& result) const override __attribute__((hot));
33 
34  // DetLayer interface
36 
37 private:
38  // private methods for the implementation of groupedCompatibleDets()
39  BoundDisk* computeDisk(const std::vector<const TIDRing*>& rings) const __attribute__((cold));
40 
41  std::array<int, 3> ringIndicesByCrossingProximity(const TrajectoryStateOnSurface& startingState,
42  const Propagator& prop) const;
43 
44  // bool isCompatible( const TrajectoryStateOnSurface& ms,
45  // const MeasurementEstimator& est) const;
46 
47  int findClosest(const GlobalPoint[3]) const __attribute__((hot));
48 
49  int findNextIndex(const GlobalPoint[3], int) const __attribute__((hot));
50 
51  bool overlapInR(const TrajectoryStateOnSurface& tsos, int i, double ymax) const __attribute__((hot));
52 
53  float computeWindowSize(const GeomDet* det,
54  const TrajectoryStateOnSurface& tsos,
55  const MeasurementEstimator& est) const __attribute__((hot));
56 
57  void fillRingPars(int i) __attribute__((cold));
58 
59 private:
60  std::vector<GeomDet const*> theBasicComps;
61  mutable std::atomic<std::vector<const GeometricSearchDet*>*> theComponents;
62  const TIDRing* theComps[3];
63  struct RingPar {
65  };
67 };
68 
69 #pragma GCC visibility pop
70 #endif
SubDetector subDetector() const override
Definition: TIDLayer.h:35
TIDLayer & operator=(const TIDLayer &)=delete
std::vector< GeomDet const * > theBasicComps
Definition: TIDLayer.h:60
constexpr SubDetector subDetGeom[21]
TIDLayer(std::vector< const TIDRing *> &rings) __attribute__((cold))
Definition: TIDLayer.cc:104
const std::vector< const GeomDet * > & basicComponents() const override
Definition: TIDLayer.h:25
float thetaRingMin
Definition: TIDLayer.h:64
float thetaRingMax
Definition: TIDLayer.h:64
RingPar ringPars[3]
Definition: TIDLayer.h:66
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:8
BoundDisk * computeDisk(const std::vector< const TIDRing *> &rings) const __attribute__((cold))
Definition: TIDLayer.cc:125
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
Definition: TIDLayer.cc:156
std::atomic< std::vector< const GeometricSearchDet * > * > theComponents
Definition: TIDLayer.h:61
void fillRingPars(int i) __attribute__((cold))
Definition: TIDLayer.cc:95
~TIDLayer() override __attribute__((cold))
Definition: TIDLayer.cc:149
bool overlapInR(const TrajectoryStateOnSurface &tsos, int i, double ymax) const __attribute__((hot))
Definition: TIDLayer.cc:301
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const __attribute__((hot))
Definition: TIDLayer.cc:260
std::array< int, 3 > ringIndicesByCrossingProximity(const TrajectoryStateOnSurface &startingState, const Propagator &prop) const
Definition: TIDLayer.cc:212
const TIDRing * theComps[3]
Definition: TIDLayer.h:62
int findClosest(const GlobalPoint[3]) const __attribute__((hot))
Definition: TIDLayer.cc:268
int findNextIndex(const GlobalPoint[3], int) const __attribute__((hot))
Definition: TIDLayer.cc:283
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Definition: TIDLayer.cc:79