ATLAS Offline Software
ITkSiSpacePointForSeed.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
8 // Header file for class ITk::SiSpacePointForSeed
10 // (c) ATLAS Detector software
12 // Class space points for seed maker
14 // Version 1.0 18/11/2004 I.Gavrilenko
16 
17 #ifndef ITkSiSpacePointForSeed_h
18 #define ITkSiSpacePointForSeed_h
19 
20 #include <cmath>
21 
22 namespace Trk {
23  class SpacePoint;
24  class Surface;
25 }
26 
27 namespace InDet {
28  class SiCluster;
29 }
30 
31 namespace ITk
32 {
33  class SiSpacePointForSeed final{
34 
36  // Public methods:
38 
39  public:
40 
41  SiSpacePointForSeed() = default;
45  SiSpacePointForSeed& operator = (SiSpacePointForSeed&&) noexcept =default;
47 
50 
51  void set(const Trk::SpacePoint*const&,const float*) ;
52  void set(const Trk::SpacePoint*const&,const float*,const float*);
53  void setQuality(float);
54  void setParam(const float&);
55  void setDR(const float&);
56  void setDZDR(const float&);
57  void setEta(const float&);
58  void setScorePenalty(const float&);
59  void setPt(const float&);
60 
62  const float& x() const {return m_x;}
63  const float& y() const {return m_y;}
64  const float& z() const {return m_z;}
65  const float& radius() const {return m_r;}
66  float phi() const {return atan2(m_y,m_x);}
67  const float& covr() const {return m_covr;}
68  const float& covz() const {return m_covz;}
69  const float& param() const {return m_param;}
70  const float& quality() const {return m_q ;}
71  const float& dzdr() const {return m_dzdr;}
72  const float& eta() const {return m_eta;}
73  const float& pt() const {return m_pt;}
74  const float& scorePenalty() const {return m_scorePenalty;}
75  const float& dR() const {return m_dR;}
76  const Trk::Surface* sur() const {return m_su;}
77  const Trk::Surface* sun() const {return m_sn;}
78  const float* b0() const {return m_b0;}
79  const float* b1() const {return m_b1;}
80  const float* dr() const {return m_dr;}
81  const float* r0() const {return m_r0;}
82 
83  bool coordinates(const float*,float*);
84 
85  private:
86 
87  float m_x{} ; // x-coordinate in beam system coordinates
88  float m_y{} ; // y-coordinate in beam system coordinates
89  float m_z{} ; // z-coordinate in beam system coordinetes
90  float m_r{} ; // radius in beam system coordinates
91  float m_covr{}; //
92  float m_covz{}; //
93  float m_param{};
94  float m_q{} ;
95  float m_scorePenalty{};
96  float m_dR{};
97  float m_eta{} ;
98  float m_pt{} ;
99  float m_dzdr{};
100 
101 
102  float m_b0[3]{};
103  float m_b1[3]{};
104  float m_dr[3]{};
105  float m_r0[3]{};
106 
107  const Trk::Surface* m_su = nullptr;
108  const Trk::Surface* m_sn = nullptr;
109  };
110 
111 } // end of name space ITk
112 
113 #endif // ITkSiSpacePointForSeed_h
ITk::SiSpacePointForSeed::m_dzdr
float m_dzdr
Definition: ITkSiSpacePointForSeed.h:99
ITk::SiSpacePointForSeed::param
const float & param() const
Definition: ITkSiSpacePointForSeed.h:69
ITk::SiSpacePointForSeed::SiSpacePointForSeed
SiSpacePointForSeed()=default
ITk::SiSpacePointForSeed::m_scorePenalty
float m_scorePenalty
Definition: ITkSiSpacePointForSeed.h:95
ITk::SiSpacePointForSeed::b0
const float * b0() const
Definition: ITkSiSpacePointForSeed.h:78
ITk::SiSpacePointForSeed::pt
const float & pt() const
Definition: ITkSiSpacePointForSeed.h:73
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
ITk::SiSpacePointForSeed::y
const float & y() const
Definition: ITkSiSpacePointForSeed.h:63
ITk::SiSpacePointForSeed::m_r0
float m_r0[3]
Definition: ITkSiSpacePointForSeed.h:105
SiCluster
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SiCluster.h:9
ITk::SiSpacePointForSeed::z
const float & z() const
Definition: ITkSiSpacePointForSeed.h:64
Surface
Definition: Trigger/TrigAccel/TrigCudaFitter/src/Surface.h:8
ITk::SiSpacePointForSeed::scorePenalty
const float & scorePenalty() const
Definition: ITkSiSpacePointForSeed.h:74
ITk::SiSpacePointForSeed::setEta
void setEta(const float &)
Definition: ITkSiSpacePointForSeed.cxx:80
ITk::SiSpacePointForSeed::m_dr
float m_dr[3]
Definition: ITkSiSpacePointForSeed.h:104
ITk::SiSpacePointForSeed::m_y
float m_y
Definition: ITkSiSpacePointForSeed.h:88
ITk::SiSpacePointForSeed::m_sn
const Trk::Surface * m_sn
Definition: ITkSiSpacePointForSeed.h:108
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
ITk::SiSpacePointForSeed::phi
float phi() const
Definition: ITkSiSpacePointForSeed.h:66
ITk::SiSpacePointForSeed::sun
const Trk::Surface * sun() const
Definition: ITkSiSpacePointForSeed.h:77
ITk::SiSpacePointForSeed::sur
const Trk::Surface * sur() const
distance between top and central SP
Definition: ITkSiSpacePointForSeed.h:76
ITk::SiSpacePointForSeed::coordinates
bool coordinates(const float *, float *)
Definition: ITkSiSpacePointForSeed.cxx:157
ITk::SiSpacePointForSeed::setPt
void setPt(const float &)
Definition: ITkSiSpacePointForSeed.cxx:90
SpacePoint
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SpacePoint.h:7
ITk::SiSpacePointForSeed::dR
const float & dR() const
penalty term in the seed score
Definition: ITkSiSpacePointForSeed.h:75
ITk::SiSpacePointForSeed::quality
const float & quality() const
Definition: ITkSiSpacePointForSeed.h:70
ITk::SiSpacePointForSeed::m_pt
float m_pt
Definition: ITkSiSpacePointForSeed.h:98
ITk::SiSpacePointForSeed::m_su
const Trk::Surface * m_su
Definition: ITkSiSpacePointForSeed.h:107
ITk::SiSpacePointForSeed::r0
const float * r0() const
Definition: ITkSiSpacePointForSeed.h:81
ITk::SiSpacePointForSeed::spacepoint
const Trk::SpacePoint * spacepoint
Definition: ITkSiSpacePointForSeed.h:61
ITk::SiSpacePointForSeed::dr
const float * dr() const
Definition: ITkSiSpacePointForSeed.h:80
ITk::SiSpacePointForSeed::m_z
float m_z
Definition: ITkSiSpacePointForSeed.h:89
ITk::SiSpacePointForSeed::SiSpacePointForSeed
SiSpacePointForSeed(const SiSpacePointForSeed &)=default
ITk::SiSpacePointForSeed::m_q
float m_q
Definition: ITkSiSpacePointForSeed.h:94
ITk::SiSpacePointForSeed::SiSpacePointForSeed
SiSpacePointForSeed(SiSpacePointForSeed &&) noexcept=default
ITk::SiSpacePointForSeed::eta
const float & eta() const
Definition: ITkSiSpacePointForSeed.h:72
ITk::SiSpacePointForSeed::set
void set(const Trk::SpacePoint *const &, const float *)
Definition: ITkSiSpacePointForSeed.cxx:36
ITk::SiSpacePointForSeed::m_x
float m_x
Definition: ITkSiSpacePointForSeed.h:87
ITk::SiSpacePointForSeed::m_param
float m_param
Definition: ITkSiSpacePointForSeed.h:93
ITk::SiSpacePointForSeed::operator=
SiSpacePointForSeed & operator=(const SiSpacePointForSeed &)=default
ITk::SiSpacePointForSeed::radius
const float & radius() const
Definition: ITkSiSpacePointForSeed.h:65
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:14
ITk::SiSpacePointForSeed::setDZDR
void setDZDR(const float &)
Definition: ITkSiSpacePointForSeed.cxx:85
ITk::SiSpacePointForSeed::m_dR
float m_dR
penalty term in the seed score
Definition: ITkSiSpacePointForSeed.h:96
ITk::SiSpacePointForSeed::m_eta
float m_eta
Definition: ITkSiSpacePointForSeed.h:97
ITk::SiSpacePointForSeed::m_covz
float m_covz
Definition: ITkSiSpacePointForSeed.h:92
ITk::SiSpacePointForSeed::covz
const float & covz() const
Definition: ITkSiSpacePointForSeed.h:68
ITk::SiSpacePointForSeed::m_covr
float m_covr
Definition: ITkSiSpacePointForSeed.h:91
ITk::SiSpacePointForSeed::setQuality
void setQuality(float)
Definition: ITkSiSpacePointForSeed.cxx:145
ITk::SiSpacePointForSeed::x
const float & x() const
Definition: ITkSiSpacePointForSeed.h:62
ITk::SiSpacePointForSeed::dzdr
const float & dzdr() const
Definition: ITkSiSpacePointForSeed.h:71
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
ITk::SiSpacePointForSeed::m_b1
float m_b1[3]
Definition: ITkSiSpacePointForSeed.h:103
ITk::SiSpacePointForSeed::m_b0
float m_b0[3]
Definition: ITkSiSpacePointForSeed.h:102
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
ITk::SiSpacePointForSeed::setParam
void setParam(const float &)
Definition: ITkSiSpacePointForSeed.cxx:141
ITk::SiSpacePointForSeed::covr
const float & covr() const
Definition: ITkSiSpacePointForSeed.h:67
ITk::SiSpacePointForSeed::b1
const float * b1() const
Definition: ITkSiSpacePointForSeed.h:79
ITk::SiSpacePointForSeed::setDR
void setDR(const float &)
Definition: ITkSiSpacePointForSeed.cxx:75
ITk::SiSpacePointForSeed::setScorePenalty
void setScorePenalty(const float &)
Definition: ITkSiSpacePointForSeed.cxx:95
ITk::SiSpacePointForSeed
Definition: ITkSiSpacePointForSeed.h:33
ITk::SiSpacePointForSeed::m_r
float m_r
Definition: ITkSiSpacePointForSeed.h:90