Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

recobase::Vertex Class Reference

#include <Vertex.h>

List of all members.

Public Member Functions

 Vertex ()
 Vertex (vector< const recobase::Prong * > &prvec)
 ~Vertex ()
bool Add (const recobase::Prong *pr)
int NProng () const
double X () const
double Y () const
double Z () const
void Pos (double pos[3])
const recobase::ProngProng (int i) const
void SetPos (double pos[3])

Private Attributes

TRefArray fProng
double fX [3]


Constructor & Destructor Documentation

Vertex::Vertex  ) 
 

Definition at line 22 of file Vertex.cxx.

References fX.

00023 {
00024   for (int i=0; i<3; ++i)
00025     fX[i] = -1.e9;
00026 } 

Vertex::Vertex vector< const recobase::Prong * > &  prvec  ) 
 

Definition at line 32 of file Vertex.cxx.

References fProng, and fX.

00033 {
00034   for (int i=0; i<3; ++i)
00035     fX[i] = -1.e9;
00036   
00037   for (unsigned int i=0; i<prvec.size(); ++i) 
00038     fProng.Add((recobase::Prong*)prvec[i]);
00039   
00040 } 

Vertex::~Vertex  ) 
 

Definition at line 46 of file Vertex.cxx.

00047 {
00048 
00049 }


Member Function Documentation

bool Vertex::Add const recobase::Prong pr  ) 
 

Definition at line 71 of file Vertex.cxx.

References recobase::Prong::Add(), and fProng.

00072 {
00073   fProng.Add((recobase::Prong*)pr);
00074   return true;
00075   
00076 }

int Vertex::NProng  )  const
 

Definition at line 53 of file Vertex.cxx.

References fProng.

Referenced by Prong().

00054 {
00055   return fProng.GetLast() + 1;
00056 }

void recobase::Vertex::Pos double  pos[3]  )  [inline]
 

Definition at line 38 of file Vertex.h.

00038 { for (int i=0; i<3; ++i) pos[i]=fX[i]; }

const Prong * Vertex::Prong int  i  )  const
 

Definition at line 60 of file Vertex.cxx.

References assert_jobc, fProng, and NProng().

00061 {
00062   assert_jobc((i >= 0) && (i < this->NProng()),
00063               "Vertex::Prong(): out of bounds exception!");
00064   
00065   recobase::Prong* pr = dynamic_cast<recobase::Prong*>(fProng.At(i));
00066   return pr;
00067 }

void recobase::Vertex::SetPos double  pos[3]  )  [inline]
 

Definition at line 42 of file Vertex.h.

00042 { for (int i=0; i<3; ++i) fX[i] = pos[i]; }

double recobase::Vertex::X  )  const [inline]
 

Definition at line 35 of file Vertex.h.

00035 { return fX[0]; }

double recobase::Vertex::Y  )  const [inline]
 

Definition at line 36 of file Vertex.h.

00036 { return fX[1]; }

double recobase::Vertex::Z  )  const [inline]
 

Definition at line 37 of file Vertex.h.

00037 { return fX[2]; }


Member Data Documentation

TRefArray recobase::Vertex::fProng [private]
 

Definition at line 45 of file Vertex.h.

Referenced by Add(), NProng(), Prong(), and Vertex().

double recobase::Vertex::fX[3] [private]
 

Definition at line 47 of file Vertex.h.

Referenced by Vertex().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 04:45:33 2009 for NOvA Offline by  doxygen 1.3.9.1