CMS 3D CMS Logo

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,
32  const MeasurementEstimator& est,
33  std::vector<DetGroup> & result) const override __attribute__ ((hot));
34 
35  // DetLayer interface
38 
39 
40  private:
41  // private methods for the implementation of groupedCompatibleDets()
42  BoundDisk* computeDisk( const std::vector<const Phase2EndcapRing*>& rings) const __attribute__ ((cold));
43 
44  std::array<int,3> ringIndicesByCrossingProximity(const TrajectoryStateOnSurface& startingState,
45  const Propagator& prop ) const;
46 
47  // bool isCompatible( const TrajectoryStateOnSurface& ms,
48  // const MeasurementEstimator& est) const;
49 
50  std::array<int,3> findThreeClosest( std::vector<GlobalPoint> ) const __attribute__ ((hot));
51 
52  bool overlapInR( const TrajectoryStateOnSurface& tsos, int i, double ymax) const __attribute__ ((hot));
53 
54 
55  float computeWindowSize( const GeomDet* det,
56  const TrajectoryStateOnSurface& tsos,
57  const MeasurementEstimator& est) const __attribute__ ((hot));
58 
59  void fillRingPars(int i) __attribute__ ((cold));
60 
61  private:
62  std::vector<GeomDet const*> theBasicComps;
63  const bool isOuterTracker;
64  mutable std::atomic<std::vector<const GeometricSearchDet*>*> theComponents;
65  std::vector<const Phase2EndcapRing*> theComps;
67  std::vector<RingPar> ringPars;
69 };
70 
71 
72 #pragma GCC visibility pop
73 #endif
std::vector< const Phase2EndcapRing * > theComps
void fillRingPars(int i) __attribute__((cold))
std::array< int, 3 > findThreeClosest(std::vector< GlobalPoint >) const __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
float __attribute__((vector_size(8))) cms_float32x2_t
Definition: ExtVec.h:12
~Phase2EndcapLayer() override __attribute__((cold))
Phase2EndcapLayer & operator=(const Phase2EndcapLayer &)=delete
BoundDisk * computeDisk(const std::vector< const Phase2EndcapRing * > &rings) const __attribute__((cold))
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
const bool isOuterTracker
Phase2EndcapLayer(std::vector< const Phase2EndcapRing * > &rings, const bool isOT) __attribute__((cold))
SubDetector subDetGeom[21]
std::vector< GeomDet const * > theBasicComps
const std::vector< const GeomDet * > & basicComponents() const override
SubDetector subDetector() const override
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
std::array< int, 3 > ringIndicesByCrossingProximity(const TrajectoryStateOnSurface &startingState, const Propagator &prop) const
std::vector< RingPar > ringPars