CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
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 
50 
51  bool overlapInR(const TrajectoryStateOnSurface& tsos, int i, double ymax) const __attribute__((hot));
52 
53  float computeWindowSize(const GeomDet* det,
56 
57  void fillRingPars(int i) __attribute__((cold));
58 
59 private:
61  mutable std::atomic<std::vector<const GeometricSearchDet*>*> theComponents;
63  struct RingPar {
64  float theRingR, thetaRingMin, thetaRingMax;
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]
std::array< int, 3 > ringIndicesByCrossingProximity(const TrajectoryStateOnSurface &startingState, const Propagator &prop) const
Definition: TIDLayer.cc:212
const std::vector< const GeomDet * > & basicComponents() const override
Definition: TIDLayer.h:25
float thetaRingMin
Definition: TIDLayer.h:64
tuple result
Definition: mps_fire.py:311
#define override(base_class)
RingPar ringPars[3]
Definition: TIDLayer.h:66
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
TIDLayer(std::vector< const TIDRing * > &rings) __attribute__((cold))
Definition: TIDLayer.cc:104
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
BoundDisk * computeDisk(const std::vector< const TIDRing * > &rings) const __attribute__((cold))
Definition: TIDLayer.cc:125
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