#include <TrkCompTrk.h>
|
int | charge () const |
|
double | chisq () const |
|
int | nDof () const |
|
const TrkDifTraj & | traj () const |
|
const BField & | bField () const |
|
HepPoint3D | position (double fltL) const |
|
Hep3Vector | direction (double fltL) const |
|
Hep3Vector | momentum (double fltL=0.) const |
|
double | pt (double fltL=0.) const |
|
BesPointErr | positionErr (double fltL) const |
|
BesVectorErr | directionErr (double fltL) const |
|
BesVectorErr | momentumErr (double fltL) const |
|
double | startValidRange () const |
|
double | endValidRange () 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 void | print (std::ostream &) const |
|
virtual void | printAll (std::ostream &) const |
|
| TrkCompTrk (const BesPointErr &pos, const BesVectorErr &mom, const HepMatrix &xpCov, int charge, double chisq, int nDoF, const BField *bf) |
|
| TrkCompTrk (const TrkCompTrk &right) |
|
virtual | ~TrkCompTrk () |
|
const TrkCompTrk & | operator= (const TrkCompTrk &right) |
|
Definition at line 24 of file TrkCompTrk.h.
◆ TrkCompTrk() [1/2]
TrkCompTrk::TrkCompTrk |
( |
const BesPointErr & | pos, |
|
|
const BesVectorErr & | mom, |
|
|
const HepMatrix & | xpCov, |
|
|
int | charge, |
|
|
double | chisq, |
|
|
int | nDoF, |
|
|
const BField * | bf ) |
Definition at line 28 of file TrkCompTrk.cxx.
31 :
33
34 _bf = bf;
36 if(_charge!=0) {
39 }
40 else {
42 }
43}
const BField & bField() const
const HepVector & params() const
const HepSymMatrix & covariance() const
static NeutParams lineFromMomErr(const BesPointErr &vertex, const BesVectorErr &p, const HepMatrix &cxp, double sign, const BField &)
static TrkExchangePar helixFromMomErr(const BesPointErr &vertex, const BesVectorErr &p, const HepMatrix &cxp, double sign, const BField &)
◆ TrkCompTrk() [2/2]
TrkCompTrk::TrkCompTrk |
( |
const TrkCompTrk & | right | ) |
|
Definition at line 47 of file TrkCompTrk.cxx.
47 : _bf(rhs._bf),_chisq(rhs._chisq),_nDof(rhs._nDof) {
48
50 _charge=rhs.charge();
51}
◆ ~TrkCompTrk()
TrkCompTrk::~TrkCompTrk |
( |
| ) |
|
|
virtual |
◆ bField()
const BField & TrkCompTrk::bField |
( |
| ) |
const |
|
inline |
◆ charge()
int TrkCompTrk::charge |
( |
| ) |
const |
|
virtual |
◆ chisq()
double TrkCompTrk::chisq |
( |
| ) |
const |
|
virtual |
◆ direction()
Hep3Vector TrkCompTrk::direction |
( |
double | fltL | ) |
const |
|
virtual |
Implements TrkAbsFit.
Definition at line 111 of file TrkCompTrk.cxx.
111 {
112
114}
virtual Hep3Vector direction(double) const =0
const TrkDifTraj & traj() const
◆ directionErr()
Implements TrkAbsFit.
Definition at line 138 of file TrkCompTrk.cxx.
139{
140
146 symErr.assign(err);
149}
HepSymMatrix & covariance()
const DifIndepPar * indepPar() const
HepSymMatrix errorMatrix(const HepSymMatrix &e) const
virtual void getDFInfo2(double fltLen, DifPoint &pos, DifVector &direction) const
◆ endValidRange()
double TrkCompTrk::endValidRange |
( |
| ) |
const |
|
virtual |
◆ getAllCovs()
void TrkCompTrk::getAllCovs |
( |
double | fltL, |
|
|
HepSymMatrix & | xxCov, |
|
|
HepSymMatrix & | ppCov, |
|
|
HepMatrix & | xpCov ) const |
|
virtual |
Implements TrkAbsFit.
Definition at line 215 of file TrkCompTrk.cxx.
219{
222 xxCov,ppCov,xpCov);
223}
static void getAllCovs(const TrkSimpTraj &, const BField &, double fltlen, HepSymMatrix &xxCov, HepSymMatrix &ppCov, HepMatrix &xpCov)
◆ getAllWeights() [1/2]
void TrkCompTrk::getAllWeights |
( |
const HepPoint3D & | pt, |
|
|
HepVector & | pos, |
|
|
HepVector & | mom, |
|
|
HepSymMatrix & | xxWeight, |
|
|
HepSymMatrix & | ppWeight, |
|
|
HepMatrix & | xpWeight ) const |
|
virtual |
Definition at line 239 of file TrkCompTrk.cxx.
245{
246 double fltL=0;
248 fltL = poca.flt1();
250}
double pt(double fltL=0.) const
virtual void getAllWeights(double fltL, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight) const
◆ getAllWeights() [2/2]
void TrkCompTrk::getAllWeights |
( |
double | fltL, |
|
|
HepVector & | pos, |
|
|
HepVector & | mom, |
|
|
HepSymMatrix & | xxWeight, |
|
|
HepSymMatrix & | ppWeight, |
|
|
HepMatrix & | xpWeight ) const |
|
virtual |
Implements TrkAbsFit.
Definition at line 225 of file TrkCompTrk.cxx.
231{
234 pos,mom,xxWeight,ppWeight,xpWeight);
235
236}
static void getAllWeights(const TrkSimpTraj &, const BField &, double fltlen, HepVector &pos, HepVector &mom, HepSymMatrix &xxWeight, HepSymMatrix &ppWeight, HepMatrix &xpWeight)
Referenced by getAllWeights().
◆ momentum()
Hep3Vector TrkCompTrk::momentum |
( |
double | fltL = 0. | ) |
const |
|
virtual |
Implements TrkAbsFit.
Definition at line 117 of file TrkCompTrk.cxx.
118{
120
121}
static Hep3Vector vecMom(const TrkSimpTraj &, const BField &, double fltlen)
◆ momentumErr()
Implements TrkAbsFit.
Definition at line 152 of file TrkCompTrk.cxx.
153{
155}
static BesVectorErr errMom(const TrkSimpTraj &, const BField &, double fltlen)
◆ nDof()
int TrkCompTrk::nDof |
( |
| ) |
const |
|
virtual |
◆ operator=()
Definition at line 60 of file TrkCompTrk.cxx.
60 {
61
62 if (&right == this) return *this;
63 _bf = right._bf;
68 return *this;
69}
virtual Trajectory * clone() const =0
◆ position()
HepPoint3D TrkCompTrk::position |
( |
double | fltL | ) |
const |
|
virtual |
◆ positionErr()
BesPointErr TrkCompTrk::positionErr |
( |
double | fltL | ) |
const |
|
virtual |
◆ posmomCov()
HepMatrix TrkCompTrk::posmomCov |
( |
double | fltL | ) |
const |
|
virtual |
Implements TrkAbsFit.
Definition at line 209 of file TrkCompTrk.cxx.
210{
213}
static HepMatrix posmomCov(const TrkSimpTraj &, const BField &, double fltlen)
◆ print()
void TrkCompTrk::print |
( |
std::ostream & | | ) |
const |
|
virtual |
Implements TrkAbsFit.
Definition at line 180 of file TrkCompTrk.cxx.
181{
182 ostr << "Traj: ";
183 if(_charge==-1 || _charge==1) {
184 ostr << "Charged Particle -> Helix Trajectory" << endl;
187 ostr <<
" d0=" << theTraj.
d0() << endl;
188 ostr <<
" z0=" << theTraj.
z0() << endl;
189 ostr <<
" omega=" << theTraj.
omega() << endl;
190 ostr <<
" tanDip=" << theTraj.
tanDip() << endl;
191 }
192 else {
193 ostr << "Neutral Particle -> NeutTraj" << endl;
196 ostr <<
" d0=" << theTraj.
params().
d0() << endl;
197 ostr <<
" z0=" << theTraj.
params().
z0() << endl;
198 ostr <<
" p=" << theTraj.
params().
p() << endl;
199 ostr <<
" tanDip=" << theTraj.
params().
tanDip() << endl;
200 }
201}
Referenced by printAll().
◆ printAll()
void TrkCompTrk::printAll |
( |
std::ostream & | | ) |
const |
|
virtual |
◆ pt()
double TrkCompTrk::pt |
( |
double | fltL = 0. | ) |
const |
|
virtual |
◆ startValidRange()
double TrkCompTrk::startValidRange |
( |
| ) |
const |
|
virtual |
◆ traj()
The documentation for this class was generated from the following files: