Vertex Class Reference

#include <Vertex.h>

List of all members.

Public Member Functions

 Vertex ()
 Vertex (const Vertex &rhs)
virtual ~Vertex ()
Bool_t operator== (const Vertex &rhs) const
Int_t GetPlane () const
Double_t GetT () const
Double_t GetU () const
Double_t GetV () const
Double_t GetZ () const
void SetPlane (Int_t)
void SetT (Double_t)
void SetU (Double_t)
void SetV (Double_t)
void SetZ (Double_t)
const char * AsString (Option_t *option="") const

Private Attributes

Double_t fU
Double_t fV
Double_t fZ
Double_t fT
Int_t fPlane

Detailed Description

Definition at line 12 of file RecoBase/HEAD/Vertex.h.


Constructor & Destructor Documentation

Vertex::Vertex (  ) 

Definition at line 22 of file RecoBase/HEAD/Vertex.cxx.

00023 {
00024   fU = 0.;
00025   fV = 0.;
00026   fZ = 0.;
00027   fT = 0.;
00028   fPlane = -1;
00029 }

Vertex::Vertex ( const Vertex rhs  ) 

Definition at line 32 of file RecoBase/HEAD/Vertex.cxx.

00032                                 :
00033   TObject(rhs)
00034 , fU(rhs.fU)
00035 , fV(rhs.fV)
00036 , fZ(rhs.fZ)
00037 , fT(rhs.fT)
00038 , fPlane(rhs.fPlane)
00039 {
00040 }

Vertex::~Vertex (  )  [virtual]

Definition at line 43 of file RecoBase/HEAD/Vertex.cxx.

00044 {
00045 }


Member Function Documentation

const char * Vertex::AsString ( Option_t *  option = ""  )  const

Definition at line 121 of file RecoBase/HEAD/Vertex.cxx.

References Form(), fPlane, fT, fU, fV, fZ, and Munits::ns.

Referenced by CandReco::FormatToOStream().

00122 {
00123   return Form(" pln=%4d U=%f V=%f Z=%f T(ns)=%f",
00124               fPlane,fU,fV,fZ,fT/Munits::ns);
00125 }

Int_t Vertex::GetPlane (  )  const

Definition at line 61 of file RecoBase/HEAD/Vertex.cxx.

References fPlane.

00062 {
00063   return fPlane;
00064 }

Double_t Vertex::GetT (  )  const

Definition at line 67 of file RecoBase/HEAD/Vertex.cxx.

References fT.

00068 {
00069   return fT;
00070 }

Double_t Vertex::GetU (  )  const

Definition at line 73 of file RecoBase/HEAD/Vertex.cxx.

References fU.

00074 {
00075   return fU;
00076 }

Double_t Vertex::GetV (  )  const

Definition at line 79 of file RecoBase/HEAD/Vertex.cxx.

References fV.

00080 {
00081   return fV;
00082 }

Double_t Vertex::GetZ (  )  const

Definition at line 85 of file RecoBase/HEAD/Vertex.cxx.

References fZ.

00086 {
00087   return fZ;
00088 }

Bool_t Vertex::operator== ( const Vertex rhs  )  const

Definition at line 48 of file RecoBase/HEAD/Vertex.cxx.

References fPlane, fT, fU, fV, and fZ.

00049 {
00050   if (this->fU == rhs.fU &&
00051       this->fV == rhs.fV &&
00052       this->fZ == rhs.fZ &&
00053       this->fT == rhs.fT &&
00054       this->fPlane == rhs.fPlane) {
00055     return true;
00056   }
00057   return false;
00058 }

void Vertex::SetPlane ( Int_t  ivar  ) 

Definition at line 91 of file RecoBase/HEAD/Vertex.cxx.

References fPlane.

00092 {
00093   fPlane = ivar;
00094 }

void Vertex::SetT ( Double_t  dvar  ) 

Definition at line 97 of file RecoBase/HEAD/Vertex.cxx.

References fT.

00098 {
00099   fT = dvar;
00100 }

void Vertex::SetU ( Double_t  dvar  ) 

Definition at line 103 of file RecoBase/HEAD/Vertex.cxx.

References fU.

00104 {
00105   fU = dvar;
00106 }

void Vertex::SetV ( Double_t  dvar  ) 

Definition at line 109 of file RecoBase/HEAD/Vertex.cxx.

References fV.

00110 {
00111   fV = dvar;
00112 }

void Vertex::SetZ ( Double_t  dvar  ) 

Definition at line 115 of file RecoBase/HEAD/Vertex.cxx.

References fZ.

00116 {
00117   fZ = dvar;
00118 }


Member Data Documentation

Int_t Vertex::fPlane [private]

Definition at line 41 of file RecoBase/HEAD/Vertex.h.

Referenced by AsString(), GetPlane(), operator==(), and SetPlane().

Double_t Vertex::fT [private]

Definition at line 40 of file RecoBase/HEAD/Vertex.h.

Referenced by AsString(), GetT(), operator==(), and SetT().

Double_t Vertex::fU [private]

Definition at line 37 of file RecoBase/HEAD/Vertex.h.

Referenced by AsString(), GetU(), operator==(), and SetU().

Double_t Vertex::fV [private]

Definition at line 38 of file RecoBase/HEAD/Vertex.h.

Referenced by AsString(), GetV(), operator==(), and SetV().

Double_t Vertex::fZ [private]

Definition at line 39 of file RecoBase/HEAD/Vertex.h.

Referenced by AsString(), GetZ(), operator==(), and SetZ().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1