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));
19 
20  // Default implementations would not properly manage memory
21  Phase2EndcapLayer( const Phase2EndcapLayer& ) = delete;
23 
24  // GeometricSearchDet interface
25 
26  virtual const std::vector<const GeomDet*>& basicComponents() const {return theBasicComps;}
27 
28  virtual const std::vector<const GeometricSearchDet*>& components() const __attribute__ ((cold));
29 
31  const Propagator& prop,
32  const MeasurementEstimator& est,
33  std::vector<DetGroup> & result) const __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))
~Phase2EndcapLayer() __attribute__((cold))
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 & operator=(const Phase2EndcapLayer &)=delete
BoundDisk * computeDisk(const std::vector< const Phase2EndcapRing * > &rings) const __attribute__((cold))
virtual SubDetector subDetector() const
const bool isOuterTracker
Phase2EndcapLayer(std::vector< const Phase2EndcapRing * > &rings, const bool isOT) __attribute__((cold))
SubDetector subDetGeom[21]
std::vector< GeomDet const * > theBasicComps
virtual const std::vector< const GeomDet * > & basicComponents() const
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const __attribute__((hot))
std::array< int, 3 > ringIndicesByCrossingProximity(const TrajectoryStateOnSurface &startingState, const Propagator &prop) const
virtual const std::vector< const GeometricSearchDet * > & components() const __attribute__((cold))
std::vector< RingPar > ringPars