ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
XYPosition Class Reference

#include <TGCDQAUtils.h>

Collaboration diagram for XYPosition:

Public Member Functions

 XYPosition ()
 
 ~XYPosition ()
 
 XYPosition (double x, double y, double sigma, int layer)
 
 XYPosition (double x, double y, double sigma, int layer, int type)
 
double x ()
 
double y ()
 
double sigma ()
 
double pchi2 ()
 
int signchi ()
 
double X ()
 
double XX ()
 
double XY ()
 
double Y ()
 
double YY ()
 
double SS ()
 
int layer ()
 
bool used ()
 
bool usable ()
 
int type ()
 
void x (double x)
 
void y (double y)
 
void sigma (double sigma)
 
void pchi2 (double pchi2)
 
void signchi (int signchi)
 
void X (double X)
 
void XX (double XX)
 
void XY (double XY)
 
void Y (double Y)
 
void YY (double YY)
 
void SS (double SS)
 
void layer (int layer)
 
void used (bool used)
 
void usable (bool usable)
 

Private Attributes

double m_x
 
double m_y
 
double m_sigma
 
double m_pchi2
 
int m_signchi
 
double m_X
 
double m_XX
 
double m_XY
 
double m_Y
 
double m_YY
 
double m_SS
 
int m_layer
 
bool m_used
 
bool m_usable
 
int m_type
 

Friends

std::ostream & operator<< (std::ostream &s, XYPosition &xy)
 
bool operator< (XYPosition &xy0, XYPosition &xy1)
 
bool operator> (XYPosition &xy0, XYPosition &xy1)
 

Detailed Description

Definition at line 69 of file TGCDQAUtils.h.

Constructor & Destructor Documentation

◆ XYPosition() [1/3]

XYPosition::XYPosition ( )
inline

Definition at line 93 of file TGCDQAUtils.h.

93 {;}

◆ ~XYPosition()

XYPosition::~XYPosition ( )
inline

Definition at line 94 of file TGCDQAUtils.h.

94 {;}

◆ XYPosition() [2/3]

XYPosition::XYPosition ( double  x,
double  y,
double  sigma,
int  layer 
)
inline

Definition at line 95 of file TGCDQAUtils.h.

99  :m_x(x),
100  m_y(y),
101  m_sigma(sigma),
102  m_pchi2(0.0),
103  m_signchi(0),
104  m_layer(layer),
105  m_used(true),
106  m_usable(true),
107  m_type(0)
108  {
109  m_SS = 1./(sigma*sigma);
110  m_X = x*m_SS;
111  m_XX = x*m_X;
112  m_XY = y*m_X;
113  m_Y = y*m_SS;
114  m_YY = y*m_Y;
115  }

◆ XYPosition() [3/3]

XYPosition::XYPosition ( double  x,
double  y,
double  sigma,
int  layer,
int  type 
)
inline

Definition at line 117 of file TGCDQAUtils.h.

122  :m_x(x),
123  m_y(y),
124  m_sigma(sigma),
125  m_pchi2(0.0),
126  m_signchi(0),
127  m_layer(layer),
128  m_used(true),
129  m_usable(true),
130  m_type(type)
131  {
132  m_SS = 1./(sigma*sigma);
133  m_X = x*m_SS;
134  m_XX = x*m_X;
135  m_XY = y*m_X;
136  m_Y = y*m_SS;
137  m_YY = y*m_Y;
138  }

Member Function Documentation

◆ layer() [1/2]

int XYPosition::layer ( )
inline

Definition at line 155 of file TGCDQAUtils.h.

155 {return m_layer;}

◆ layer() [2/2]

void XYPosition::layer ( int  layer)
inline

Definition at line 174 of file TGCDQAUtils.h.

174 {m_layer=layer;}

◆ pchi2() [1/2]

double XYPosition::pchi2 ( )
inline

Definition at line 145 of file TGCDQAUtils.h.

145 {return m_pchi2;}

◆ pchi2() [2/2]

void XYPosition::pchi2 ( double  pchi2)
inline

Definition at line 164 of file TGCDQAUtils.h.

164 {m_pchi2=pchi2;}

◆ sigma() [1/2]

double XYPosition::sigma ( )
inline

Definition at line 144 of file TGCDQAUtils.h.

144 {return m_sigma;}

◆ sigma() [2/2]

void XYPosition::sigma ( double  sigma)
inline

Definition at line 163 of file TGCDQAUtils.h.

163 {m_sigma=sigma;}

◆ signchi() [1/2]

int XYPosition::signchi ( )
inline

Definition at line 146 of file TGCDQAUtils.h.

146 {return m_signchi;}

◆ signchi() [2/2]

void XYPosition::signchi ( int  signchi)
inline

Definition at line 165 of file TGCDQAUtils.h.

◆ SS() [1/2]

double XYPosition::SS ( )
inline

Definition at line 153 of file TGCDQAUtils.h.

153 {return m_SS;}

◆ SS() [2/2]

void XYPosition::SS ( double  SS)
inline

Definition at line 172 of file TGCDQAUtils.h.

172 {m_SS=SS;}

◆ type()

int XYPosition::type ( )
inline

Definition at line 159 of file TGCDQAUtils.h.

159 {return m_type;}

◆ usable() [1/2]

bool XYPosition::usable ( )
inline

Definition at line 157 of file TGCDQAUtils.h.

157 {return m_usable;}

◆ usable() [2/2]

void XYPosition::usable ( bool  usable)
inline

Definition at line 176 of file TGCDQAUtils.h.

176 {m_usable=usable;}

◆ used() [1/2]

bool XYPosition::used ( )
inline

Definition at line 156 of file TGCDQAUtils.h.

156 {return m_used;}

◆ used() [2/2]

void XYPosition::used ( bool  used)
inline

Definition at line 175 of file TGCDQAUtils.h.

175 {m_used=used;}

◆ x() [1/2]

double XYPosition::x ( )
inline

Definition at line 142 of file TGCDQAUtils.h.

142 {return m_x;}

◆ X() [1/2]

double XYPosition::X ( )
inline

Definition at line 148 of file TGCDQAUtils.h.

148 {return m_X;}

◆ x() [2/2]

void XYPosition::x ( double  x)
inline

Definition at line 161 of file TGCDQAUtils.h.

161 {m_x=x;}

◆ X() [2/2]

void XYPosition::X ( double  X)
inline

Definition at line 167 of file TGCDQAUtils.h.

167 {m_X=X;}

◆ XX() [1/2]

double XYPosition::XX ( )
inline

Definition at line 149 of file TGCDQAUtils.h.

149 {return m_XX;}

◆ XX() [2/2]

void XYPosition::XX ( double  XX)
inline

Definition at line 168 of file TGCDQAUtils.h.

168 {m_XX=XX;}

◆ XY() [1/2]

double XYPosition::XY ( )
inline

Definition at line 150 of file TGCDQAUtils.h.

150 {return m_XY;}

◆ XY() [2/2]

void XYPosition::XY ( double  XY)
inline

Definition at line 169 of file TGCDQAUtils.h.

169 {m_XY=XY;}

◆ y() [1/2]

double XYPosition::y ( )
inline

Definition at line 143 of file TGCDQAUtils.h.

143 {return m_y;}

◆ Y() [1/2]

double XYPosition::Y ( )
inline

Definition at line 151 of file TGCDQAUtils.h.

151 {return m_Y;}

◆ y() [2/2]

void XYPosition::y ( double  y)
inline

Definition at line 162 of file TGCDQAUtils.h.

162 {m_y=y;}

◆ Y() [2/2]

void XYPosition::Y ( double  Y)
inline

Definition at line 170 of file TGCDQAUtils.h.

170 {m_Y=Y;}

◆ YY() [1/2]

double XYPosition::YY ( )
inline

Definition at line 152 of file TGCDQAUtils.h.

152 {return m_YY;}

◆ YY() [2/2]

void XYPosition::YY ( double  YY)
inline

Definition at line 171 of file TGCDQAUtils.h.

171 {m_YY=YY;}

Friends And Related Function Documentation

◆ operator<

bool operator< ( XYPosition xy0,
XYPosition xy1 
)
friend

Definition at line 184 of file TGCDQAUtils.h.

184  {
185  if( xy0.layer() < xy1.layer() )
186  return true;
187  else if(xy0.layer() == xy1.layer())
188  return xy0.x()<xy1.x();
189  else
190  return false;
191  }

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
XYPosition xy 
)
friend

Definition at line 178 of file TGCDQAUtils.h.

178  {
179  s <<"x y sigma signchi*pchi2 layer used usable type : "<<xy.x()<<" "<<xy.y()<<" "<<xy.sigma()<<" "<<std::setw(9)<<std::setprecision(2)<<xy.signchi()*xy.pchi2()<<" "<<xy.layer()<<" "<<xy.used()<<" "<<xy.usable()<<" "<<xy.type();
180  //s <<"x y sigma X XX SS pchi2 layer used usable : "<<xy.x()<<" "<<xy.y()<<" "<<xy.sigma()<<" "<<xy.X()<<" "<<xy.XX()<<" "<<xy.SS()<<" "<<xy.pchi2()<<" "<<xy.layer()<<" "<<xy.used()<<" "<<xy.usable();
181  return s;
182  }

◆ operator>

bool operator> ( XYPosition xy0,
XYPosition xy1 
)
friend

Definition at line 192 of file TGCDQAUtils.h.

192  {
193  if( xy0.layer() > xy1.layer() )
194  return true;
195  else if(xy0.layer() == xy1.layer())
196  return xy0.x()>xy1.x();
197  else
198  return false;
199  }

Member Data Documentation

◆ m_layer

int XYPosition::m_layer
private

Definition at line 86 of file TGCDQAUtils.h.

◆ m_pchi2

double XYPosition::m_pchi2
private

Definition at line 75 of file TGCDQAUtils.h.

◆ m_sigma

double XYPosition::m_sigma
private

Definition at line 74 of file TGCDQAUtils.h.

◆ m_signchi

int XYPosition::m_signchi
private

Definition at line 76 of file TGCDQAUtils.h.

◆ m_SS

double XYPosition::m_SS
private

Definition at line 83 of file TGCDQAUtils.h.

◆ m_type

int XYPosition::m_type
private

Definition at line 90 of file TGCDQAUtils.h.

◆ m_usable

bool XYPosition::m_usable
private

Definition at line 88 of file TGCDQAUtils.h.

◆ m_used

bool XYPosition::m_used
private

Definition at line 87 of file TGCDQAUtils.h.

◆ m_x

double XYPosition::m_x
private

Definition at line 72 of file TGCDQAUtils.h.

◆ m_X

double XYPosition::m_X
private

Definition at line 78 of file TGCDQAUtils.h.

◆ m_XX

double XYPosition::m_XX
private

Definition at line 79 of file TGCDQAUtils.h.

◆ m_XY

double XYPosition::m_XY
private

Definition at line 80 of file TGCDQAUtils.h.

◆ m_y

double XYPosition::m_y
private

Definition at line 73 of file TGCDQAUtils.h.

◆ m_Y

double XYPosition::m_Y
private

Definition at line 81 of file TGCDQAUtils.h.

◆ m_YY

double XYPosition::m_YY
private

Definition at line 82 of file TGCDQAUtils.h.


The documentation for this class was generated from the following file:
XYPosition::m_signchi
int m_signchi
Definition: TGCDQAUtils.h:76
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
XYPosition::type
int type()
Definition: TGCDQAUtils.h:159
XYPosition::YY
double YY()
Definition: TGCDQAUtils.h:152
XYPosition::m_XX
double m_XX
Definition: TGCDQAUtils.h:79
XYPosition::pchi2
double pchi2()
Definition: TGCDQAUtils.h:145
XYPosition::m_YY
double m_YY
Definition: TGCDQAUtils.h:82
XYPosition::sigma
double sigma()
Definition: TGCDQAUtils.h:144
XYPosition::m_type
int m_type
Definition: TGCDQAUtils.h:90
XYPosition::m_usable
bool m_usable
Definition: TGCDQAUtils.h:88
XYPosition::usable
bool usable()
Definition: TGCDQAUtils.h:157
XYPosition::XX
double XX()
Definition: TGCDQAUtils.h:149
XYPosition::m_used
bool m_used
Definition: TGCDQAUtils.h:87
XYPosition::m_Y
double m_Y
Definition: TGCDQAUtils.h:81
XYPosition::m_SS
double m_SS
Definition: TGCDQAUtils.h:83
XYPosition::layer
int layer()
Definition: TGCDQAUtils.h:155
XYPosition::m_sigma
double m_sigma
Definition: TGCDQAUtils.h:74
XYPosition::m_X
double m_X
Definition: TGCDQAUtils.h:78
XYPosition::X
double X()
Definition: TGCDQAUtils.h:148
XYPosition::m_XY
double m_XY
Definition: TGCDQAUtils.h:80
XYPosition::y
double y()
Definition: TGCDQAUtils.h:143
XYPosition::used
bool used()
Definition: TGCDQAUtils.h:156
XYPosition::m_pchi2
double m_pchi2
Definition: TGCDQAUtils.h:75
XYPosition::Y
double Y()
Definition: TGCDQAUtils.h:151
XYPosition::m_x
double m_x
Definition: TGCDQAUtils.h:72
XYPosition::m_layer
int m_layer
Definition: TGCDQAUtils.h:86
XYPosition::signchi
int signchi()
Definition: TGCDQAUtils.h:146
XYPosition::XY
double XY()
Definition: TGCDQAUtils.h:150
XYPosition::x
double x()
Definition: TGCDQAUtils.h:142
XYPosition::SS
double SS()
Definition: TGCDQAUtils.h:153
XYPosition::m_y
double m_y
Definition: TGCDQAUtils.h:73