CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Phase2EndcapLayer.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_Phase2EndcapLayer_h
2 #define TkDetLayers_Phase2EndcapLayer_h
3 
5 #include "Phase2EndcapRing.h"
6 #include <array>
7 #include <atomic>
8 
14 #pragma GCC visibility push(hidden)
15 class Phase2EndcapLayer final : public RingedForwardLayer {
16 public:
17  Phase2EndcapLayer(std::vector<const Phase2EndcapRing*>& rings, const bool isOT) __attribute__((cold));
18  ~Phase2EndcapLayer() override __attribute__((cold));
19 
20  // Default implementations would not properly manage memory
21  Phase2EndcapLayer(const Phase2EndcapLayer&) = delete;
23 
24  // GeometricSearchDet interface
25 
26  const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComps; }
27 
28  const std::vector<const GeometricSearchDet*>& components() const override __attribute__((cold));
29 
31  const Propagator& prop,
33  std::vector<DetGroup>& result) const override __attribute__((hot));
34 
35  // DetLayer interface
36  SubDetector subDetector() const override {
37  if (isOuterTracker)
39  else
41  }
42 
43 private:
44  // private methods for the implementation of groupedCompatibleDets()
45  BoundDisk* computeDisk(const std::vector<const Phase2EndcapRing*>& rings) const __attribute__((cold));
46 
47  std::array<int, 3> ringIndicesByCrossingProximity(const TrajectoryStateOnSurface& startingState,
48  const Propagator& prop) const;
49 
50  // bool isCompatible( const TrajectoryStateOnSurface& ms,
51  // const MeasurementEstimator& est) const;
52 
53  std::array<int, 3> findThreeClosest(std::vector<GlobalPoint>) const __attribute__((hot));
54 
55  bool overlapInR(const TrajectoryStateOnSurface& tsos, int i, double ymax) const __attribute__((hot));
56 
57  float computeWindowSize(const GeomDet* det,
60 
61  void fillRingPars(int i) __attribute__((cold));
62 
63 private:
66  mutable std::atomic<std::vector<const GeometricSearchDet*>*> theComponents;
68  struct RingPar {
69  float theRingR, thetaRingMin, thetaRingMax;
70  };
71  std::vector<RingPar> ringPars;
73 };
74 
75 #pragma GCC visibility pop
76 #endif
std::vector< const Phase2EndcapRing * > theComps
void fillRingPars(int i) __attribute__((cold))
std::array< int, 3 > findThreeClosest(std::vector< GlobalPoint >) const __attribute__((hot))
constexpr SubDetector subDetGeom[21]
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const __attribute__((hot))
bool overlapInR(const TrajectoryStateOnSurface &tsos, int i, double ymax) const __attribute__((hot))
std::atomic< std::vector< const GeometricSearchDet * > * > theComponents
~Phase2EndcapLayer() override __attribute__((cold))
tuple result
Definition: mps_fire.py:311
Phase2EndcapLayer & operator=(const Phase2EndcapLayer &)=delete
SubDetector subDetector() const override
BoundDisk * computeDisk(const std::vector< const Phase2EndcapRing * > &rings) const __attribute__((cold))
const bool isOuterTracker
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
Phase2EndcapLayer(std::vector< const Phase2EndcapRing * > &rings, const bool isOT) __attribute__((cold))
std::vector< GeomDet const * > theBasicComps
std::array< int, 3 > ringIndicesByCrossingProximity(const TrajectoryStateOnSurface &startingState, const Propagator &prop) const
std::vector< RingPar > ringPars
const std::vector< const GeomDet * > & basicComponents() const override
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))