BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFit.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkFit.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6//
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author(s): Steve Schaffner
12//
13//------------------------------------------------------------------------
14// #include "BaBar/BaBar.hh"
15#include "TrkBase/TrkFit.h"
16#include "MdcRecoUtil/Pdt.h"
17#include <iostream>
18using std::ostream;
19
20//------------------------------------------------------------------------
22 //------------------------------------------------------------------------
23}
24
25//------------------------------------------------------------------------
27 //------------------------------------------------------------------------
28}
29
30void TrkFit::printType( ostream& ostr ) const {
31 ostr << "Particle type: " << Pdt::lookup( particleType() )->name();
32}
33
34// default implementation of validFlightLength
35bool TrkFit::validFlightLength( double fltl, double tolerance ) const {
36 return fltl + tolerance >= startValidRange() && fltl - tolerance <= endValidRange();
37}
static PdtEntry * lookup(const std::string &name)
Definition Pdt.cxx:183
virtual double startValidRange() const =0
virtual double endValidRange() const =0
void printType(std::ostream &ostr) const
virtual ~TrkFit()
Definition TrkFit.cxx:21
TrkFit()
Definition TrkFit.cxx:26
virtual bool validFlightLength(double fltL, double tolerance=0.0) const
Definition TrkFit.cxx:35
virtual PdtPid::PidType particleType() const =0