/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/RootEventData/RootEventData-00-03-80/src/TEmcTrack.cxx

Go to the documentation of this file.
00001 #include "RootEventData/TEmcTrack.h"
00002 #include <cmath>
00003 
00004 using namespace std;
00005 
00006 
00007 ClassImp(TEmcTrack)
00008 
00009 //**************************************
00010 TEmcTrack::TEmcTrack() {
00011   Clear();
00012 }
00013 
00014 //*************************************
00015 
00016 TEmcTrack::~TEmcTrack() {
00017           Clear();
00018 } 
00019 
00020 void TEmcTrack::setErr(const Double_t err[6] ) {
00021   for (int i=0;i<6;i++) {
00022     m_err[i]  = err[i];
00023   }
00024 }
00025 /************************************
00026 
00027   void TEmcTrack::Clear(Option_t *option) {
00028   }
00029 
00030 
00031   void TEmcTrack::Print(Option_t *option) const {
00032   TObject::Print(option);
00033   std::cout.precision(2);
00034   std::cout << "Idetifier:    " << m_intId         << std::endl;
00035   std::cout << "TimeChannel:  " << m_timeChannel    <<std::endl;
00036   std::cout << "ChargeChannel:" << m_chargeChannel <<std::endl;
00037   }
00038  ******************************/
00039 
00040 Double_t TEmcTrack::dx() const {
00041   double xx=99.;
00042   if(m_err[0]>0) xx=sqrt(m_err[0]);
00043   else if(m_err[0]==0) xx=0.;
00044   return xx;
00045 }
00046 
00047 Double_t TEmcTrack::dy() const {
00048   double yy=99.;
00049   if(m_err[1]>0) yy=sqrt(m_err[1]);
00050   else if(m_err[1]==0) yy=0.;
00051   return yy;
00052 }
00053 
00054 Double_t TEmcTrack::dz() const {
00055   double zz=99.;
00056   if(m_err[2]>0) zz=sqrt(m_err[2]);
00057   else if(m_err[2]==0) zz=0.;
00058   return zz;
00059 }

Generated on Tue Nov 29 23:11:40 2016 for BOSS_7.0.2 by  doxygen 1.4.7