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>
24
using
std::endl;
25
using
std::ostream;
26
27
TrkKalTrk::TrkKalTrk
()
28
{}
29
30
TrkKalTrk::~TrkKalTrk
()
31
{}
32
33
void
34
TrkKalTrk::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
50
ostream&
operator <<
(ostream& os,
const
TrkKalTrk
& kaltrk) {
51
kaltrk.
print
(os);
52
return
os;
53
}
54
55
PdtPid.h
Pdt.h
TrkErrCode.h
operator<<
ostream & operator<<(ostream &os, const TrkKalTrk &kaltrk)
Definition
TrkKalTrk.cxx:50
TrkKalTrk.h
PdtEntry::name
const char * name() const
Definition
PdtEntry.h:53
PdtPid::PidType
PidType
Definition
PdtPid.h:11
PdtPid::nPidType
@ nPidType
Definition
PdtPid.h:8
Pdt::lookup
static PdtEntry * lookup(const std::string &name)
Definition
Pdt.cxx:207
TrkErrCode
Definition
TrkErrCode.h:48
TrkErrCode::success
int success() const
Definition
TrkErrCode.h:62
TrkKalTrk
Definition
TrkKalTrk.h:30
TrkKalTrk::nFit
virtual unsigned nFit() const =0
TrkKalTrk::usedT0
virtual double usedT0() const =0
TrkKalTrk::print
void print(std::ostream &os) const
Definition
TrkKalTrk.cxx:34
TrkKalTrk::fitStatus
virtual TrkErrCode fitStatus(PdtPid::PidType hypo) const =0
TrkKalTrk::isCurrent
virtual bool isCurrent(PdtPid::PidType hypo) const =0
TrkKalTrk::isValid
virtual bool isValid(PdtPid::PidType hypo) const =0
TrkKalTrk::nMdc
virtual unsigned nMdc() const =0
TrkKalTrk::trackId
virtual unsigned long trackId() const =0
TrkKalTrk::nSvt
virtual unsigned nSvt() const =0
TrkKalTrk::~TrkKalTrk
virtual ~TrkKalTrk()=0
Definition
TrkKalTrk.cxx:30
TrkKalTrk::TrkKalTrk
TrkKalTrk()
Definition
TrkKalTrk.cxx:27
TrkKalTrk::fitHypo
virtual PdtPid::PidType fitHypo(PdtPid::PidType hypo) const =0
7.1.1
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
src
TrkKalTrk.cxx
Generated by
1.12.0