CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkLineRep.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkLineRep.h,v 1.1.1.1 2017/12/15 12:01:44 huangzhen 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
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
59 virtual TrkSimpTraj& simpTraj();
60 virtual const TrkSimpTraj& simpTraj() const;
61
62private:
63 TrkLineRep& operator=(const TrkLineRep &right);
64 TrkDifLineTraj _traj;
65};
66#endif
PidType
Definition: PdtPid.h:11
virtual void print(std::ostream &ostr) const
Definition: TrkLineRep.cxx:101
virtual TrkLineRep * clone(TrkRecoTrk *newTrack) const
Definition: TrkLineRep.cxx:52
virtual TrkExchangePar helix(double fltLen) const
Definition: TrkLineRep.cxx:70
virtual TrkDifTraj & traj()
Definition: TrkLineRep.cxx:131
double arrivalTime(double fltLen) const
Definition: TrkLineRep.cxx:143
virtual void printAll(std::ostream &ostr) const
Definition: TrkLineRep.cxx:113
virtual TrkLineRep * cloneNewHypo(PdtPid::PidType hypo)
Definition: TrkLineRep.cxx:61
virtual ~TrkLineRep()
Definition: TrkLineRep.cxx:47
virtual TrkSimpTraj & simpTraj()
Definition: TrkLineRep.cxx:119
virtual int nSvt() const
Definition: TrkRep.cxx:336
virtual double endFoundRange() const
Definition: TrkRep.cxx:302
virtual double startFoundRange() const
Definition: TrkRep.cxx:296