BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkKalTrk Class Referenceabstract

#include <TrkKalTrk.h>

Public Member Functions

 TrkKalTrk ()
 
virtual ~TrkKalTrk ()=0
 
virtual PdtPid::PidType defaultHypo () const =0
 
virtual PdtPid::PidType fitHypo (PdtPid::PidType hypo) const =0
 
virtual unsigned long trackId () const =0
 
virtual TrkSimpTrajseedTrajectory () const =0
 
virtual double usedT0 () const =0
 
virtual bool isValid (PdtPid::PidType hypo) const =0
 
virtual bool isCurrent (PdtPid::PidType hypo) const =0
 
virtual TrkErrCode fitStatus (PdtPid::PidType hypo) const =0
 
virtual unsigned nSvt () const =0
 
virtual unsigned nMdc () const =0
 
virtual unsigned nFit () const =0
 
void print (std::ostream &os) const
 

Detailed Description

Definition at line 30 of file TrkKalTrk.h.

Constructor & Destructor Documentation

◆ TrkKalTrk()

TrkKalTrk::TrkKalTrk ( )

Definition at line 27 of file TrkKalTrk.cxx.

28{}

◆ ~TrkKalTrk()

TrkKalTrk::~TrkKalTrk ( )
pure virtual

Definition at line 30 of file TrkKalTrk.cxx.

31{}

Member Function Documentation

◆ defaultHypo()

virtual PdtPid::PidType TrkKalTrk::defaultHypo ( ) const
pure virtual

◆ fitHypo()

virtual PdtPid::PidType TrkKalTrk::fitHypo ( PdtPid::PidType hypo) const
pure virtual

Referenced by print().

◆ fitStatus()

virtual TrkErrCode TrkKalTrk::fitStatus ( PdtPid::PidType hypo) const
pure virtual

Referenced by print().

◆ isCurrent()

virtual bool TrkKalTrk::isCurrent ( PdtPid::PidType hypo) const
pure virtual

Referenced by print().

◆ isValid()

virtual bool TrkKalTrk::isValid ( PdtPid::PidType hypo) const
pure virtual

Referenced by print().

◆ nFit()

virtual unsigned TrkKalTrk::nFit ( ) const
pure virtual

Referenced by print().

◆ nMdc()

virtual unsigned TrkKalTrk::nMdc ( ) const
pure virtual

Referenced by print().

◆ nSvt()

virtual unsigned TrkKalTrk::nSvt ( ) const
pure virtual

Referenced by print().

◆ print()

void TrkKalTrk::print ( std::ostream & os) const

Definition at line 34 of file TrkKalTrk.cxx.

34 {
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}
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
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 PdtPid::PidType fitHypo(PdtPid::PidType hypo) const =0

Referenced by operator<<().

◆ seedTrajectory()

virtual TrkSimpTraj * TrkKalTrk::seedTrajectory ( ) const
pure virtual

◆ trackId()

virtual unsigned long TrkKalTrk::trackId ( ) const
pure virtual

Referenced by print().

◆ usedT0()

virtual double TrkKalTrk::usedT0 ( ) const
pure virtual

Referenced by print().


The documentation for this class was generated from the following files: