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

TRecMdcTrack Class Reference

#include <TRecMdcTrack.h>

List of all members.

Public Member Functions

const Int_t charge () const
const Int_t charge () const
const Double_t chi2 () const
const Double_t chi2 () const
const Double_t err (Int_t i) const
const Double_t err (Int_t i) const
const Double_t fiTerm (void) const
const Double_t fiTerm (void) const
const Double_t helix (Int_t i) const
const Double_t helix (Int_t i) const
const Int_t ndof () const
const Int_t ndof () const
const Int_t nhits () const
const Int_t nhits () const
const Int_t nster () const
const Int_t nster () const
const Double_t p () const
const Double_t p () const
const Double_t phi () const
const Double_t phi () const
const Double_t px () const
const Double_t px () const
const Double_t pxy () const
const Double_t pxy () const
const Double_t py () const
const Double_t py () const
const Double_t pz () const
const Double_t pz () const
const Double_t r () const
const Double_t r () const
void setChi2 (const Double_t chi)
void setChi2 (const Double_t chi)
void setErr (const Double_t er[15])
void setErr (const Double_t er[15])
void setFiTerm (Double_t fiterm)
void setFiTerm (Double_t fiterm)
void setHelix (const Double_t helix[5])
void setHelix (const Double_t helix[5])
void setNdof (const Int_t ndof)
void setNdof (const Int_t ndof)
void setNhits (const Int_t nh)
void setNhits (const Int_t nh)
void setNster (const Int_t ns)
void setNster (const Int_t ns)
void setStat (const Int_t stat)
void setStat (const Int_t stat)
void setTrackId (const Int_t trackId)
void setTrackId (const Int_t trackId)
void setTRecMdcTrack (const TRecMdcTrack *mdcTrk)
void setTRecMdcTrack (const TRecMdcTrack *mdcTrk)
void setVX0 (Double_t vx0)
void setVX0 (Double_t vx0)
void setVY0 (Double_t vy0)
void setVY0 (Double_t vy0)
void setVZ0 (Double_t vz0)
void setVZ0 (Double_t vz0)
const Int_t stat () const
const Int_t stat () const
const Double_t theta () const
const Double_t theta () const
const Int_t trackId () const
const Int_t trackId () const
 TRecMdcTrack ()
 TRecMdcTrack ()
const Double_t vx0 (void) const
const Double_t vx0 (void) const
const Double_t vy0 (void) const
const Double_t vy0 (void) const
const Double_t vz0 (void) const
const Double_t vz0 (void) const
const Double_t x () const
const Double_t x () const
const Double_t y () const
const Double_t y () const
const Double_t z () const
const Double_t z () const
 ~TRecMdcTrack ()
 ~TRecMdcTrack ()

Private Attributes

Double_t m_chi2
Double_t m_err [15]
Double_t m_fiTerm
Double_t m_helix [5]
Int_t m_ndof
Int_t m_nhits
Int_t m_nster
Int_t m_stat
Int_t m_trackId
Double_t m_vx0
Double_t m_vy0
Double_t m_vz0


Constructor & Destructor Documentation

TRecMdcTrack::TRecMdcTrack  ) 
 

TRecMdcTrack::~TRecMdcTrack  ) 
 

00013                              {
00014     Clear();
00015  }

TRecMdcTrack::TRecMdcTrack  ) 
 

TRecMdcTrack::~TRecMdcTrack  ) 
 


Member Function Documentation

const Int_t TRecMdcTrack::charge  )  const
 

const Int_t TRecMdcTrack::charge  )  const
 

00018                                             {
00019    Int_t charge;
00020    Double_t temp = m_helix[2];
00021    if (temp >0.0000000001)
00022      charge = 1 ;
00023    else if (temp < -0.0000000001)
00024      charge = -1;
00025    else
00026      charge = 0;
00027    return charge;
00028  }

const Double_t TRecMdcTrack::chi2 void   )  const [inline]
 

00032 { return  m_chi2; }

const Double_t TRecMdcTrack::chi2  )  const [inline]
 

00032 { return  m_chi2; }

const Double_t TRecMdcTrack::err Int_t  i  )  const [inline]
 

00034 { return  m_err[i];}

const Double_t TRecMdcTrack::err Int_t  i  )  const [inline]
 

00034 { return  m_err[i];}

const Double_t TRecMdcTrack::fiTerm void   )  const [inline]
 

00042 { return m_fiTerm; }

const Double_t TRecMdcTrack::fiTerm void   )  const [inline]
 

00042 { return m_fiTerm; }

const Double_t TRecMdcTrack::helix Int_t  i  )  const [inline]
 

00018 { return m_helix[i];  }

const Double_t TRecMdcTrack::helix Int_t  i  )  const [inline]
 

00018 { return m_helix[i];  }

const Int_t TRecMdcTrack::ndof  )  const [inline]
 

00033 { return  m_ndof; }

const Int_t TRecMdcTrack::ndof  )  const [inline]
 

00033 { return  m_ndof; }

const Int_t TRecMdcTrack::nhits  )  const [inline]
 

00035 { return  m_nhits; }

const Int_t TRecMdcTrack::nhits  )  const [inline]
 

00035 { return  m_nhits; }

const Int_t TRecMdcTrack::nster void   )  const [inline]
 

00036 { return  m_nster; }

const Int_t TRecMdcTrack::nster  )  const [inline]
 

00036 { return  m_nster; }

const Double_t TRecMdcTrack::p  )  const
 

const Double_t TRecMdcTrack::p  )  const
 

00064                                             {
00065    return  sqrt(px()*px() + py()*py() + pz()*pz());
00066  }

const Double_t TRecMdcTrack::phi  )  const
 

const Double_t TRecMdcTrack::phi  )  const
 

00072                                             {
00073    return atan2(py(),px());
00074  }

const Double_t TRecMdcTrack::px  )  const
 

const Double_t TRecMdcTrack::px  )  const
 

00052                                             {
00053    return pxy()*(-sin(m_helix[1]));
00054  }

const Double_t TRecMdcTrack::pxy  )  const
 

const Double_t TRecMdcTrack::pxy  )  const
 

00046                                             {
00047    if(m_helix[2] != 0)
00048      return 1./fabs(m_helix[2]);
00049    else return 0.;
00050  }

const Double_t TRecMdcTrack::py  )  const
 

const Double_t TRecMdcTrack::py  )  const
 

00056                                             {
00057    return pxy()*cos(m_helix[1]);
00058  }

const Double_t TRecMdcTrack::pz  )  const
 

const Double_t TRecMdcTrack::pz  )  const
 

00060                                             {
00061    return  pxy()*m_helix[4];
00062  }

const Double_t TRecMdcTrack::r  )  const
 

const Double_t TRecMdcTrack::r  )  const
 

00042                                             {
00043    return  sqrt(x()*x()+y()*y());
00044  }

void TRecMdcTrack::setChi2 const Double_t  chi  )  [inline]
 

00050 { m_chi2 = chi;    }

void TRecMdcTrack::setChi2 const Double_t  chi  )  [inline]
 

00050 { m_chi2 = chi;    }

void TRecMdcTrack::setErr const Double_t  er[15]  )  [inline]
 

00053                                            {    
00054     for (Int_t i=0;i<15;i++) m_err[i]  = er[i];   
00055   }

void TRecMdcTrack::setErr const Double_t  er[15]  )  [inline]
 

00053                                            {    
00054     for (Int_t i=0;i<15;i++) m_err[i]  = er[i];   
00055   }

void TRecMdcTrack::setFiTerm Double_t  fiterm  )  [inline]
 

00064 { m_fiTerm = fiterm;}

void TRecMdcTrack::setFiTerm Double_t  fiterm  )  [inline]
 

00064 { m_fiTerm = fiterm;}

void TRecMdcTrack::setHelix const Double_t  helix[5]  )  [inline]
 

00046                                             {
00047     for(Int_t i=0; i<5; i++) m_helix[i] = helix[i]; 
00048   }

void TRecMdcTrack::setHelix const Double_t  helix[5]  )  [inline]
 

00046                                             {
00047     for(Int_t i=0; i<5; i++) m_helix[i] = helix[i]; 
00048   }

void TRecMdcTrack::setNdof const Int_t  ndof  )  [inline]
 

00051 { m_ndof = ndof;   }

void TRecMdcTrack::setNdof const Int_t  ndof  )  [inline]
 

00051 { m_ndof = ndof;   }

void TRecMdcTrack::setNhits const Int_t  nh  )  [inline]
 

00057 { m_nhits=nh;     }

void TRecMdcTrack::setNhits const Int_t  nh  )  [inline]
 

00057 { m_nhits=nh;     }

void TRecMdcTrack::setNster const Int_t  ns  )  [inline]
 

00058 { m_nster=ns;     }

void TRecMdcTrack::setNster const Int_t  ns  )  [inline]
 

00058 { m_nster=ns;     }

void TRecMdcTrack::setStat const Int_t  stat  )  [inline]
 

00049 { m_stat = stat;   }

void TRecMdcTrack::setStat const Int_t  stat  )  [inline]
 

00049 { m_stat = stat;   }

void TRecMdcTrack::setTrackId const Int_t  trackId  )  [inline]
 

00045 { m_trackId = trackId; }

void TRecMdcTrack::setTrackId const Int_t  trackId  )  [inline]
 

00045 { m_trackId = trackId; }

void TRecMdcTrack::setTRecMdcTrack const TRecMdcTrack mdcTrk  )  [inline]
 

00065                                                      {
00066       for(int i=0;i<5;i++){
00067                m_helix[i]=mdcTrk->helix(i);
00068                  }
00069         for(int i=0;i<15;i++){
00070             m_err[i]=mdcTrk->err(i);
00071               }
00072           m_trackId=mdcTrk->trackId();
00073             m_stat=mdcTrk->stat();
00074               m_chi2=mdcTrk->chi2();
00075                 m_ndof=mdcTrk->ndof();
00076                   m_nster=mdcTrk->nster();
00077                   m_vx0=mdcTrk->vx0();
00078                   m_vy0=mdcTrk->vy0();
00079                   m_vz0=mdcTrk->vz0();
00080                   m_fiTerm =mdcTrk->fiTerm();
00081   }

void TRecMdcTrack::setTRecMdcTrack const TRecMdcTrack mdcTrk  )  [inline]
 

00065                                                      {
00066       for(int i=0;i<5;i++){
00067                m_helix[i]=mdcTrk->helix(i);
00068                  }
00069         for(int i=0;i<15;i++){
00070             m_err[i]=mdcTrk->err(i);
00071               }
00072           m_trackId=mdcTrk->trackId();
00073             m_stat=mdcTrk->stat();
00074               m_chi2=mdcTrk->chi2();
00075                 m_ndof=mdcTrk->ndof();
00076                   m_nster=mdcTrk->nster();
00077                   m_vx0=mdcTrk->vx0();
00078                   m_vy0=mdcTrk->vy0();
00079                   m_vz0=mdcTrk->vz0();
00080                   m_fiTerm =mdcTrk->fiTerm();
00081   }

void TRecMdcTrack::setVX0 Double_t  vx0  )  [inline]
 

00061 { m_vx0 = vx0;    }

void TRecMdcTrack::setVX0 Double_t  vx0  )  [inline]
 

00061 { m_vx0 = vx0;    }

void TRecMdcTrack::setVY0 Double_t  vy0  )  [inline]
 

00062 { m_vy0 = vy0;    }

void TRecMdcTrack::setVY0 Double_t  vy0  )  [inline]
 

00062 { m_vy0 = vy0;    }

void TRecMdcTrack::setVZ0 Double_t  vz0  )  [inline]
 

00063 { m_vz0 = vz0;    }

void TRecMdcTrack::setVZ0 Double_t  vz0  )  [inline]
 

00063 { m_vz0 = vz0;    }

const Int_t TRecMdcTrack::stat  )  const [inline]
 

00031 { return  m_stat; }

const Int_t TRecMdcTrack::stat  )  const [inline]
 

00031 { return  m_stat; }

const Double_t TRecMdcTrack::theta  )  const
 

const Double_t TRecMdcTrack::theta  )  const
 

00068                                             {
00069    return acos(pz()/p());
00070  }

const Int_t TRecMdcTrack::trackId  )  const [inline]
 

00017 { return  m_trackId;  }

const Int_t TRecMdcTrack::trackId  )  const [inline]
 

00017 { return  m_trackId;  }

const Double_t TRecMdcTrack::vx0 void   )  const [inline]
 

00039 { return m_vx0;    }

const Double_t TRecMdcTrack::vx0 void   )  const [inline]
 

00039 { return m_vx0;    }

const Double_t TRecMdcTrack::vy0 void   )  const [inline]
 

00040 { return m_vy0;    }

const Double_t TRecMdcTrack::vy0 void   )  const [inline]
 

00040 { return m_vy0;    }

const Double_t TRecMdcTrack::vz0 void   )  const [inline]
 

00041 { return m_vz0;    }

const Double_t TRecMdcTrack::vz0 void   )  const [inline]
 

00041 { return m_vz0;    }

const Double_t TRecMdcTrack::x  )  const
 

const Double_t TRecMdcTrack::x  )  const
 

00030                                             {
00031    return  m_helix[0]*cos(m_helix[1]);
00032  }

const Double_t TRecMdcTrack::y  )  const
 

const Double_t TRecMdcTrack::y  )  const
 

00034                                             {
00035    return  m_helix[0]*sin(m_helix[1]);
00036  }

const Double_t TRecMdcTrack::z  )  const
 

const Double_t TRecMdcTrack::z  )  const
 

00038                                             {
00039    return  m_helix[3];
00040  }


Member Data Documentation

Double_t TRecMdcTrack::m_chi2 [private]
 

Double_t TRecMdcTrack::m_err [private]
 

Double_t TRecMdcTrack::m_fiTerm [private]
 

Double_t TRecMdcTrack::m_helix [private]
 

Int_t TRecMdcTrack::m_ndof [private]
 

Int_t TRecMdcTrack::m_nhits [private]
 

Int_t TRecMdcTrack::m_nster [private]
 

Int_t TRecMdcTrack::m_stat [private]
 

Int_t TRecMdcTrack::m_trackId [private]
 

Double_t TRecMdcTrack::m_vx0 [private]
 

Double_t TRecMdcTrack::m_vy0 [private]
 

Double_t TRecMdcTrack::m_vz0 [private]
 


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