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
const double * StartPos () const
const double * EndPos () const
int NKalmanState ()
const KalmanStateGetKalmanState (unsigned int i)
void SetEVis (double e)
void SetStart (const double *xyz)
void SetStop (const double *xyz)
void SetDir (const double dir[])
void AddKalmanState (const recobase::KalmanState &ks)

Private Attributes

vector< recobase::KalmanStateKState
TRefArray fCluster
double fXYZStart [3]
 Start location (xyz, cm).
double fXYZStop [3]
 End point (xyz, cm).
double fEVis
 Total visible energy (units??).
double fDir [3]
 Direction at starting point.

Constructor & Destructor Documentation

Prong::Prong  ) 
 

Definition at line 24 of file Prong.cxx.

References fDir, fXYZStart, and fXYZStop.

00024              : 
00025   fEVis(0)
00026 {
00027   for (int i=0; i<3; ++i) {
00028     fXYZStart[i] = -1.e9;
00029     fXYZStop[i]  = -1.e9;
00030     fDir[i]      = -1.e9;
00031   } 
00032 }

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

Definition at line 37 of file Prong.cxx.

References fCluster, fDir, fXYZStart, and fXYZStop.

00037                                                   : 
00038   fEVis(0)
00039 {
00040   for (int i=0; i<3; ++i) {
00041     fXYZStart[i] = 0.0;
00042     fXYZStop[i]  = 0.0;
00043     fDir[i]      = -1.e9;
00044   }
00045 
00046   for (unsigned int i=0; i<clvec.size(); ++i) 
00047     fCluster.Add((recobase::Cluster*)clvec[i]);
00048   
00049 } 

Prong::~Prong  ) 
 

Definition at line 54 of file Prong.cxx.

00055 {
00056 
00057 }


Member Function Documentation

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

Definition at line 72 of file Prong.cxx.

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

Referenced by recobase::Vertex::Add(), and trk::DemoShell::Reco().

00073 {
00074   fCluster.Add((recobase::Cluster*)cl);
00075   return true;
00076 
00077 }

void recobase::Prong::AddKalmanState const recobase::KalmanState ks  )  [inline]
 

Definition at line 51 of file Prong.h.

00051                                                          {
00052         KState.push_back(KalmanState(ks));
00053       }

const Cluster * Prong::Cluster int  i  )  const
 

Definition at line 61 of file Prong.cxx.

References assert_jobc, fCluster, and NCluster().

00062 {
00063   assert_jobc((i >= 0) && (i < this->NCluster()),
00064               "Prong::Cluster(): out of bounds exception!");
00065   
00066   recobase::Cluster* cl = dynamic_cast<recobase::Cluster*>(fCluster.At(i));
00067   return cl;
00068 }

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

Definition at line 38 of file Prong.h.

00038 {return fDir; }

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

Definition at line 43 of file Prong.h.

00043 {return fXYZStop; }

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

Definition at line 39 of file Prong.h.

00039 {return fEVis; }

const KalmanState& recobase::Prong::GetKalmanState unsigned int  i  )  [inline]
 

Definition at line 45 of file Prong.h.

00045 {return KState[i]; }

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

Definition at line 34 of file Prong.h.

Referenced by Cluster().

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

int recobase::Prong::NKalmanState  )  [inline]
 

Definition at line 44 of file Prong.h.

00044 { return KState.size(); }

void Prong::SetDir const double  dir[]  ) 
 

Definition at line 93 of file Prong.cxx.

References fDir.

Referenced by trk::DemoShell::Reco().

00094 {
00095   fDir[0] = dir[0];
00096   fDir[1] = dir[1];
00097   fDir[2] = dir[2];
00098 }

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

Definition at line 47 of file Prong.h.

00047 { fEVis = e; }

void Prong::SetStart const double *  xyz  ) 
 

Definition at line 81 of file Prong.cxx.

References fXYZStart.

Referenced by trk::Circe::MakeProngs(), and trk::DemoShell::Reco().

00082 {
00083   fXYZStart[0] = xyz[0];
00084   fXYZStart[1] = xyz[1];
00085   fXYZStart[2] = xyz[2];
00086 }

void Prong::SetStop const double *  xyz  ) 
 

Definition at line 87 of file Prong.cxx.

References fXYZStop.

Referenced by trk::Circe::MakeProngs(), and trk::DemoShell::Reco().

00088 {
00089   fXYZStop[0] = xyz[0];
00090   fXYZStop[1] = xyz[1];
00091   fXYZStop[2] = xyz[2];
00092 }

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

Definition at line 42 of file Prong.h.

00042 {return fXYZStart; }

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

Definition at line 40 of file Prong.h.

00040 {return fXYZStart[2]; }

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

Definition at line 41 of file Prong.h.

00041 {return fXYZStop[2]; }


Member Data Documentation

TRefArray recobase::Prong::fCluster [private]
 

Definition at line 57 of file Prong.h.

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

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

Direction at starting point.

Definition at line 62 of file Prong.h.

Referenced by Prong(), and SetDir().

double recobase::Prong::fEVis [private]
 

Total visible energy (units??).

Definition at line 61 of file Prong.h.

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

Start location (xyz, cm).

Definition at line 59 of file Prong.h.

Referenced by Prong(), and SetStart().

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

End point (xyz, cm).

Definition at line 60 of file Prong.h.

Referenced by Prong(), and SetStop().

vector<recobase::KalmanState> recobase::Prong::KState [private]
 

Definition at line 56 of file Prong.h.


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