BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkKalTrk.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkKalTrk.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// class TrkKalTrk.
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Copyright Information:
12// Copyright (C) 2000 Lawrence Berkeley Laboratory
13//
14// Author List:
15// Dave Brown 10/31/00
16//------------------------------------------------------------------------
17
18// #include "BaBar/BaBar.h"
19#include "TrkBase/TrkKalTrk.h"
20#include "MdcRecoUtil/Pdt.h"
21#include "MdcRecoUtil/PdtPid.h"
22#include "TrkBase/TrkErrCode.h"
23#include <iostream>
24using std::endl;
25using std::ostream;
26
28
30
31void TrkKalTrk::print( ostream& os ) const {
32 os << "TrkKalTrk for track " << trackId() << " fit with t0 = " << usedT0() << " with "
33 << nSvt() << " Svt HOTs and " << nMdc() << " Mdc HOTs and " << nFit() << " Fit results "
34 << endl;
35 for ( unsigned ihypo = 0; ihypo < PdtPid::nPidType; ihypo++ )
36 {
37 PdtPid::PidType hypo = (PdtPid::PidType)ihypo;
38 TrkErrCode fitstat = fitStatus( hypo );
39 os << "When stored, the fit for hypo " << Pdt::lookup( hypo )->name()
40 << " pointed to hypo " << Pdt::lookup( fitHypo( hypo ) )->name() << " and "
41 << ( isValid( hypo ) ? " was Valid, " : " was Not Valid, " )
42 << ( isCurrent( hypo ) ? " was Current, " : " was Not Current, " )
43 << ( fitstat.success() ? " was Succesfully Fit. " : " was Not Successfully Fit. " )
44 << endl;
45 }
46}
47
48ostream& operator<<( ostream& os, const TrkKalTrk& kaltrk ) {
49 kaltrk.print( os );
50 return os;
51}
ostream & operator<<(ostream &os, const TrkKalTrk &kaltrk)
Definition TrkKalTrk.cxx:48
static PdtEntry * lookup(const std::string &name)
Definition Pdt.cxx:183
virtual unsigned nFit() const =0
virtual double usedT0() const =0
void print(std::ostream &os) const
virtual TrkErrCode fitStatus(PdtPid::PidType hypo) const =0
virtual bool isCurrent(PdtPid::PidType hypo) const =0
virtual bool isValid(PdtPid::PidType hypo) const =0
virtual unsigned nMdc() const =0
virtual unsigned long trackId() const =0
virtual unsigned nSvt() const =0
virtual ~TrkKalTrk()=0
Definition TrkKalTrk.cxx:29
virtual PdtPid::PidType fitHypo(PdtPid::PidType hypo) const =0