/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/src/TrkKalTrk.cxx

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: TrkKalTrk.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
00004 //
00005 // Description:
00006 //      class TrkKalTrk.
00007 //
00008 // Environment:
00009 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00010 //
00011 // Copyright Information:
00012 //      Copyright (C) 2000      Lawrence Berkeley Laboratory
00013 //
00014 // Author List:
00015 //      Dave Brown 10/31/00
00016 //------------------------------------------------------------------------
00017 
00018 //#include "BaBar/BaBar.h"
00019 #include "TrkBase/TrkKalTrk.h"
00020 #include "TrkBase/TrkErrCode.h"
00021 #include "MdcRecoUtil/PdtPid.h"
00022 #include "MdcRecoUtil/Pdt.h"
00023 #include <iostream>
00024 using std::endl;
00025 using std::ostream;
00026 
00027 TrkKalTrk::TrkKalTrk()
00028 {}
00029 
00030 TrkKalTrk::~TrkKalTrk()
00031 {}
00032 
00033 void
00034 TrkKalTrk::print(ostream& os) const {
00035   os << "TrkKalTrk for track " << trackId() << " fit with t0 = "
00036      << usedT0() << " with " << nSvt() << " Svt HOTs and "
00037      << nMdc() << " Mdc HOTs and " << nFit() << " Fit results "<< endl;
00038   for(unsigned ihypo=0;ihypo<PdtPid::nPidType;ihypo++){
00039     PdtPid::PidType hypo = (PdtPid::PidType)ihypo;
00040     TrkErrCode fitstat = fitStatus(hypo);
00041     os << "When stored, the fit for hypo " << Pdt::lookup(hypo)->name() 
00042        << " pointed to hypo " << Pdt::lookup(fitHypo(hypo))->name() << " and " 
00043        << (isValid(hypo) ? " was Valid, " : " was Not Valid, " )
00044        << (isCurrent(hypo) ? " was Current, " : " was Not Current, " )
00045        << (fitstat.success() ? " was Succesfully Fit. " : " was Not Successfully Fit. " )
00046        << endl;
00047   }
00048 }
00049 
00050 ostream& operator << (ostream& os,const TrkKalTrk& kaltrk) {
00051   kaltrk.print(os);
00052   return os;
00053 }
00054 
00055 

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