BOSS 7.1.1
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 "TrkBase/TrkErrCode.h"
21#include "MdcRecoUtil/PdtPid.h"
22#include "MdcRecoUtil/Pdt.h"
23#include <iostream>
24using std::endl;
25using std::ostream;
26
29
32
33void
34TrkKalTrk::print(ostream& os) const {
35 os << "TrkKalTrk for track " << trackId() << " fit with t0 = "
36 << usedT0() << " with " << nSvt() << " Svt HOTs and "
37 << nMdc() << " Mdc HOTs and " << nFit() << " Fit results "<< endl;
38 for(unsigned ihypo=0;ihypo<PdtPid::nPidType;ihypo++){
39 PdtPid::PidType hypo = (PdtPid::PidType)ihypo;
40 TrkErrCode fitstat = fitStatus(hypo);
41 os << "When stored, the fit for hypo " << Pdt::lookup(hypo)->name()
42 << " pointed to hypo " << Pdt::lookup(fitHypo(hypo))->name() << " and "
43 << (isValid(hypo) ? " was Valid, " : " was Not Valid, " )
44 << (isCurrent(hypo) ? " was Current, " : " was Not Current, " )
45 << (fitstat.success() ? " was Succesfully Fit. " : " was Not Successfully Fit. " )
46 << endl;
47 }
48}
49
50ostream& operator << (ostream& os,const TrkKalTrk& kaltrk) {
51 kaltrk.print(os);
52 return os;
53}
54
55
ostream & operator<<(ostream &os, const TrkKalTrk &kaltrk)
Definition TrkKalTrk.cxx:50
const char * name() const
Definition PdtEntry.h:53
PidType
Definition PdtPid.h:11
@ nPidType
Definition PdtPid.h:8
static PdtEntry * lookup(const std::string &name)
Definition Pdt.cxx:207
int success() const
Definition TrkErrCode.h:62
virtual unsigned nFit() const =0
virtual double usedT0() const =0
void print(std::ostream &os) const
Definition TrkKalTrk.cxx:34
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:30
virtual PdtPid::PidType fitHypo(PdtPid::PidType hypo) const =0