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

DstMdcTrack Class Reference

#include <DstMdcTrack.h>

Inheritance diagram for DstMdcTrack:

ContainedObject ContainedObject RecMdcTrack RecMdcTrack List of all members.

Public Member Functions

const int charge () const
const int charge () const
const double chi2 () const
const double chi2 () const
virtual const CLID & clID () const
virtual const CLID & clID () const
 DstMdcTrack (const DstMdcTrack &)
 DstMdcTrack ()
 DstMdcTrack (const DstMdcTrack &)
 DstMdcTrack ()
const double err (const int i) const
const HepSymMatrix err () const
const double err (const int i) const
const HepSymMatrix err () const
const int firstLayer () const
const int firstLayer () const
const double helix (const int i) const
const HepVector helix () const
 ......
const double helix (const int i) const
const HepVector helix () const
 ......
const int lastLayer () const
const int lastLayer () const
const int ndof () const
const int ndof () const
const int nster () const
const int nster () const
DstMdcTrackoperator= (const DstMdcTrack &)
DstMdcTrackoperator= (const DstMdcTrack &)
const double p () const
const double p () const
const Hep3Vector p3 () const
const Hep3Vector p3 () const
const HepLorentzVector p4 (const double mass) const
const HepLorentzVector p4 (const double mass) const
const double phi () const
const double phi () const
const HepPoint3D poca () const
const HepPoint3D poca () const
const double px () const
const double px () const
const double pxy () const
const double pxy () const
const double py () const
const double py () const
const double pz () const
const double pz () const
const double r () const
const double r () const
void setCharge (const int charge)
void setCharge (const int charge)
void setChi2 (const double chi)
void setChi2 (const double chi)
void setError (const HepSymMatrix &Ea)
void setError (double err[15])
void setError (const HepSymMatrix &Ea)
void setError (double err[15])
void setFirstLayer (const int id)
void setFirstLayer (const int id)
void setHelix (const HepVector &a)
void setHelix (double helix[5])
void setHelix (const HepVector &a)
void setHelix (double helix[5])
void setLastLayer (const int id)
void setLastLayer (const int id)
void setNdof (const int ndof)
void setNdof (const int ndof)
void setNster (const int ns)
void setNster (const int ns)
void setP (const double p)
void setP (const double p)
void setPhi (const double phi)
void setPhi (const double phi)
void setPoca (const HepPoint3D &poca)
void setPoca (double poca[3])
void setPoca (const HepPoint3D &poca)
void setPoca (double poca[3])
void setPx (const double px)
void setPx (const double px)
void setPxy (const double pxy)
void setPxy (const double pxy)
void setPy (const double py)
void setPy (const double py)
void setPz (const double pz)
void setPz (const double pz)
void setR (const double r)
void setR (const double r)
void setStat (const int stat)
void setStat (const int stat)
void setTheta (const double theta)
void setTheta (const double theta)
void setTrackId (const int trackId)
void setTrackId (const int trackId)
void setX (const double x)
void setX (const double x)
void setY (const double y)
void setY (const double y)
void setZ (const double z)
void setZ (const double z)
const int stat () const
const int stat () const
const double theta () const
const double theta () const
const int trackId () const
const int trackId () const
const double x () const
const double x () const
const HepPoint3D x3 () const
const HepPoint3D x3 () const
const double y () const
const double y () const
const double z () const
const double z () const
virtual ~DstMdcTrack ()
virtual ~DstMdcTrack ()

Static Public Member Functions

const CLID & classID ()
const CLID & classID ()

Protected Attributes

HepVector m_a
int m_charge
double m_chi2
HepSymMatrix m_Ea
double m_err [15]
int m_firstLayer
double m_helix [5]
int m_lastLayer
int m_ndof
int m_nster
double m_p
double m_phi
double m_poca [3]
HepPoint3D m_poca3D
double m_px
double m_pxy
double m_py
double m_pz
double m_r
int m_stat
double m_theta
int m_trackId
double m_x
double m_y
double m_z

Constructor & Destructor Documentation

DstMdcTrack::DstMdcTrack  ) 
 

00005   : m_trackId(0),      
00006     m_charge(0),  
00007     m_poca3D(0,0,0),    
00008     m_a(5,0),      
00009     m_Ea(5,0),
00010     m_stat(0),
00011     m_chi2(0),
00012     m_ndof(0),    
00013     m_nster(0),    
00014     m_firstLayer(0),    
00015     m_lastLayer(42), 
00016     m_pxy(0), 
00017     m_px(0),
00018     m_py(0),
00019     m_pz(0),
00020     m_p(0),
00021     m_theta(0),      
00022     m_phi(0),   
00023     m_x(0),     
00024     m_y(0),   
00025     m_z(0),       
00026     m_r(0)
00027   {
00028     for(int i=0;i<5;i++)  m_helix[i] = 0;
00029     for(int j=0;j<15;j++) m_err[j]   = 999; 
00030     for(int k=0;k<3;k++)  m_poca[k]  = 0;    
00031   }

DstMdcTrack::DstMdcTrack const DstMdcTrack  ) 
 

00034  : m_trackId(other.m_trackId),
00035    m_charge(other.m_charge),
00036    m_poca3D(other.m_poca3D),
00037    m_a(other.m_a),
00038    m_Ea(other.m_Ea),
00039    m_stat(other.m_stat),
00040    m_chi2(other.m_chi2),
00041    m_ndof(other.m_ndof),
00042    m_nster(other.m_nster),
00043    m_firstLayer(other.m_firstLayer),
00044    m_lastLayer(other.m_lastLayer),
00045    m_pxy(other.m_pxy),
00046    m_px(other.m_px),
00047    m_py(other.m_py),
00048    m_pz(other.m_pz),
00049    m_p(other.m_p),
00050    m_theta(other.m_theta),
00051    m_phi(other.m_phi),
00052    m_x(other.m_x),
00053    m_y(other.m_y),
00054    m_z(other.m_z),
00055    m_r(other.m_r)
00056    { 
00057      for(int i=0;i<5;i++)  m_helix[i] = (other.m_helix)[i];
00058      for(int j=0;j<15;j++) m_err[j]   = (other.m_err)[j];
00059      for(int k=0;k<3;k++)  m_poca[k]  = (other.m_poca)[k];
00060    }

virtual DstMdcTrack::~DstMdcTrack  )  [inline, virtual]
 

00030 {}

DstMdcTrack::DstMdcTrack  ) 
 

DstMdcTrack::DstMdcTrack const DstMdcTrack  ) 
 

virtual DstMdcTrack::~DstMdcTrack  )  [inline, virtual]
 

00030 {}


Member Function Documentation

const int DstMdcTrack::charge  )  const [inline]
 

00053 { return  m_charge;   }

const int DstMdcTrack::charge  )  const [inline]
 

00053 { return  m_charge;   }

const double DstMdcTrack::chi2  )  const [inline]
 

00066 { return  m_chi2; }

const double DstMdcTrack::chi2  )  const [inline]
 

00066 { return  m_chi2; }

const CLID& DstMdcTrack::classID  )  [inline, static]
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

00032 { return CLID_DstMdcTrack; }

const CLID& DstMdcTrack::classID  )  [inline, static]
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

00032 { return CLID_DstMdcTrack; }

virtual const CLID& DstMdcTrack::clID  )  const [inline, virtual]
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

00031 { return  DstMdcTrack::classID();}

virtual const CLID& DstMdcTrack::clID  )  const [inline, virtual]
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

00031 { return  DstMdcTrack::classID();}

const double DstMdcTrack::err const int  i  )  const [inline]
 

00051 { return  m_err[i];   }

const HepSymMatrix DstMdcTrack::err  )  const
 

const double DstMdcTrack::err const int  i  )  const [inline]
 

00051 { return  m_err[i];   }

const HepSymMatrix DstMdcTrack::err  )  const
 

00152                                            {
00153     /*
00154     HepSymMatrix ea(5);
00155     for(int i = 0, k = 0; i < 5; i++) {
00156       for(int j = 0; j <= i; j++) {
00157         ea[i][j] = m_err[k++];
00158         ea[j][i] = ea[i][j];
00159       }
00160     }
00161     return ea;
00162    */
00163     return m_Ea;
00164   }

const int DstMdcTrack::firstLayer  )  const [inline]
 

00069 { return  m_firstLayer;}

const int DstMdcTrack::firstLayer  )  const [inline]
 

00069 { return  m_firstLayer;}

const double DstMdcTrack::helix const int  i  )  const [inline]
 

00050 { return  m_helix[i]; } 

const HepVector DstMdcTrack::helix  )  const
 

......

const double DstMdcTrack::helix const int  i  )  const [inline]
 

00050 { return  m_helix[i]; } 

const HepVector DstMdcTrack::helix  )  const
 

......

00148                                           {
00149     return m_a;
00150   }

const int DstMdcTrack::lastLayer  )  const [inline]
 

00070 { return  m_lastLayer; }

const int DstMdcTrack::lastLayer  )  const [inline]
 

00070 { return  m_lastLayer; }

const int DstMdcTrack::ndof  )  const [inline]
 

00067 { return  m_ndof; }

const int DstMdcTrack::ndof  )  const [inline]
 

00067 { return  m_ndof; }

const int DstMdcTrack::nster  )  const [inline]
 

00068 { return  m_nster;}

const int DstMdcTrack::nster  )  const [inline]
 

00068 { return  m_nster;}

DstMdcTrack& DstMdcTrack::operator= const DstMdcTrack  ) 
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

DstMdcTrack & DstMdcTrack::operator= const DstMdcTrack  ) 
 

Reimplemented in RecMdcTrack, and RecMdcTrack.

00063                                                          {
00064     if( &h != this ){
00065       m_trackId    = h.m_trackId;
00066       m_charge     = h.m_charge;
00067       m_poca3D     = h.m_poca3D;
00068       m_a          = h.m_a;
00069       m_Ea         = h.m_Ea;
00070       m_stat       = h.m_stat;
00071       m_chi2       = h.m_chi2;
00072       m_ndof       = h.m_ndof;
00073       m_nster      = h.m_nster;
00074       m_firstLayer = h.m_firstLayer;
00075       m_lastLayer  = h.m_lastLayer;
00076       m_pxy        = h.m_pxy;
00077       m_px         = h.m_px;
00078       m_py         = h.m_py;
00079       m_pz         = h.m_pz;
00080       m_p          = h.m_p;
00081       m_theta      = h.m_theta;
00082       m_phi        = h.m_phi;
00083       m_x          = h.m_x;
00084       m_y          = h.m_y;
00085       m_z          = h.m_z;
00086       m_r          = h.m_r;
00087     
00088       for(int i=0;i<5;i++)  m_helix[i] = (h.m_helix)[i];
00089       for(int j=0;j<15;j++) m_err[j]   = (h.m_err)[j];
00090       for(int k=0;k<3;k++)  m_poca[k]  = (h.m_poca)[k];
00091     }
00092     return *this;
00093   }

const double DstMdcTrack::p  )  const [inline]
 

00058 { return  m_p;    }

const double DstMdcTrack::p  )  const [inline]
 

00058 { return  m_p;    }

const Hep3Vector DstMdcTrack::p3  )  const [inline]
 

00043                               {
00044     return Hep3Vector(m_px,m_py,m_pz);
00045   }

const Hep3Vector DstMdcTrack::p3  )  const [inline]
 

00043                               {
00044     return Hep3Vector(m_px,m_py,m_pz);
00045   }

const HepLorentzVector DstMdcTrack::p4 const double  mass  )  const
 

const HepLorentzVector DstMdcTrack::p4 const double  mass  )  const
 

00166                                                                {
00167     return HepLorentzVector(p3(),sqrt(p3()*p3()+mass*mass)); 
00168   }

const double DstMdcTrack::phi  )  const [inline]
 

00060 { return  m_phi;  }

const double DstMdcTrack::phi  )  const [inline]
 

00060 { return  m_phi;  }

const HepPoint3D DstMdcTrack::poca  )  const [inline]
 

00040                                {     
00041     return m_poca3D;
00042   }

const HepPoint3D DstMdcTrack::poca  )  const [inline]
 

00040                                {     
00041     return m_poca3D;
00042   }

const double DstMdcTrack::px  )  const [inline]
 

00055 { return  m_px;   }

const double DstMdcTrack::px  )  const [inline]
 

00055 { return  m_px;   }

const double DstMdcTrack::pxy  )  const [inline]
 

00054 { return  m_pxy;  }

const double DstMdcTrack::pxy  )  const [inline]
 

00054 { return  m_pxy;  }

const double DstMdcTrack::py  )  const [inline]
 

00056 { return  m_py;   }

const double DstMdcTrack::py  )  const [inline]
 

00056 { return  m_py;   }

const double DstMdcTrack::pz  )  const [inline]
 

00057 { return  m_pz;   }

const double DstMdcTrack::pz  )  const [inline]
 

00057 { return  m_pz;   }

const double DstMdcTrack::r  )  const [inline]
 

00064 { return  m_r;    }

const double DstMdcTrack::r  )  const [inline]
 

00064 { return  m_r;    }

void DstMdcTrack::setCharge const int  charge  )  [inline]
 

00082 { m_charge = charge;} 

void DstMdcTrack::setCharge const int  charge  )  [inline]
 

00082 { m_charge = charge;} 

void DstMdcTrack::setChi2 const double  chi  )  [inline]
 

00095 { m_chi2 = chi;}

void DstMdcTrack::setChi2 const double  chi  )  [inline]
 

00095 { m_chi2 = chi;}

void DstMdcTrack::setError const HepSymMatrix &  Ea  ) 
 

void DstMdcTrack::setError double  err[15]  ) 
 

void DstMdcTrack::setError const HepSymMatrix &  Ea  ) 
 

00136                                                     {
00137     int k = 0;
00138     for (int i=0; i<5; i++){
00139       for (int j=i; j<5; j++)
00140       {
00141         m_err[k] = err[i][j];
00142         k++;
00143       }
00144     }
00145     m_Ea = err;
00146   }

void DstMdcTrack::setError double  err[15]  ) 
 

00109                                             {          
00110     for (int i1=0; i1<15; i1++) {
00111       m_err[i1] = err[i1];
00112     }
00113     for(int i=0, k=0; i<5; i++) {
00114       for(int j=i; j<5; j++) {
00115         m_Ea[i][j] = m_err[k++];
00116         m_Ea[j][i] = m_Ea[i][j];
00117       }
00118     }
00119   }          

void DstMdcTrack::setFirstLayer const int  id  )  [inline]
 

00098 { m_firstLayer = id;}

void DstMdcTrack::setFirstLayer const int  id  )  [inline]
 

00098 { m_firstLayer = id;}

void DstMdcTrack::setHelix const HepVector &  a  ) 
 

void DstMdcTrack::setHelix double  helix[5]  ) 
 

void DstMdcTrack::setHelix const HepVector &  a  ) 
 

00122                                                    {
00123     for(int i=0; i<5; i++){        
00124       m_helix[i] = helix[i];
00125     }
00126     m_a = helix; 
00127   }

void DstMdcTrack::setHelix double  helix[5]  ) 
 

00095                                             {   
00096     for(int i=0; i<5; i++){
00097       m_helix[i] = helix[i];
00098       m_a[i] = helix[i]; 
00099     }
00100   }

void DstMdcTrack::setLastLayer const int  id  )  [inline]
 

00099 { m_lastLayer = id;}

void DstMdcTrack::setLastLayer const int  id  )  [inline]
 

00099 { m_lastLayer = id;}

void DstMdcTrack::setNdof const int  ndof  )  [inline]
 

00096 { m_ndof = ndof;}

void DstMdcTrack::setNdof const int  ndof  )  [inline]
 

00096 { m_ndof = ndof;}

void DstMdcTrack::setNster const int  ns  )  [inline]
 

00097 { m_nster = ns;}      

void DstMdcTrack::setNster const int  ns  )  [inline]
 

00097 { m_nster = ns;}      

void DstMdcTrack::setP const double  p  )  [inline]
 

00087 { m_p    = p;      }

void DstMdcTrack::setP const double  p  )  [inline]
 

00087 { m_p    = p;      }

void DstMdcTrack::setPhi const double  phi  )  [inline]
 

00089 { m_phi  = phi;    }

void DstMdcTrack::setPhi const double  phi  )  [inline]
 

00089 { m_phi  = phi;    }

void DstMdcTrack::setPoca const HepPoint3D poca  ) 
 

void DstMdcTrack::setPoca double  poca[3]  ) 
 

void DstMdcTrack::setPoca const HepPoint3D poca  ) 
 

00129                                                   {
00130     for(int i=0; i<3; i++){
00131       m_poca[i] = poca[i];
00132     }
00133     m_poca3D = poca;
00134   }

void DstMdcTrack::setPoca double  poca[3]  ) 
 

00102                                          {
00103     for(int i=0; i<3; i++){
00104       m_poca[i] = poca[i];
00105       m_poca3D[i] = poca[i];
00106     }
00107   }  

void DstMdcTrack::setPx const double  px  )  [inline]
 

00084 { m_px   = px;     }

void DstMdcTrack::setPx const double  px  )  [inline]
 

00084 { m_px   = px;     }

void DstMdcTrack::setPxy const double  pxy  )  [inline]
 

00083 { m_pxy  = pxy;    }     

void DstMdcTrack::setPxy const double  pxy  )  [inline]
 

00083 { m_pxy  = pxy;    }     

void DstMdcTrack::setPy const double  py  )  [inline]
 

00085 { m_py   = py;     }

void DstMdcTrack::setPy const double  py  )  [inline]
 

00085 { m_py   = py;     }

void DstMdcTrack::setPz const double  pz  )  [inline]
 

00086 { m_pz   = pz;     }

void DstMdcTrack::setPz const double  pz  )  [inline]
 

00086 { m_pz   = pz;     }

void DstMdcTrack::setR const double  r  )  [inline]
 

00093 { m_r = r; }

void DstMdcTrack::setR const double  r  )  [inline]
 

00093 { m_r = r; }

void DstMdcTrack::setStat const int  stat  )  [inline]
 

00094 { m_stat = stat;}

void DstMdcTrack::setStat const int  stat  )  [inline]
 

00094 { m_stat = stat;}

void DstMdcTrack::setTheta const double  theta  )  [inline]
 

00088 { m_theta = theta; }

void DstMdcTrack::setTheta const double  theta  )  [inline]
 

00088 { m_theta = theta; }

void DstMdcTrack::setTrackId const int  trackId  )  [inline]
 

00081 { m_trackId = trackId; }

void DstMdcTrack::setTrackId const int  trackId  )  [inline]
 

00081 { m_trackId = trackId; }

void DstMdcTrack::setX const double  x  )  [inline]
 

00090 { m_x    = x;      }

void DstMdcTrack::setX const double  x  )  [inline]
 

00090 { m_x    = x;      }

void DstMdcTrack::setY const double  y  )  [inline]
 

00091 { m_y    = y;      }

void DstMdcTrack::setY const double  y  )  [inline]
 

00091 { m_y    = y;      }

void DstMdcTrack::setZ const double  z  )  [inline]
 

00092 { m_z = z; }

void DstMdcTrack::setZ const double  z  )  [inline]
 

00092 { m_z = z; }

const int DstMdcTrack::stat  )  const [inline]
 

00065 { return  m_stat; }

const int DstMdcTrack::stat  )  const [inline]
 

00065 { return  m_stat; }

const double DstMdcTrack::theta  )  const [inline]
 

00059 { return  m_theta;}

const double DstMdcTrack::theta  )  const [inline]
 

00059 { return  m_theta;}

const int DstMdcTrack::trackId  )  const [inline]
 

00052 { return  m_trackId;  }

const int DstMdcTrack::trackId  )  const [inline]
 

00052 { return  m_trackId;  }

const double DstMdcTrack::x  )  const [inline]
 

00061 { return  m_x;    }

const double DstMdcTrack::x  )  const [inline]
 

00061 { return  m_x;    }

const HepPoint3D DstMdcTrack::x3  )  const [inline]
 

00046                               {
00047     return HepPoint3D(m_x,m_y,m_z);
00048   } 

const HepPoint3D DstMdcTrack::x3  )  const [inline]
 

00046                               {
00047     return HepPoint3D(m_x,m_y,m_z);
00048   } 

const double DstMdcTrack::y  )  const [inline]
 

00062 { return  m_y;    }

const double DstMdcTrack::y  )  const [inline]
 

00062 { return  m_y;    }

const double DstMdcTrack::z  )  const [inline]
 

00063 { return  m_z;    }

const double DstMdcTrack::z  )  const [inline]
 

00063 { return  m_z;    }


Member Data Documentation

HepVector DstMdcTrack::m_a [protected]
 

int DstMdcTrack::m_charge [protected]
 

double DstMdcTrack::m_chi2 [protected]
 

HepSymMatrix DstMdcTrack::m_Ea [protected]
 

double DstMdcTrack::m_err [protected]
 

int DstMdcTrack::m_firstLayer [protected]
 

double DstMdcTrack::m_helix [protected]
 

int DstMdcTrack::m_lastLayer [protected]
 

int DstMdcTrack::m_ndof [protected]
 

int DstMdcTrack::m_nster [protected]
 

double DstMdcTrack::m_p [protected]
 

double DstMdcTrack::m_phi [protected]
 

double DstMdcTrack::m_poca [protected]
 

HepPoint3D DstMdcTrack::m_poca3D [protected]
 

double DstMdcTrack::m_px [protected]
 

double DstMdcTrack::m_pxy [protected]
 

double DstMdcTrack::m_py [protected]
 

double DstMdcTrack::m_pz [protected]
 

double DstMdcTrack::m_r [protected]
 

int DstMdcTrack::m_stat [protected]
 

double DstMdcTrack::m_theta [protected]
 

int DstMdcTrack::m_trackId [protected]
 

double DstMdcTrack::m_x [protected]
 

double DstMdcTrack::m_y [protected]
 

double DstMdcTrack::m_z [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:00:34 2011 for BOSS6.5.5 by  doxygen 1.3.9.1