BOSS 7.0.4
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 <iostream>
17#include "MdcRecoUtil/Pdt.h"
18using std::ostream;
19
20//------------------------------------------------------------------------
22//------------------------------------------------------------------------
23}
24
25//------------------------------------------------------------------------
27//------------------------------------------------------------------------
28}
29
30void
31TrkFit::printType(ostream& ostr) const
32{
33 ostr << "Particle type: " << Pdt::lookup( particleType() )->name();
34}
35
36// default implementation of validFlightLength
37bool
38TrkFit::validFlightLength(double fltl,double tolerance) const {
39 return fltl+tolerance >= startValidRange() &&
40 fltl-tolerance <= endValidRange();
41}
static PdtEntry * lookup(const std::string &name)
Definition: Pdt.cxx:207
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:38
virtual PdtPid::PidType particleType() const =0