Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

XANAVertex Class Reference

#include <XANAVertex.h>

List of all members.

Public Member Functions

 XANAVertex ()
 XANAVertex (HepPoint3D position, HepPoint3D positionErrorDiag, HepPoint3D positionErrorOffDiag, Float_t chi2, Float_t ndof, std::string algoName)
 construct with data

virtual ~XANAVertex ()
HepPoint3D getPosition () const
HepPoint3D getPositionErrorDiag () const
HepPoint3D getPositionErrorOffDiag () const
Float_t getChi2 () const
Float_t getNormalizedChi2 () const
Float_t getNdof () const
HepVector3D getVectorialSum () const
std::string getAlgoName () const
char * getCharAlgoName () const
void setPosition (HepPoint3D position)
void setPositionErrorDiag (HepPoint3D positionErrorDiag)
void setPositionErrorOffDiag (HepPoint3D positionErrorOffDiag)
void setChi2 (Float_t chi2)
void setNdof (Float_t ndof)
void setAlgoName (std::string algoName)
TRefArray * getTracks () const
TRefArray * getTracksAtVertex () const
void addTrack (XANATrack *track)
void addTrackAtVertex (XANATrackAtVertex *track)
void clear ()
Bool_t IsUsed () const
 tells if this object is linked as constituent of higher level object

Bool_t operator== (const XANAVertex &) const
 XANAVertex (const XANAVertex &right)
const XANAVertexoperator= (const XANAVertex &right)

Protected Attributes

HepPoint3D position_
 the vertex position

HepPoint3D positionErrorDiag_
 the vertex position

HepPoint3D positionErrorOffDiag_
 the vertex position

HepVector3D vectorialSum_
 the vectorialSum of track momentum

Float_t chi2_
 total chi2

Float_t ndof_
 number of degrees of freedom

Short_t numberOfTracks_
TRefArray * tracks_
Short_t numberOfTracksAtVertex_
TRefArray * tracksAtVertex_
Int_t algoLen_
 identifies which algo was used

char * algoName_

Private Member Functions

void lock ()
void unlock ()

Private Attributes

Bool_t locked_

Static Private Attributes

const Int_t strLen_


Constructor & Destructor Documentation

XANAVertex::XANAVertex  ) 
 

XANAVertex::XANAVertex HepPoint3D  position,
HepPoint3D  positionErrorDiag,
HepPoint3D  positionErrorOffDiag,
Float_t  chi2,
Float_t  ndof,
std::string  algoName
 

construct with data

virtual XANAVertex::~XANAVertex  )  [virtual]
 

XANAVertex::XANAVertex const XANAVertex right  ) 
 


Member Function Documentation

void XANAVertex::addTrack XANATrack track  ) 
 

Referenced by VertexObserver::upDate().

void XANAVertex::addTrackAtVertex XANATrackAtVertex track  ) 
 

void XANAVertex::clear  ) 
 

std::string XANAVertex::getAlgoName  )  const [inline]
 

Definition at line 37 of file XANAVertex.h.

References algoName_.

00037 {return std::string(algoName_);}

char* XANAVertex::getCharAlgoName  )  const [inline]
 

Definition at line 38 of file XANAVertex.h.

References algoName_.

00038 {return algoName_;}

Float_t XANAVertex::getChi2  )  const [inline]
 

Definition at line 33 of file XANAVertex.h.

References chi2_.

Referenced by main().

00033 {return chi2_;}

Float_t XANAVertex::getNdof  )  const [inline]
 

Definition at line 35 of file XANAVertex.h.

References ndof_.

Referenced by main().

00035 {return ndof_;}

Float_t XANAVertex::getNormalizedChi2  )  const [inline]
 

Definition at line 34 of file XANAVertex.h.

References chi2_, and ndof_.

Referenced by main().

00034 {return chi2_/ndof_;}

HepPoint3D XANAVertex::getPosition  )  const [inline]
 

Definition at line 29 of file XANAVertex.h.

References position_.

Referenced by main().

00029 {return position_;}

HepPoint3D XANAVertex::getPositionErrorDiag  )  const [inline]
 

Definition at line 30 of file XANAVertex.h.

References positionErrorDiag_.

Referenced by main().

00030 {return positionErrorDiag_;}

HepPoint3D XANAVertex::getPositionErrorOffDiag  )  const [inline]
 

Definition at line 31 of file XANAVertex.h.

References positionErrorOffDiag_.

Referenced by main().

00031 {return positionErrorOffDiag_;}

TRefArray* XANAVertex::getTracks  )  const [inline]
 

Definition at line 49 of file XANAVertex.h.

References tracks_.

00049 {return tracks_;}

TRefArray* XANAVertex::getTracksAtVertex  )  const [inline]
 

Definition at line 51 of file XANAVertex.h.

References tracksAtVertex_.

00051 {return tracksAtVertex_;}

HepVector3D XANAVertex::getVectorialSum  )  const [inline]
 

Definition at line 36 of file XANAVertex.h.

References vectorialSum_.

Referenced by main().

00036 {return vectorialSum_;}

Bool_t XANAVertex::IsUsed  )  const [inline]
 

tells if this object is linked as constituent of higher level object

Definition at line 60 of file XANAVertex.h.

References locked_.

00060 {return locked_;}

void XANAVertex::lock  )  [inline, private]
 

Definition at line 100 of file XANAVertex.h.

References locked_.

00100 {locked_ = true;}

const XANAVertex& XANAVertex::operator= const XANAVertex right  ) 
 

Bool_t XANAVertex::operator== const XANAVertex  )  const
 

void XANAVertex::setAlgoName std::string  algoName  )  [inline]
 

Definition at line 46 of file XANAVertex.h.

References algoName_.

00046 {sprintf(algoName_,algoName.c_str());}

void XANAVertex::setChi2 Float_t  chi2  )  [inline]
 

Definition at line 44 of file XANAVertex.h.

References chi2_.

00044 {chi2_=chi2;}

void XANAVertex::setNdof Float_t  ndof  )  [inline]
 

Definition at line 45 of file XANAVertex.h.

References ndof_.

00045 {ndof_=ndof;}

void XANAVertex::setPosition HepPoint3D  position  )  [inline]
 

Definition at line 41 of file XANAVertex.h.

References position_.

00041 {position_=position;}  

void XANAVertex::setPositionErrorDiag HepPoint3D  positionErrorDiag  )  [inline]
 

Definition at line 42 of file XANAVertex.h.

References positionErrorDiag_.

00042 {positionErrorDiag_=positionErrorDiag;}  

void XANAVertex::setPositionErrorOffDiag HepPoint3D  positionErrorOffDiag  )  [inline]
 

Definition at line 43 of file XANAVertex.h.

References positionErrorOffDiag_.

00043 {positionErrorOffDiag_=positionErrorOffDiag;}

void XANAVertex::unlock  )  [inline, private]
 

Definition at line 101 of file XANAVertex.h.

References locked_.

00101 { locked_ = false;}


Member Data Documentation

Int_t XANAVertex::algoLen_ [protected]
 

identifies which algo was used

Definition at line 93 of file XANAVertex.h.

char* XANAVertex::algoName_ [protected]
 

Definition at line 94 of file XANAVertex.h.

Referenced by getAlgoName(), getCharAlgoName(), and setAlgoName().

Float_t XANAVertex::chi2_ [protected]
 

total chi2

Definition at line 80 of file XANAVertex.h.

Referenced by getChi2(), getNormalizedChi2(), and setChi2().

Bool_t XANAVertex::locked_ [private]
 

Definition at line 99 of file XANAVertex.h.

Referenced by IsUsed(), lock(), and unlock().

Float_t XANAVertex::ndof_ [protected]
 

number of degrees of freedom

Definition at line 82 of file XANAVertex.h.

Referenced by getNdof(), getNormalizedChi2(), and setNdof().

Short_t XANAVertex::numberOfTracks_ [protected]
 

Definition at line 84 of file XANAVertex.h.

Short_t XANAVertex::numberOfTracksAtVertex_ [protected]
 

Definition at line 88 of file XANAVertex.h.

HepPoint3D XANAVertex::position_ [protected]
 

the vertex position

Definition at line 72 of file XANAVertex.h.

Referenced by getPosition(), and setPosition().

HepPoint3D XANAVertex::positionErrorDiag_ [protected]
 

the vertex position

Definition at line 74 of file XANAVertex.h.

Referenced by getPositionErrorDiag(), and setPositionErrorDiag().

HepPoint3D XANAVertex::positionErrorOffDiag_ [protected]
 

the vertex position

Definition at line 76 of file XANAVertex.h.

Referenced by getPositionErrorOffDiag(), and setPositionErrorOffDiag().

const Int_t XANAVertex::strLen_ [static, private]
 

Definition at line 98 of file XANAVertex.h.

TRefArray* XANAVertex::tracks_ [protected]
 

Definition at line 86 of file XANAVertex.h.

Referenced by getTracks().

TRefArray* XANAVertex::tracksAtVertex_ [protected]
 

Definition at line 90 of file XANAVertex.h.

Referenced by getTracksAtVertex().

HepVector3D XANAVertex::vectorialSum_ [protected]
 

the vectorialSum of track momentum

Definition at line 78 of file XANAVertex.h.

Referenced by getVectorialSum().


The documentation for this class was generated from the following file:
Generated on Thu Oct 27 21:59:55 2005 for XANADOO by doxygen 1.3.5