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

recobase::Prong Class Reference

#include <Prong.h>

Inheritance diagram for recobase::Prong:

recobase::Shower recobase::Track List of all members.

Public Member Functions

 Prong ()
 Prong (vector< const recobase::Cluster * > &clvec)
 ~Prong ()
bool Add (const recobase::Cluster *cl)
int NCluster () const
const recobase::ClusterCluster (int i) const
const double * Dir () const
double EVis () const
double ZStart () const
double ZStop () const
void SetEVis (double e)
void SetZStart (double z)
void SetZStop (double z)
void SetDir (double dir[])

Private Attributes

TRefArray fCluster
double fZStart
double fZStop
double fEVis
double fDir [3]

Constructor & Destructor Documentation

Prong::Prong  ) 
 

Definition at line 24 of file Prong.cxx.

References fDir.

00024              : 
00025   fZStart(0), fZStop(0), fEVis(0)
00026 {
00027   for (int i=0; i<3; ++i)
00028     fDir[i] = -1.e9;
00029 } 

Prong::Prong vector< const recobase::Cluster * > &  clvec  ) 
 

Definition at line 35 of file Prong.cxx.

References fCluster, and fDir.

00035                                                   : 
00036   fZStart(0), fZStop(0), fEVis(0)
00037 {
00038   for (int i=0; i<3; ++i)
00039     fDir[i] = -1.e9;
00040   
00041   for (unsigned int i=0; i<clvec.size(); ++i) 
00042     fCluster.Add((recobase::Cluster*)clvec[i]);
00043   
00044 } 

Prong::~Prong  ) 
 

Definition at line 49 of file Prong.cxx.

00050 {
00051 
00052 }


Member Function Documentation

bool Prong::Add const recobase::Cluster cl  ) 
 

Definition at line 67 of file Prong.cxx.

References recobase::Cluster::Add(), and fCluster.

Referenced by recobase::Vertex::Add().

00068 {
00069   fCluster.Add((recobase::Cluster*)cl);
00070   return true;
00071 
00072 }

const Cluster * Prong::Cluster int  i  )  const
 

Definition at line 56 of file Prong.cxx.

References assert_jobc, fCluster, and NCluster().

00057 {
00058   assert_jobc((i >= 0) && (i < this->NCluster()),
00059               "Prong::Cluster(): out of bounds exception!");
00060   
00061   recobase::Cluster* cl = dynamic_cast<recobase::Cluster*>(fCluster.At(i));
00062   return cl;
00063 }

const double* recobase::Prong::Dir  )  const [inline]
 

Definition at line 37 of file Prong.h.

00037 {return fDir; }

double recobase::Prong::EVis  )  const [inline]
 

Definition at line 38 of file Prong.h.

00038 {return fEVis; }

int recobase::Prong::NCluster  )  const [inline]
 

Definition at line 33 of file Prong.h.

Referenced by Cluster().

00033 {return fCluster.GetLast() + 1; }

void recobase::Prong::SetDir double  dir[]  )  [inline]
 

Definition at line 45 of file Prong.h.

00045 { for (int i=0; i<3; ++i) fDir[i] = dir[i]; }

void recobase::Prong::SetEVis double  e  )  [inline]
 

Definition at line 42 of file Prong.h.

00042 { fEVis = e; }

void recobase::Prong::SetZStart double  z  )  [inline]
 

Definition at line 43 of file Prong.h.

00043 { fZStart = z; }

void recobase::Prong::SetZStop double  z  )  [inline]
 

Definition at line 44 of file Prong.h.

00044 { fZStop = z; }

double recobase::Prong::ZStart  )  const [inline]
 

Definition at line 39 of file Prong.h.

00039 {return fZStart; }

double recobase::Prong::ZStop  )  const [inline]
 

Definition at line 40 of file Prong.h.

00040 {return fZStop; }


Member Data Documentation

TRefArray recobase::Prong::fCluster [private]
 

Definition at line 48 of file Prong.h.

Referenced by Add(), Cluster(), and Prong().

double recobase::Prong::fDir[3] [private]
 

Definition at line 52 of file Prong.h.

Referenced by Prong().

double recobase::Prong::fEVis [private]
 

Definition at line 51 of file Prong.h.

double recobase::Prong::fZStart [private]
 

Definition at line 50 of file Prong.h.

double recobase::Prong::fZStop [private]
 

Definition at line 50 of file Prong.h.


The documentation for this class was generated from the following files:
Generated on Sun May 3 04:45:27 2009 for NOvA Offline by  doxygen 1.3.9.1