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

#include <SiSpacePointsProSeed.h>

Collaboration diagram for InDet::SiSpacePointsProSeed:

Public Member Functions

 SiSpacePointsProSeed ()
 
 SiSpacePointsProSeed (SiSpacePointForSeed *&, SiSpacePointForSeed *&, SiSpacePointForSeed *&, float)
 
 SiSpacePointsProSeed (const SiSpacePointsProSeed &)
 
SiSpacePointsProSeedoperator= (const SiSpacePointsProSeed &)
 
 SiSpacePointsProSeed (SiSpacePointsProSeed &&)=default
 
SiSpacePointsProSeedoperator= (SiSpacePointsProSeed &&)=default
 
 ~SiSpacePointsProSeed ()=default
 
SiSpacePointForSeedspacepoint0 ()
 
SiSpacePointForSeedspacepoint1 ()
 
SiSpacePointForSeedspacepoint2 ()
 
const float & d0 () const
 
const float & z () const
 
const float & eta () const
 
const float & z1 () const
 
const float & z2 () const
 
const float & z3 () const
 
const float & r1 () const
 
const float & r2 () const
 
const float & r3 () const
 
const float & quality () const
 
void set (SiSpacePointForSeed *&, SiSpacePointForSeed *&, SiSpacePointForSeed *&, float)
 
bool setQuality (float)
 
bool set3 (InDet::SiSpacePointsSeed &)
 
void set2 (InDet::SiSpacePointsSeed &)
 

Private Attributes

SiSpacePointForSeedm_s0 {}
 
SiSpacePointForSeedm_s1 {}
 
SiSpacePointForSeedm_s2 {}
 
float m_d0 {}
 
float m_z {}
 
float m_eta {}
 
float m_z1 {}
 
float m_z2 {}
 
float m_z3 {}
 
float m_r1 {}
 
float m_r2 {}
 
float m_r3 {}
 
float m_q {}
 

Detailed Description

Definition at line 24 of file SiSpacePointsProSeed.h.

Constructor & Destructor Documentation

◆ SiSpacePointsProSeed() [1/4]

InDet::SiSpacePointsProSeed::SiSpacePointsProSeed ( )

Definition at line 11 of file SiSpacePointsProSeed.cxx.

12  {
13  m_s0 = nullptr ;
14  m_s1 = nullptr ;
15  m_s2 = nullptr ;
16  m_d0 = 0.;
17  m_eta = 0.;
18  m_z = 0.;
19  m_q = 0.;
20  }

◆ SiSpacePointsProSeed() [2/4]

InDet::SiSpacePointsProSeed::SiSpacePointsProSeed ( SiSpacePointForSeed *&  s0,
SiSpacePointForSeed *&  s1,
SiSpacePointForSeed *&  s2,
float  z 
)

Definition at line 40 of file SiSpacePointsProSeed.cxx.

42  {
43  set(s0,s1,s2,z); m_q = 0.;
44  }

◆ SiSpacePointsProSeed() [3/4]

InDet::SiSpacePointsProSeed::SiSpacePointsProSeed ( const SiSpacePointsProSeed sp)

Definition at line 50 of file SiSpacePointsProSeed.cxx.

50  : m_s0(sp.m_s0),m_s1(sp.m_s1),m_s2(sp.m_s2)
51  {
52  *this = sp;
53  }

◆ SiSpacePointsProSeed() [4/4]

InDet::SiSpacePointsProSeed::SiSpacePointsProSeed ( SiSpacePointsProSeed &&  )
default

◆ ~SiSpacePointsProSeed()

InDet::SiSpacePointsProSeed::~SiSpacePointsProSeed ( )
default

Member Function Documentation

◆ d0()

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

Definition at line 44 of file SiSpacePointsProSeed.h.

44 {return m_d0;}

◆ eta()

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

Definition at line 46 of file SiSpacePointsProSeed.h.

46 {return m_eta;}

◆ operator=() [1/2]

SiSpacePointsProSeed & InDet::SiSpacePointsProSeed::operator= ( const SiSpacePointsProSeed sp)

Definition at line 24 of file SiSpacePointsProSeed.cxx.

26  {
27  if(&sp!=this) {
28 
29  m_d0 = sp.m_d0;
30  m_z = sp.m_z ;
31  m_eta = sp.m_eta;
32  m_q = sp.m_q ;
33  m_s0 = sp.m_s0;
34  m_s1 = sp.m_s1;
35  m_s2 = sp.m_s2;
36  }
37  return(*this);
38  }

◆ operator=() [2/2]

SiSpacePointsProSeed& InDet::SiSpacePointsProSeed::operator= ( SiSpacePointsProSeed &&  )
default

◆ quality()

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

Definition at line 53 of file SiSpacePointsProSeed.h.

53 {return m_q ;}

◆ r1()

const float& InDet::SiSpacePointsProSeed::r1 ( ) const
inline

Definition at line 50 of file SiSpacePointsProSeed.h.

50 {return m_r1;}

◆ r2()

const float& InDet::SiSpacePointsProSeed::r2 ( ) const
inline

Definition at line 51 of file SiSpacePointsProSeed.h.

51 {return m_r2;}

◆ r3()

const float& InDet::SiSpacePointsProSeed::r3 ( ) const
inline

Definition at line 52 of file SiSpacePointsProSeed.h.

52 {return m_r3;}

◆ set()

void InDet::SiSpacePointsProSeed::set ( SiSpacePointForSeed *&  s0,
SiSpacePointForSeed *&  s1,
SiSpacePointForSeed *&  s2,
float  z 
)

Definition at line 59 of file SiSpacePointsProSeed.cxx.

61  {
62  m_z = z ;
63  m_s0 = s0;
64  m_s1 = s1;
65  m_s2 = s2;
66  }

◆ set2()

void InDet::SiSpacePointsProSeed::set2 ( InDet::SiSpacePointsSeed s)

Definition at line 72 of file SiSpacePointsProSeed.cxx.

73  {
74  s.erase();
75  s.add(m_s0->spacepoint);
76  s.add(m_s1->spacepoint);
77  s.setZVertex(double(m_z));
78  }

◆ set3()

bool InDet::SiSpacePointsProSeed::set3 ( InDet::SiSpacePointsSeed s)

Definition at line 84 of file SiSpacePointsProSeed.cxx.

85  {
86 
87  bool pixb = !m_s0->spacepoint->clusterList().second;
88  bool pixt = !m_s2->spacepoint->clusterList().second;
89 
90  if(pixb!=pixt) {
91  if(m_q > m_s0->quality() && m_q > m_s1->quality() && m_q > m_s2->quality()) return false;
92  }
93 
97 
98  s.erase();
99  s.add(m_s0->spacepoint);
100  s.add(m_s1->spacepoint);
101  s.add(m_s2->spacepoint);
102  s.setD0(m_s2->param());
103  s.setZVertex(double(m_z));
104  s.setEta(m_s2->eta());
105  s.setX1(m_s0->x());
106  s.setX2(m_s1->x());
107  s.setX3(m_s2->x());
108  s.setY1(m_s0->y());
109  s.setY2(m_s1->y());
110  s.setY3(m_s2->y());
111  s.setZ1(m_s0->z());
112  s.setZ2(m_s1->z());
113  s.setZ3(m_s2->z());
114  s.setR1(m_s0->radius());
115  s.setR2(m_s1->radius());
116  s.setR3(m_s2->radius());
117  s.setDZDR_B(m_s0->dzdr());
118  s.setDZDR_T(m_s2->dzdr());
119  s.setPt(m_s2->Pt());
120  return true;
121  }

◆ setQuality()

bool InDet::SiSpacePointsProSeed::setQuality ( float  q)

if PPP or SSS, just update quality, don't cut

Definition at line 127 of file SiSpacePointsProSeed.cxx.

128  {
129  m_q = q;
130  bool pixb = !m_s0->spacepoint->clusterList().second;
131  bool pixt = !m_s2->spacepoint->clusterList().second;
133  if(pixb==pixt) {
134  m_s0->setQuality(q);
135  m_s1->setQuality(q);
136  m_s2->setQuality(q);
137  return true;
138  }
139  return q < m_s0->quality() || q < m_s1->quality() || q < m_s2->quality();
140  }

◆ spacepoint0()

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::spacepoint0 ( )
inline

Definition at line 41 of file SiSpacePointsProSeed.h.

41 {return m_s0;}

◆ spacepoint1()

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::spacepoint1 ( )
inline

Definition at line 42 of file SiSpacePointsProSeed.h.

42 {return m_s1;}

◆ spacepoint2()

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::spacepoint2 ( )
inline

Definition at line 43 of file SiSpacePointsProSeed.h.

43 {return m_s2;}

◆ z()

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

Definition at line 45 of file SiSpacePointsProSeed.h.

45 {return m_z ;}

◆ z1()

const float& InDet::SiSpacePointsProSeed::z1 ( ) const
inline

Definition at line 47 of file SiSpacePointsProSeed.h.

47 {return m_z1;}

◆ z2()

const float& InDet::SiSpacePointsProSeed::z2 ( ) const
inline

Definition at line 48 of file SiSpacePointsProSeed.h.

48 {return m_z2;}

◆ z3()

const float& InDet::SiSpacePointsProSeed::z3 ( ) const
inline

Definition at line 49 of file SiSpacePointsProSeed.h.

49 {return m_z3;}

Member Data Documentation

◆ m_d0

float InDet::SiSpacePointsProSeed::m_d0 {}
private

Definition at line 65 of file SiSpacePointsProSeed.h.

◆ m_eta

float InDet::SiSpacePointsProSeed::m_eta {}
private

Definition at line 67 of file SiSpacePointsProSeed.h.

◆ m_q

float InDet::SiSpacePointsProSeed::m_q {}
private

Definition at line 74 of file SiSpacePointsProSeed.h.

◆ m_r1

float InDet::SiSpacePointsProSeed::m_r1 {}
private

Definition at line 71 of file SiSpacePointsProSeed.h.

◆ m_r2

float InDet::SiSpacePointsProSeed::m_r2 {}
private

Definition at line 72 of file SiSpacePointsProSeed.h.

◆ m_r3

float InDet::SiSpacePointsProSeed::m_r3 {}
private

Definition at line 73 of file SiSpacePointsProSeed.h.

◆ m_s0

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::m_s0 {}
private

Definition at line 62 of file SiSpacePointsProSeed.h.

◆ m_s1

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::m_s1 {}
private

Definition at line 63 of file SiSpacePointsProSeed.h.

◆ m_s2

SiSpacePointForSeed* InDet::SiSpacePointsProSeed::m_s2 {}
private

Definition at line 64 of file SiSpacePointsProSeed.h.

◆ m_z

float InDet::SiSpacePointsProSeed::m_z {}
private

Definition at line 66 of file SiSpacePointsProSeed.h.

◆ m_z1

float InDet::SiSpacePointsProSeed::m_z1 {}
private

Definition at line 68 of file SiSpacePointsProSeed.h.

◆ m_z2

float InDet::SiSpacePointsProSeed::m_z2 {}
private

Definition at line 69 of file SiSpacePointsProSeed.h.

◆ m_z3

float InDet::SiSpacePointsProSeed::m_z3 {}
private

Definition at line 70 of file SiSpacePointsProSeed.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
InDet::SiSpacePointsProSeed::m_eta
float m_eta
Definition: SiSpacePointsProSeed.h:67
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
InDet::SiSpacePointsProSeed::z
const float & z() const
Definition: SiSpacePointsProSeed.h:45
InDet::SiSpacePointsProSeed::m_z3
float m_z3
Definition: SiSpacePointsProSeed.h:70
InDet::SiSpacePointForSeed::spacepoint
const Trk::SpacePoint * spacepoint
Definition: SiSpacePointForSeed.h:58
InDet::SiSpacePointsProSeed::m_s2
SiSpacePointForSeed * m_s2
Definition: SiSpacePointsProSeed.h:64
MCP::ScaleSmearParam::s0
@ s0
InDet::SiSpacePointsProSeed::m_z2
float m_z2
Definition: SiSpacePointsProSeed.h:69
InDet::SiSpacePointForSeed::x
const float & x() const
Definition: SiSpacePointForSeed.h:59
InDet::SiSpacePointForSeed::radius
const float & radius() const
Definition: SiSpacePointForSeed.h:62
InDet::SiSpacePointsProSeed::m_r3
float m_r3
Definition: SiSpacePointsProSeed.h:73
InDet::SiSpacePointForSeed::Pt
const float & Pt() const
Definition: SiSpacePointForSeed.h:72
InDet::SiSpacePointForSeed::param
const float & param() const
Definition: SiSpacePointForSeed.h:68
InDet::SiSpacePointForSeed::eta
const float & eta() const
Definition: SiSpacePointForSeed.h:67
InDet::SiSpacePointForSeed::y
const float & y() const
Definition: SiSpacePointForSeed.h:60
InDet::SiSpacePointsProSeed::m_r2
float m_r2
Definition: SiSpacePointsProSeed.h:72
InDet::SiSpacePointForSeed::z
const float & z() const
Definition: SiSpacePointForSeed.h:61
InDet::SiSpacePointForSeed::setQuality
void setQuality(float)
Definition: SiSpacePointForSeed.cxx:126
InDet::SiSpacePointsProSeed::m_r1
float m_r1
Definition: SiSpacePointsProSeed.h:71
InDet::SiSpacePointForSeed::quality
const float & quality() const
penalty term in the seed score
Definition: SiSpacePointForSeed.h:70
InDet::SiSpacePointsProSeed::set
void set(SiSpacePointForSeed *&, SiSpacePointForSeed *&, SiSpacePointForSeed *&, float)
Definition: SiSpacePointsProSeed.cxx:60
InDet::SiSpacePointsProSeed::m_s1
SiSpacePointForSeed * m_s1
Definition: SiSpacePointsProSeed.h:63
InDet::SiSpacePointsProSeed::m_s0
SiSpacePointForSeed * m_s0
Definition: SiSpacePointsProSeed.h:62
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
InDet::SiSpacePointsProSeed::m_q
float m_q
Definition: SiSpacePointsProSeed.h:74
extractSporadic.q
list q
Definition: extractSporadic.py:98
InDet::SiSpacePointsProSeed::m_d0
float m_d0
Definition: SiSpacePointsProSeed.h:65
InDet::SiSpacePointForSeed::dzdr
const float & dzdr() const
quality of the best seed this candidate was seen on
Definition: SiSpacePointForSeed.h:71
InDet::SiSpacePointsProSeed::m_z1
float m_z1
Definition: SiSpacePointsProSeed.h:68
InDet::SiSpacePointsProSeed::m_z
float m_z
Definition: SiSpacePointsProSeed.h:66