BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkFitter/TrkFitter-00-01-11/TrkFitter/TrkLineRep.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkLineRep.h,v 1.2 2007/12/07 07:06:34 zhangy Exp $
4//
5// Description:
6// Implementation class for TrkRep using a 3-d straight line
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// Steve Schaffner
13//
14//------------------------------------------------------------------------
15
16#ifndef TRKLINEREP_HH
17#define TRKLINEREP_HH
18
19#include "TrkFitter/TrkSimpleRep.h"
20#include "TrkFitter/TrkDifLineTraj.h"
21
22class TrkLineRep : public TrkSimpleRep {
23public:
24 //******************************************
25 // Constructors and such (see protected fcns for copy ctor)
26 //******************************************
27 // Create from scratch
28 TrkLineRep(const TrkExchangePar& inPar, TrkRecoTrk* myTrack, PdtPid::PidType hypo, const TrkHotList* =0);
29 // No hits
30 TrkLineRep(const TrkExchangePar& inPar, TrkRecoTrk* myTrack,
31 PdtPid::PidType hypo, int nAct, int nSvt, int nDch, double chi2,
32 double startFoundRange, double endFoundRange);
33 virtual ~TrkLineRep();
34 // specific clone operation for this class
35 virtual TrkLineRep* clone(TrkRecoTrk* newTrack) const;
37
38 //******************************************
39 // Global quantities:
40 //******************************************
41 virtual TrkDifTraj& traj();
42 virtual const TrkDifTraj& traj() const;
43
44 //******************************************
45 // Information about track at a given position
46 //******************************************
47 virtual TrkExchangePar helix(double fltLen) const;
48
49 double arrivalTime(double fltLen) const;
50 //******************************************
51 // Printing
52 //******************************************
53 virtual void printAll(std::ostream& ostr) const;
54 virtual void print(std::ostream& ostr) const;
55
56protected:
57// copy constructor -- invoked by clone
60 virtual const TrkSimpTraj& simpTraj() const;
61
62private:
63 TrkLineRep& operator=(const TrkLineRep &right);
64 TrkDifLineTraj _traj;
65};
66#endif
virtual const TrkSimpTraj & simpTraj() const
virtual ~TrkLineRep()
virtual const TrkDifTraj & traj() const
virtual TrkDifTraj & traj()
TrkLineRep(const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, int nAct, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
virtual TrkExchangePar helix(double fltLen) const
virtual TrkLineRep * clone(TrkRecoTrk *newTrack) const
double arrivalTime(double fltLen) const
virtual void printAll(std::ostream &ostr) const
virtual TrkLineRep * cloneNewHypo(PdtPid::PidType hypo)
virtual TrkSimpTraj & simpTraj()
virtual void print(std::ostream &ostr) const
TrkLineRep(const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, const TrkHotList *=0)
TrkLineRep(const TrkLineRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual int nSvt() const
Definition: TrkRep.cxx:336
virtual double endFoundRange() const
Definition: TrkRep.cxx:302
virtual double startFoundRange() const
Definition: TrkRep.cxx:296