ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
InDet::SiSpacePointForSeed Class Referencefinal

#include <SiSpacePointForSeed.h>

Collaboration diagram for InDet::SiSpacePointForSeed:

Public Member Functions

 SiSpacePointForSeed ()=default
 
 SiSpacePointForSeed (const SiSpacePointForSeed &)=default
 
SiSpacePointForSeedoperator= (const SiSpacePointForSeed &)=default
 
 SiSpacePointForSeed (SiSpacePointForSeed &&) noexcept=default
 
SiSpacePointForSeedoperator= (SiSpacePointForSeed &) noexcept=default
 
 ~SiSpacePointForSeed ()=default
 
 SiSpacePointForSeed (const Trk::SpacePoint *const &, const float *)
 
 SiSpacePointForSeed (const Trk::SpacePoint *const &, const float *, const float *)
 
void set (const Trk::SpacePoint *const &, const float *)
 
void set (const Trk::SpacePoint *const &, const float *, const float *)
 
void setQuality (float)
 
void setParam (const float &)
 
void setD0 (const float &)
 
void setEta (const float &)
 
void setDZDR (const float &)
 
void setPt (const float &)
 
void setScorePenalty (const float &par)
 
const float & x () const
 
const float & y () const
 
const float & z () const
 
const float & radius () const
 
float phi () const
 
const float & covr () const
 
const float & covz () const
 
const float & d0 () const
 
const float & eta () const
 
const float & param () const
 
const float & scorePenalty () const
 impact parameter More...
 
const float & quality () const
 penalty term in the seed score More...
 
const float & dzdr () const
 quality of the best seed this candidate was seen on More...
 
const float & Pt () const
 
const Trk::Surfacesur () const
 
const Trk::Surfacesun () const
 

Public Attributes

const Trk::SpacePointspacepoint = nullptr
 

Private Attributes

float m_x {}
 
float m_y {}
 
float m_z {}
 
float m_r {}
 
float m_covr {}
 
float m_covz {}
 
float m_d0 = 0.f
 
float m_eta = 0.f
 
float m_dzdr = 0.f
 
float m_pt = 0.f
 
float m_param {}
 
float m_scorePenalty =0.f
 impact parameter More...
 
float m_q {}
 penalty term in the seed score More...
 
const Trk::Surfacem_su = nullptr
 quality of the best seed this candidate was seen on More...
 
const Trk::Surfacem_sn = nullptr
 

Detailed Description

Definition at line 30 of file SiSpacePointForSeed.h.

Constructor & Destructor Documentation

◆ SiSpacePointForSeed() [1/5]

InDet::SiSpacePointForSeed::SiSpacePointForSeed ( )
default

◆ SiSpacePointForSeed() [2/5]

InDet::SiSpacePointForSeed::SiSpacePointForSeed ( const SiSpacePointForSeed )
default

◆ SiSpacePointForSeed() [3/5]

InDet::SiSpacePointForSeed::SiSpacePointForSeed ( SiSpacePointForSeed &&  )
defaultnoexcept

◆ ~SiSpacePointForSeed()

InDet::SiSpacePointForSeed::~SiSpacePointForSeed ( )
default

◆ SiSpacePointForSeed() [4/5]

InDet::SiSpacePointForSeed::SiSpacePointForSeed ( const Trk::SpacePoint *const sp,
const float *  r 
)

Definition at line 18 of file SiSpacePointForSeed.cxx.

20  {
21  set(sp,r); m_param = 0.;
22  }

◆ SiSpacePointForSeed() [5/5]

InDet::SiSpacePointForSeed::SiSpacePointForSeed ( const Trk::SpacePoint *const sp,
const float *  r,
const float *  sc 
)

Definition at line 24 of file SiSpacePointForSeed.cxx.

26  {
27  set(sp,r,sc); m_param = 0.;
28  }

Member Function Documentation

◆ covr()

const float& InDet::SiSpacePointForSeed::covr ( ) const
inline

Definition at line 64 of file SiSpacePointForSeed.h.

64 {return m_covr;}

◆ covz()

const float& InDet::SiSpacePointForSeed::covz ( ) const
inline

Definition at line 65 of file SiSpacePointForSeed.h.

65 {return m_covz;}

◆ d0()

const float& InDet::SiSpacePointForSeed::d0 ( ) const
inline

Definition at line 66 of file SiSpacePointForSeed.h.

66 {return m_d0;}

◆ dzdr()

const float& InDet::SiSpacePointForSeed::dzdr ( ) const
inline

quality of the best seed this candidate was seen on

Definition at line 71 of file SiSpacePointForSeed.h.

71 {return m_dzdr;}

◆ eta()

const float& InDet::SiSpacePointForSeed::eta ( ) const
inline

Definition at line 67 of file SiSpacePointForSeed.h.

67 {return m_eta;}

◆ operator=() [1/2]

SiSpacePointForSeed& InDet::SiSpacePointForSeed::operator= ( const SiSpacePointForSeed )
default

◆ operator=() [2/2]

SiSpacePointForSeed& InDet::SiSpacePointForSeed::operator= ( SiSpacePointForSeed )
defaultnoexcept

◆ param()

const float& InDet::SiSpacePointForSeed::param ( ) const
inline

Definition at line 68 of file SiSpacePointForSeed.h.

68 {return m_param;}

◆ phi()

float InDet::SiSpacePointForSeed::phi ( ) const
inline

Definition at line 63 of file SiSpacePointForSeed.h.

63 {return atan2(m_y,m_x);}

◆ Pt()

const float& InDet::SiSpacePointForSeed::Pt ( ) const
inline

Definition at line 72 of file SiSpacePointForSeed.h.

72 {return m_pt;}

◆ quality()

const float& InDet::SiSpacePointForSeed::quality ( ) const
inline

penalty term in the seed score

Definition at line 70 of file SiSpacePointForSeed.h.

70 {return m_q ;}

◆ radius()

const float& InDet::SiSpacePointForSeed::radius ( ) const
inline

Definition at line 62 of file SiSpacePointForSeed.h.

62 {return m_r;}

◆ scorePenalty()

const float& InDet::SiSpacePointForSeed::scorePenalty ( ) const
inline

impact parameter

Definition at line 69 of file SiSpacePointForSeed.h.

69 {return m_scorePenalty;}

◆ set() [1/2]

void InDet::SiSpacePointForSeed::set ( const Trk::SpacePoint *const sp,
const float *  r 
)

Definition at line 35 of file SiSpacePointForSeed.cxx.

37  {
38  spacepoint = sp ;
39  m_x = r[0];
40  m_y = r[1];
41  m_z = r[2];
42  m_r =std::sqrt(m_x*m_x+m_y*m_y);
43  m_q = 100000.;
44 
45  const InDet::SiCluster* c = static_cast<const InDet::SiCluster*>(sp->clusterList().first);
46  const InDetDD::SiDetectorElement* de = c ->detectorElement();
47 
48  if( de->isPixel() ) {
49 
50  const Amg::MatrixX& v = c->localCovariance();
51  float f22 = float(v(1,1) );
52  float wid = float(c->width().z());
53  float cov = wid*wid*.08333; if(cov < f22) cov = f22;
54  if(de->isBarrel()) {m_covz = 9.*cov; m_covr = .06;}
55  else {m_covr = 9.*cov; m_covz = .06;}
56  m_sn = nullptr;
57  }
58  else {
59 
60  const Amg::MatrixX& v = sp->localCovariance();
61  float f22 = float(v(1,1));
62  if(de->isBarrel()) {m_covz = 8.*f22; m_covr = .1;}
63  else {m_covr = 8.*f22; m_covz = .1;}
64  m_sn = &sp->clusterList().second->detectorElement()->surface();
65  }
66  m_su = &sp->clusterList().first->detectorElement()->surface();
67  }

◆ set() [2/2]

void InDet::SiSpacePointForSeed::set ( const Trk::SpacePoint *const sp,
const float *  r,
const float *  sc 
)

Definition at line 77 of file SiSpacePointForSeed.cxx.

79  {
80  spacepoint = sp ;
81  m_x = r[0];
82  m_y = r[1];
83  m_z = r[2];
84  m_r =std::sqrt(m_x*m_x+m_y*m_y);
85  m_q = 100000.;
86 
87  const InDet::SiCluster* c = static_cast<const InDet::SiCluster*>(sp->clusterList().first);
88  const InDetDD::SiDetectorElement* de = c ->detectorElement();
89 
90  if( de->isPixel() ) {
91 
92  const Amg::MatrixX& v = c->localCovariance();
93  float f22 = float(v(1,1));
94  float wid = float(c->width().z());
95  float cov = wid*wid*.08333; if(cov < f22) cov = f22;
96  if(de->isBarrel()) {m_covz = 9.*cov*sc[0]; m_covr = .06;}
97  else {m_covr = 9.*cov*sc[1]; m_covz = .06;}
98  m_sn = nullptr;
99  }
100  else {
101 
102  const Amg::MatrixX& v = sp->localCovariance();
103  float f22 = float(v(1,1));
104  if(de->isBarrel()) {m_covz = 8.*f22*sc[2]; m_covr = .1;}
105  else {m_covr = 8.*f22*sc[3]; m_covz = .1;}
106  m_sn = &sp->clusterList().second->detectorElement()->surface();
107  }
108  m_su = &sp->clusterList().first->detectorElement()->surface();
109  }

◆ setD0()

void InDet::SiSpacePointForSeed::setD0 ( const float &  d0)

Definition at line 116 of file SiSpacePointForSeed.cxx.

117  {
118  m_d0 = d0;
119  }

◆ setDZDR()

void InDet::SiSpacePointForSeed::setDZDR ( const float &  dzdr)

Definition at line 131 of file SiSpacePointForSeed.cxx.

132  {
133  m_dzdr = dzdr;
134  }

◆ setEta()

void InDet::SiSpacePointForSeed::setEta ( const float &  eta)

Definition at line 121 of file SiSpacePointForSeed.cxx.

122  {
123  m_eta = eta;
124  }

◆ setParam()

void InDet::SiSpacePointForSeed::setParam ( const float &  p)

Definition at line 111 of file SiSpacePointForSeed.cxx.

112  {
113  m_param = p;
114  }

◆ setPt()

void InDet::SiSpacePointForSeed::setPt ( const float &  pt)

Definition at line 136 of file SiSpacePointForSeed.cxx.

137  {
138  m_pt = pt;
139  }

◆ setQuality()

void InDet::SiSpacePointForSeed::setQuality ( float  q)

Definition at line 126 of file SiSpacePointForSeed.cxx.

127  {
128  if(q <= m_q) m_q = q;
129  }

◆ setScorePenalty()

void InDet::SiSpacePointForSeed::setScorePenalty ( const float &  par)
inline

Definition at line 56 of file SiSpacePointForSeed.h.

◆ sun()

const Trk::Surface* InDet::SiSpacePointForSeed::sun ( ) const
inline

Definition at line 74 of file SiSpacePointForSeed.h.

74 {return m_sn;}

◆ sur()

const Trk::Surface* InDet::SiSpacePointForSeed::sur ( ) const
inline

Definition at line 73 of file SiSpacePointForSeed.h.

73 {return m_su;}

◆ x()

const float& InDet::SiSpacePointForSeed::x ( ) const
inline

Definition at line 59 of file SiSpacePointForSeed.h.

59 {return m_x;}

◆ y()

const float& InDet::SiSpacePointForSeed::y ( ) const
inline

Definition at line 60 of file SiSpacePointForSeed.h.

60 {return m_y;}

◆ z()

const float& InDet::SiSpacePointForSeed::z ( ) const
inline

Definition at line 61 of file SiSpacePointForSeed.h.

61 {return m_z;}

Member Data Documentation

◆ m_covr

float InDet::SiSpacePointForSeed::m_covr {}
private

Definition at line 82 of file SiSpacePointForSeed.h.

◆ m_covz

float InDet::SiSpacePointForSeed::m_covz {}
private

Definition at line 83 of file SiSpacePointForSeed.h.

◆ m_d0

float InDet::SiSpacePointForSeed::m_d0 = 0.f
private

Definition at line 84 of file SiSpacePointForSeed.h.

◆ m_dzdr

float InDet::SiSpacePointForSeed::m_dzdr = 0.f
private

Definition at line 86 of file SiSpacePointForSeed.h.

◆ m_eta

float InDet::SiSpacePointForSeed::m_eta = 0.f
private

Definition at line 85 of file SiSpacePointForSeed.h.

◆ m_param

float InDet::SiSpacePointForSeed::m_param {}
private

Definition at line 88 of file SiSpacePointForSeed.h.

◆ m_pt

float InDet::SiSpacePointForSeed::m_pt = 0.f
private

Definition at line 87 of file SiSpacePointForSeed.h.

◆ m_q

float InDet::SiSpacePointForSeed::m_q {}
private

penalty term in the seed score

Definition at line 90 of file SiSpacePointForSeed.h.

◆ m_r

float InDet::SiSpacePointForSeed::m_r {}
private

Definition at line 81 of file SiSpacePointForSeed.h.

◆ m_scorePenalty

float InDet::SiSpacePointForSeed::m_scorePenalty =0.f
private

impact parameter

Definition at line 89 of file SiSpacePointForSeed.h.

◆ m_sn

const Trk::Surface* InDet::SiSpacePointForSeed::m_sn = nullptr
private

Definition at line 92 of file SiSpacePointForSeed.h.

◆ m_su

const Trk::Surface* InDet::SiSpacePointForSeed::m_su = nullptr
private

quality of the best seed this candidate was seen on

Definition at line 91 of file SiSpacePointForSeed.h.

◆ m_x

float InDet::SiSpacePointForSeed::m_x {}
private

Definition at line 78 of file SiSpacePointForSeed.h.

◆ m_y

float InDet::SiSpacePointForSeed::m_y {}
private

Definition at line 79 of file SiSpacePointForSeed.h.

◆ m_z

float InDet::SiSpacePointForSeed::m_z {}
private

Definition at line 80 of file SiSpacePointForSeed.h.

◆ spacepoint

const Trk::SpacePoint* InDet::SiSpacePointForSeed::spacepoint = nullptr

Definition at line 58 of file SiSpacePointForSeed.h.


The documentation for this class was generated from the following files:
Trk::SpacePoint::clusterList
const std::pair< const PrepRawData *, const PrepRawData * > & clusterList() const
return the pair of cluster pointers by reference
Definition: Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h:127
beamspotman.r
def r
Definition: beamspotman.py:676
InDet::SiSpacePointForSeed::m_r
float m_r
Definition: SiSpacePointForSeed.h:81
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
InDet::SiSpacePointForSeed::m_dzdr
float m_dzdr
Definition: SiSpacePointForSeed.h:86
InDet::SiSpacePointForSeed::d0
const float & d0() const
Definition: SiSpacePointForSeed.h:66
InDet::SiSpacePointForSeed::m_q
float m_q
penalty term in the seed score
Definition: SiSpacePointForSeed.h:90
InDet::SiSpacePointForSeed::spacepoint
const Trk::SpacePoint * spacepoint
Definition: SiSpacePointForSeed.h:58
InDet::SiSpacePointForSeed::m_d0
float m_d0
Definition: SiSpacePointForSeed.h:84
InDet::SiSpacePointForSeed::m_scorePenalty
float m_scorePenalty
impact parameter
Definition: SiSpacePointForSeed.h:89
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
test_pyathena.pt
pt
Definition: test_pyathena.py:11
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
InDet::SiSpacePointForSeed::m_covz
float m_covz
Definition: SiSpacePointForSeed.h:83
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
InDet::SiSpacePointForSeed::eta
const float & eta() const
Definition: SiSpacePointForSeed.h:67
InDet::SiSpacePointForSeed::set
void set(const Trk::SpacePoint *const &, const float *)
Definition: SiSpacePointForSeed.cxx:36
InDet::SiSpacePointForSeed::m_z
float m_z
Definition: SiSpacePointForSeed.h:80
Trk::MeasurementBase::localCovariance
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Definition: MeasurementBase.h:138
InDetDD::SiDetectorElement::isPixel
bool isPixel() const
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
InDet::SiSpacePointForSeed::m_covr
float m_covr
Definition: SiSpacePointForSeed.h:82
InDet::SiSpacePointForSeed::m_sn
const Trk::Surface * m_sn
Definition: SiSpacePointForSeed.h:92
InDet::SiSpacePointForSeed::m_su
const Trk::Surface * m_su
quality of the best seed this candidate was seen on
Definition: SiSpacePointForSeed.h:91
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
InDetDD::SiDetectorElement::isBarrel
bool isBarrel() const
InDet::SiSpacePointForSeed::m_pt
float m_pt
Definition: SiSpacePointForSeed.h:87
InDet::SiSpacePointForSeed::m_x
float m_x
Definition: SiSpacePointForSeed.h:78
python.PyAthena.v
v
Definition: PyAthena.py:154
InDet::SiSpacePointForSeed::m_y
float m_y
Definition: SiSpacePointForSeed.h:79
extractSporadic.q
list q
Definition: extractSporadic.py:98
InDet::SiSpacePointForSeed::m_param
float m_param
Definition: SiSpacePointForSeed.h:88
InDet::SiSpacePointForSeed::dzdr
const float & dzdr() const
quality of the best seed this candidate was seen on
Definition: SiSpacePointForSeed.h:71
python.compressB64.c
def c
Definition: compressB64.py:93
readCCLHist.float
float
Definition: readCCLHist.py:83
InDet::SiCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:40
InDet::SiSpacePointForSeed::m_eta
float m_eta
Definition: SiSpacePointForSeed.h:85