BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkLineRep Class Reference

#include <TrkLineRep.h>

Inheritance diagram for TrkLineRep:

Public Member Functions

 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, const TrkHotList *=0)
 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, int nAct, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
virtual ~TrkLineRep ()
virtual TrkLineRepclone (TrkRecoTrk *newTrack) const
virtual TrkLineRepcloneNewHypo (PdtPid::PidType hypo)
virtual TrkDifTrajtraj ()
virtual const TrkDifTrajtraj () const
virtual TrkExchangePar helix (double fltLen) const
double arrivalTime (double fltLen) const
virtual void printAll (std::ostream &ostr) const
virtual void print (std::ostream &ostr) const
 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, const TrkHotList *=0)
 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, int nAct, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
virtual ~TrkLineRep ()
virtual TrkLineRepclone (TrkRecoTrk *newTrack) const
virtual TrkLineRepcloneNewHypo (PdtPid::PidType hypo)
virtual TrkDifTrajtraj ()
virtual const TrkDifTrajtraj () const
virtual TrkExchangePar helix (double fltLen) const
double arrivalTime (double fltLen) const
virtual void printAll (std::ostream &ostr) const
virtual void print (std::ostream &ostr) const
 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, const TrkHotList *=0)
 TrkLineRep (const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, int nAct, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
virtual ~TrkLineRep ()
virtual TrkLineRepclone (TrkRecoTrk *newTrack) const
virtual TrkLineRepcloneNewHypo (PdtPid::PidType hypo)
virtual TrkDifTrajtraj ()
virtual const TrkDifTrajtraj () const
virtual TrkExchangePar helix (double fltLen) const
double arrivalTime (double fltLen) const
virtual void printAll (std::ostream &ostr) const
virtual void print (std::ostream &ostr) const
Public Member Functions inherited from TrkSimpleRep
 TrkSimpleRep (const TrkHotList *, TrkRecoTrk *, PdtPid::PidType)
 TrkSimpleRep (TrkRecoTrk *, PdtPid::PidType, int nActive, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
 TrkSimpleRep (const TrkSimpleRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual ~TrkSimpleRep ()
int nDof () const
double chisq () const
void setChisq (double c)
virtual int charge () const
virtual Hep3Vector momentum (double fltL=0.) const
virtual double pt (double fltL=0.) const
virtual BesVectorErr momentumErr (double fltL) const
virtual HepMatrix posmomCov (double fltL) const
virtual void getAllCovs (double fltL, HepSymMatrix &xxCov, HepSymMatrix &ppCov, HepMatrix &xpCov) const
virtual void getAllWeights (double fltL, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual void getAllWeights (const HepPoint3D &pt, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual TrkErrCode fit ()
TrkHelixFitterfitter ()
 TrkSimpleRep (const TrkHotList *, TrkRecoTrk *, PdtPid::PidType)
 TrkSimpleRep (TrkRecoTrk *, PdtPid::PidType, int nActive, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
 TrkSimpleRep (const TrkSimpleRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual ~TrkSimpleRep ()
int nDof () const
double chisq () const
void setChisq (double c)
virtual int charge () const
virtual Hep3Vector momentum (double fltL=0.) const
virtual double pt (double fltL=0.) const
virtual BesVectorErr momentumErr (double fltL) const
virtual HepMatrix posmomCov (double fltL) const
virtual void getAllCovs (double fltL, HepSymMatrix &xxCov, HepSymMatrix &ppCov, HepMatrix &xpCov) const
virtual void getAllWeights (double fltL, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual void getAllWeights (const HepPoint3D &pt, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual TrkErrCode fit ()
TrkHelixFitterfitter ()
 TrkSimpleRep (const TrkHotList *, TrkRecoTrk *, PdtPid::PidType)
 TrkSimpleRep (TrkRecoTrk *, PdtPid::PidType, int nActive, int nSvt, int nDch, double chi2, double startFoundRange, double endFoundRange)
 TrkSimpleRep (const TrkSimpleRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual ~TrkSimpleRep ()
int nDof () const
double chisq () const
void setChisq (double c)
virtual int charge () const
virtual Hep3Vector momentum (double fltL=0.) const
virtual double pt (double fltL=0.) const
virtual BesVectorErr momentumErr (double fltL) const
virtual HepMatrix posmomCov (double fltL) const
virtual void getAllCovs (double fltL, HepSymMatrix &xxCov, HepSymMatrix &ppCov, HepMatrix &xpCov) const
virtual void getAllWeights (double fltL, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual void getAllWeights (const HepPoint3D &pt, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
virtual TrkErrCode fit ()
TrkHelixFitterfitter ()
Public Member Functions inherited from TrkRep
 TrkRep (const TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool stealHots=false)
 TrkRep (const TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool takeownership=false)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, int nAct, int nSvt, int nMdc, double startFoundRange, double endFoundRange)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, bool createHotList=false)
 TrkRep (const TrkRep &oldRep, TrkRecoTrk *trk, PdtPid::PidType hypo)
virtual ~TrkRep ()
bool operator== (const TrkRep &)
virtual ChisqConsistency chisqConsistency () const
virtual int nActive () const
virtual int nSvt () const
virtual int nMdc () const
virtual PdtPid::PidType particleType () const
TrkRecoTrkparentTrack ()
const TrkRecoTrkparentTrack () const
double startValidRange () const
double endValidRange () const
virtual double startFoundRange () const
virtual double endFoundRange () const
virtual const IfdKeymyKey () const
double trackT0 () const
virtual HepPoint3D position (double fltL) const
virtual Hep3Vector direction (double fltL) const
virtual BesPointErr positionErr (double fltL) const
virtual BesVectorErr directionErr (double fltL) const
virtual void addHot (TrkHitOnTrk *theHot)
virtual void removeHot (TrkHitOnTrk *theHot)
virtual void activateHot (TrkHitOnTrk *theHot)
virtual void deactivateHot (TrkHitOnTrk *theHot)
virtual TrkHotListhotList ()
virtual const TrkHotListhotList () const
virtual void updateHots ()
virtual bool resid (const TrkHitOnTrk *theHot, double &residual, double &residErr, bool exclude=false) const
bool hitCapable () const
 TrkRep (const TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool stealHots=false)
 TrkRep (const TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool takeownership=false)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, int nAct, int nSvt, int nMdc, double startFoundRange, double endFoundRange)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, bool createHotList=false)
 TrkRep (const TrkRep &oldRep, TrkRecoTrk *trk, PdtPid::PidType hypo)
virtual ~TrkRep ()
bool operator== (const TrkRep &)
virtual ChisqConsistency chisqConsistency () const
virtual int nActive () const
virtual int nSvt () const
virtual int nMdc () const
virtual PdtPid::PidType particleType () const
TrkRecoTrkparentTrack ()
const TrkRecoTrkparentTrack () const
double startValidRange () const
double endValidRange () const
virtual double startFoundRange () const
virtual double endFoundRange () const
virtual const IfdKeymyKey () const
double trackT0 () const
virtual HepPoint3D position (double fltL) const
virtual Hep3Vector direction (double fltL) const
virtual BesPointErr positionErr (double fltL) const
virtual BesVectorErr directionErr (double fltL) const
virtual void addHot (TrkHitOnTrk *theHot)
virtual void removeHot (TrkHitOnTrk *theHot)
virtual void activateHot (TrkHitOnTrk *theHot)
virtual void deactivateHot (TrkHitOnTrk *theHot)
virtual TrkHotListhotList ()
virtual const TrkHotListhotList () const
virtual void updateHots ()
virtual bool resid (const TrkHitOnTrk *theHot, double &residual, double &residErr, bool exclude=false) const
bool hitCapable () const
 TrkRep (const TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList &inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool stealHots=false)
 TrkRep (const TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo)
 TrkRep (TrkHotList *inHots, TrkRecoTrk *trk, PdtPid::PidType hypo, bool takeownership=false)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, int nAct, int nSvt, int nMdc, double startFoundRange, double endFoundRange)
 TrkRep (TrkRecoTrk *trk, PdtPid::PidType hypo, bool createHotList=false)
 TrkRep (const TrkRep &oldRep, TrkRecoTrk *trk, PdtPid::PidType hypo)
virtual ~TrkRep ()
bool operator== (const TrkRep &)
virtual ChisqConsistency chisqConsistency () const
virtual int nActive () const
virtual int nSvt () const
virtual int nMdc () const
virtual PdtPid::PidType particleType () const
TrkRecoTrkparentTrack ()
const TrkRecoTrkparentTrack () const
double startValidRange () const
double endValidRange () const
virtual double startFoundRange () const
virtual double endFoundRange () const
virtual const IfdKeymyKey () const
double trackT0 () const
virtual HepPoint3D position (double fltL) const
virtual Hep3Vector direction (double fltL) const
virtual BesPointErr positionErr (double fltL) const
virtual BesVectorErr directionErr (double fltL) const
virtual void addHot (TrkHitOnTrk *theHot)
virtual void removeHot (TrkHitOnTrk *theHot)
virtual void activateHot (TrkHitOnTrk *theHot)
virtual void deactivateHot (TrkHitOnTrk *theHot)
virtual TrkHotListhotList ()
virtual const TrkHotListhotList () const
virtual void updateHots ()
virtual bool resid (const TrkHitOnTrk *theHot, double &residual, double &residErr, bool exclude=false) const
bool hitCapable () const
Public Member Functions inherited from TrkFitStatus
bool is2d () const
bool fitCurrent () const
bool fitValid () const
bool multScat () const
std::ostream & printStatus (std::ostream &os=std::cout) const
void setValid (bool v)
void setCurrent (bool c)
void set2d (bool d)
void setMultScat (bool m)
const TrkErrCodefitStatus () const
history_iterator beginHistory () const
history_iterator endHistory () const
history_riterator reverseBeginHistory () const
history_riterator reverseEndHistory () const
std::pair< history_iterator, history_iterator > history () const
const std::vector< TrkHistory > & historyVector () const
virtual void addHistory (const TrkErrCode &status, const char *modulename)
template<class T>
void addHistory (T begin, T end)
template<class T>
void addHistory (std::pair< T, T > p)
std::ostream & printHistory (std::ostream &os=std::cout) const
bool is2d () const
bool fitCurrent () const
bool fitValid () const
bool multScat () const
std::ostream & printStatus (std::ostream &os=std::cout) const
void setValid (bool v)
void setCurrent (bool c)
void set2d (bool d)
void setMultScat (bool m)
const TrkErrCodefitStatus () const
history_iterator beginHistory () const
history_iterator endHistory () const
history_riterator reverseBeginHistory () const
history_riterator reverseEndHistory () const
std::pair< history_iterator, history_iterator > history () const
const std::vector< TrkHistory > & historyVector () const
virtual void addHistory (const TrkErrCode &status, const char *modulename)
template<class T>
void addHistory (T begin, T end)
template<class T>
void addHistory (std::pair< T, T > p)
std::ostream & printHistory (std::ostream &os=std::cout) const
bool is2d () const
bool fitCurrent () const
bool fitValid () const
bool multScat () const
std::ostream & printStatus (std::ostream &os=std::cout) const
void setValid (bool v)
void setCurrent (bool c)
void set2d (bool d)
void setMultScat (bool m)
const TrkErrCodefitStatus () const
history_iterator beginHistory () const
history_iterator endHistory () const
history_riterator reverseBeginHistory () const
history_riterator reverseEndHistory () const
std::pair< history_iterator, history_iterator > history () const
const std::vector< TrkHistory > & historyVector () const
virtual void addHistory (const TrkErrCode &status, const char *modulename)
template<class T>
void addHistory (T begin, T end)
template<class T>
void addHistory (std::pair< T, T > p)
std::ostream & printHistory (std::ostream &os=std::cout) const
Public Member Functions inherited from TrkFit
virtual bool validFlightLength (double fltL, double tolerance=0.0) const
void printType (std::ostream &ostr) const
virtual bool validFlightLength (double fltL, double tolerance=0.0) const
void printType (std::ostream &ostr) const
virtual bool validFlightLength (double fltL, double tolerance=0.0) const
void printType (std::ostream &ostr) const
Public Member Functions inherited from TrkHitOnTrkUpdater
virtual ~TrkHitOnTrkUpdater ()=0
virtual ~TrkHitOnTrkUpdater ()=0
virtual ~TrkHitOnTrkUpdater ()=0

Protected Member Functions

 TrkLineRep (const TrkLineRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual TrkSimpTrajsimpTraj ()
virtual const TrkSimpTrajsimpTraj () const
 TrkLineRep (const TrkLineRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual TrkSimpTrajsimpTraj ()
virtual const TrkSimpTrajsimpTraj () const
 TrkLineRep (const TrkLineRep &right, TrkRecoTrk *trk, PdtPid::PidType)
virtual TrkSimpTrajsimpTraj ()
virtual const TrkSimpTrajsimpTraj () const
Protected Member Functions inherited from TrkSimpleRep
TrkSimpleRepoperator= (const TrkSimpleRep &right)
TrkSimpleRepoperator= (const TrkSimpleRep &right)
TrkSimpleRepoperator= (const TrkSimpleRep &right)
Protected Member Functions inherited from TrkRep
TrkRepoperator= (const TrkRep &)
const TrkContexttrkContext () const
TrkRepoperator= (const TrkRep &)
const TrkContexttrkContext () const
TrkRepoperator= (const TrkRep &)
const TrkContexttrkContext () const
Protected Member Functions inherited from TrkFitStatus
virtual ~TrkFitStatus ()
 TrkFitStatus ()
TrkFitStatusoperator= (const TrkFitStatus &)
 TrkFitStatus (const TrkFitStatus &)
virtual ~TrkFitStatus ()
 TrkFitStatus ()
TrkFitStatusoperator= (const TrkFitStatus &)
 TrkFitStatus (const TrkFitStatus &)
virtual ~TrkFitStatus ()
 TrkFitStatus ()
TrkFitStatusoperator= (const TrkFitStatus &)
 TrkFitStatus (const TrkFitStatus &)
Protected Member Functions inherited from TrkFit
 TrkFit ()
virtual ~TrkFit ()
 TrkFit ()
virtual ~TrkFit ()
 TrkFit ()
virtual ~TrkFit ()
Protected Member Functions inherited from TrkAbsFit
 TrkAbsFit ()
virtual ~TrkAbsFit ()
 TrkAbsFit ()
virtual ~TrkAbsFit ()
 TrkAbsFit ()
virtual ~TrkAbsFit ()
Protected Member Functions inherited from TrkHitOnTrkUpdater
TrkErrCode updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
void setActivity (TrkHitOnTrk &hot, bool active) const
void setParent (TrkHitOnTrk &hot, TrkRep *parent) const
TrkBase::Functors::updateMeasurement updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkBase::Functors::setParent setParent (TrkRep *parent) const
TrkBase::Functors::setActive setActive (bool active) const
TrkErrCode updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
void setActivity (TrkHitOnTrk &hot, bool active) const
void setParent (TrkHitOnTrk &hot, TrkRep *parent) const
TrkBase::Functors::updateMeasurement updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkBase::Functors::setParent setParent (TrkRep *parent) const
TrkBase::Functors::setActive setActive (bool active) const
TrkErrCode updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
void setActivity (TrkHitOnTrk &hot, bool active) const
void setParent (TrkHitOnTrk &hot, TrkRep *parent) const
TrkBase::Functors::updateMeasurement updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkBase::Functors::setParent setParent (TrkRep *parent) const
TrkBase::Functors::setActive setActive (bool active) const

Additional Inherited Members

Public Types inherited from TrkFitStatus
typedef std::unary_function< TrkFitStatus, bool > predicate_type
typedef std::unary_function< TrkFitStatus, bool > predicate_type
typedef std::unary_function< TrkFitStatus, bool > predicate_type
Protected Attributes inherited from TrkRep
std::auto_ptr< TrkHotList_hotList

Detailed Description

Constructor & Destructor Documentation

◆ TrkLineRep() [1/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
const TrkHotList * inHots = 0 )

Definition at line 21 of file TrkLineRep.cxx.

23 : TrkSimpleRep( inHots, trk, hypo )
24 , _traj( inPar )
25
26{}
TrkSimpleRep(const TrkHotList *, TrkRecoTrk *, PdtPid::PidType)

Referenced by clone(), cloneNewHypo(), print(), simpTraj(), and TrkLineRep().

◆ TrkLineRep() [2/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
int nAct,
int nSvt,
int nDch,
double chi2,
double startFoundRange,
double endFoundRange )

Definition at line 29 of file TrkLineRep.cxx.

32 : TrkSimpleRep( trk, hypo, nact, nsv, ndc, chi2, stFndRng, endFndRng ), _traj( inPar ) {}

◆ ~TrkLineRep() [1/3]

TrkLineRep::~TrkLineRep ( )
virtual

Definition at line 38 of file TrkLineRep.cxx.

38{}

◆ TrkLineRep() [3/9]

TrkLineRep::TrkLineRep ( const TrkLineRep & right,
TrkRecoTrk * trk,
PdtPid::PidType hypo )
protected

Definition at line 35 of file TrkLineRep.cxx.

36 : TrkSimpleRep( right, trk, hypo ), _traj( right._traj ) {}

◆ TrkLineRep() [4/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
const TrkHotList * = 0 )

◆ TrkLineRep() [5/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
int nAct,
int nSvt,
int nDch,
double chi2,
double startFoundRange,
double endFoundRange )

◆ ~TrkLineRep() [2/3]

virtual TrkLineRep::~TrkLineRep ( )
virtual

◆ TrkLineRep() [6/9]

TrkLineRep::TrkLineRep ( const TrkLineRep & right,
TrkRecoTrk * trk,
PdtPid::PidType  )
protected

◆ TrkLineRep() [7/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
const TrkHotList * = 0 )

◆ TrkLineRep() [8/9]

TrkLineRep::TrkLineRep ( const TrkExchangePar & inPar,
TrkRecoTrk * myTrack,
PdtPid::PidType hypo,
int nAct,
int nSvt,
int nDch,
double chi2,
double startFoundRange,
double endFoundRange )

◆ ~TrkLineRep() [3/3]

virtual TrkLineRep::~TrkLineRep ( )
virtual

◆ TrkLineRep() [9/9]

TrkLineRep::TrkLineRep ( const TrkLineRep & right,
TrkRecoTrk * trk,
PdtPid::PidType  )
protected

Member Function Documentation

◆ arrivalTime() [1/3]

double TrkLineRep::arrivalTime ( double fltLen) const
virtual

Reimplemented from TrkRep.

Definition at line 99 of file TrkLineRep.cxx.

99 {
100 static double cinv = 1. / Constants::c;
101 double m_betainv = -9999.;
102 // Initialize cache
103 if ( m_betainv < 0.0 )
104 {
105 double mass2 = Pdt::lookup( PdtPid::muon )->mass();
106 mass2 = mass2 * mass2;
107 double ptot2 = 100.; // 10GeV;
108 // double ptot2 = momentum(0.).mag2();
109 assert( ptot2 != 0.0 );
110 m_betainv = sqrt( ( ptot2 + mass2 ) / ptot2 );
111 }
112 double tof = fltL * m_betainv * cinv;
113 return trackT0() + tof;
114}
static PdtEntry * lookup(const std::string &name)
Definition Pdt.cxx:183
double trackT0() const
Definition TrkRep.cxx:173

◆ arrivalTime() [2/3]

double TrkLineRep::arrivalTime ( double fltLen) const
virtual

Reimplemented from TrkRep.

◆ arrivalTime() [3/3]

double TrkLineRep::arrivalTime ( double fltLen) const
virtual

Reimplemented from TrkRep.

◆ clone() [1/3]

TrkLineRep * TrkLineRep::clone ( TrkRecoTrk * newTrack) const
virtual

Implements TrkRep.

Definition at line 40 of file TrkLineRep.cxx.

40 {
41 TrkLineRep* newRep = new TrkLineRep( *this, theTrack, this->particleType() );
42 newRep->setValid( fitValid() );
43 newRep->setCurrent( fitCurrent() );
44 return newRep;
45}
void setValid(bool v)
TrkLineRep(const TrkExchangePar &inPar, TrkRecoTrk *myTrack, PdtPid::PidType hypo, const TrkHotList *=0)
virtual PdtPid::PidType particleType() const
Definition TrkRep.cxx:249

◆ clone() [2/3]

virtual TrkLineRep * TrkLineRep::clone ( TrkRecoTrk * newTrack) const
virtual

Implements TrkRep.

◆ clone() [3/3]

virtual TrkLineRep * TrkLineRep::clone ( TrkRecoTrk * newTrack) const
virtual

Implements TrkRep.

◆ cloneNewHypo() [1/3]

TrkLineRep * TrkLineRep::cloneNewHypo ( PdtPid::PidType hypo)
virtual

Implements TrkRep.

Definition at line 47 of file TrkLineRep.cxx.

47 {
48 TrkLineRep* newRep = new TrkLineRep( *this, parentTrack(), hypo );
49 newRep->setValid( fitValid() );
50 newRep->setCurrent( fitCurrent() ); // true for lines, anyway
51 return newRep;
52}

◆ cloneNewHypo() [2/3]

virtual TrkLineRep * TrkLineRep::cloneNewHypo ( PdtPid::PidType hypo)
virtual

Implements TrkRep.

◆ cloneNewHypo() [3/3]

virtual TrkLineRep * TrkLineRep::cloneNewHypo ( PdtPid::PidType hypo)
virtual

Implements TrkRep.

◆ helix() [1/3]

TrkExchangePar TrkLineRep::helix ( double fltLen) const
virtual

Implements TrkFit.

Definition at line 54 of file TrkLineRep.cxx.

54 {
55 TrkExchangePar localPar( _traj.d0(), BesAngle( _traj.phi0() ).rad(), 0.0, _traj.z0(),
56 _traj.tanDip() );
57 const HepSymMatrix& lineCov = _traj.parameters()->covariance();
58 HepSymMatrix& theCov = localPar.covariance();
59 int ex_d0 = TrkExchangePar::ex_d0 + 1;
60 int ex_phi0 = TrkExchangePar::ex_phi0 + 1;
61 int ex_z0 = TrkExchangePar::ex_z0 + 1;
62 int ex_tD = TrkExchangePar::ex_tanDip + 1;
63
64 int ln_d0 = TrkDifLineTraj::d0Ind + 1;
65 int ln_phi0 = TrkDifLineTraj::phi0Ind + 1;
66 int ln_z0 = TrkDifLineTraj::z0Ind + 1;
67 int ln_tD = TrkDifLineTraj::tanDipInd + 1;
68
69 theCov( ex_d0, ex_d0 ) = lineCov( ln_d0, ln_d0 );
70 theCov( ex_phi0, ex_d0 ) = lineCov( ln_phi0, ln_d0 );
71 theCov( ex_phi0, ex_phi0 ) = lineCov( ln_phi0, ln_phi0 );
72 theCov( ex_z0, ex_d0 ) = lineCov( ln_z0, ln_d0 );
73 theCov( ex_z0, ex_phi0 ) = lineCov( ln_z0, ln_phi0 );
74 theCov( ex_z0, ex_z0 ) = lineCov( ln_z0, ln_z0 );
75 theCov( ex_tD, ex_d0 ) = lineCov( ln_tD, ln_d0 );
76 theCov( ex_tD, ex_phi0 ) = lineCov( ln_tD, ln_phi0 );
77 theCov( ex_tD, ex_z0 ) = lineCov( ln_tD, ln_z0 );
78 theCov( ex_tD, ex_tD ) = lineCov( ln_tD, ln_tD );
79
80 return localPar;
81}

◆ helix() [2/3]

virtual TrkExchangePar TrkLineRep::helix ( double fltLen) const
virtual

Implements TrkFit.

◆ helix() [3/3]

virtual TrkExchangePar TrkLineRep::helix ( double fltLen) const
virtual

Implements TrkFit.

◆ print() [1/3]

virtual void TrkLineRep::print ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ print() [2/3]

virtual void TrkLineRep::print ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ print() [3/3]

virtual void TrkLineRep::print ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ printAll() [1/3]

virtual void TrkLineRep::printAll ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ printAll() [2/3]

virtual void TrkLineRep::printAll ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ printAll() [3/3]

virtual void TrkLineRep::printAll ( std::ostream & ostr) const
virtual

Implements TrkAbsFit.

◆ simpTraj() [1/6]

TrkSimpTraj & TrkLineRep::simpTraj ( )
protectedvirtual

Implements TrkSimpleRep.

Definition at line 91 of file TrkLineRep.cxx.

91{ return _traj; }

◆ simpTraj() [2/6]

virtual TrkSimpTraj & TrkLineRep::simpTraj ( )
protectedvirtual

Implements TrkSimpleRep.

◆ simpTraj() [3/6]

virtual TrkSimpTraj & TrkLineRep::simpTraj ( )
protectedvirtual

Implements TrkSimpleRep.

◆ simpTraj() [4/6]

const TrkSimpTraj & TrkLineRep::simpTraj ( ) const
protectedvirtual

Implements TrkSimpleRep.

Definition at line 93 of file TrkLineRep.cxx.

93{ return _traj; }

◆ simpTraj() [5/6]

virtual const TrkSimpTraj & TrkLineRep::simpTraj ( ) const
protectedvirtual

Implements TrkSimpleRep.

◆ simpTraj() [6/6]

virtual const TrkSimpTraj & TrkLineRep::simpTraj ( ) const
protectedvirtual

Implements TrkSimpleRep.

◆ traj() [1/6]

TrkDifTraj & TrkLineRep::traj ( )
virtual

Definition at line 95 of file TrkLineRep.cxx.

95{ return _traj; }

◆ traj() [2/6]

virtual TrkDifTraj & TrkLineRep::traj ( )
virtual

◆ traj() [3/6]

virtual TrkDifTraj & TrkLineRep::traj ( )
virtual

◆ traj() [4/6]

const TrkDifTraj & TrkLineRep::traj ( ) const
virtual

Implements TrkAbsFit.

Definition at line 97 of file TrkLineRep.cxx.

97{ return _traj; }

◆ traj() [5/6]

virtual const TrkDifTraj & TrkLineRep::traj ( ) const
virtual

Implements TrkAbsFit.

◆ traj() [6/6]

virtual const TrkDifTraj & TrkLineRep::traj ( ) const
virtual

Implements TrkAbsFit.


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