BOSS
7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: TrkPocaBase.h,v 1.2 2006/03/28 01:02:36 zhangy Exp $
4
//
5
// Description:
6
// Base class for various Poca classes; holds infrastructure, and one
7
// common algorithm. Ctor and dtor protected, to prevent instantiation.
8
//
9
// Environment:
10
// Software developed for the BaBar Detector at the SLAC B-Factory.
11
//
12
// Author(s): Steve Schaffner
13
//------------------------------------------------------------------------
14
#ifndef TRKPOCABASE_H
15
#define TRKPOCABASE_H
16
17
#include "TrkBase/TrkErrCode.h"
18
#include "CLHEP/Geometry/Point3D.h"
19
#ifndef ENABLE_BACKWARDS_COMPATIBILITY
20
typedef
HepGeom::Point3D<double>
HepPoint3D
;
21
#endif
22
class
Trajectory
;
23
24
// Class interface
25
class
TrkPocaBase
{
26
27
protected
:
28
TrkPocaBase
(
double
flt1
,
double
flt2
,
double
precision
);
29
TrkPocaBase
(
double
flt1
,
double
precision
);
30
virtual
~TrkPocaBase
();
31
32
public
:
33
inline
const
TrkErrCode
&
status
()
const
;
// did the calculation succeed?
34
inline
double
flt1
()
const
;
// path length on traj 1 @ poca
35
inline
double
flt2
()
const
;
36
inline
double
precision
();
// In case anyone wants to know
37
38
protected
:
39
double
_precision
;
40
double
_flt1
;
41
double
_flt2
;
42
TrkErrCode
_status
;
43
44
void
minimize
(
const
Trajectory
& traj1,
double
f1
,
45
const
Trajectory
& traj2,
double
f2);
46
void
minimize
(
const
Trajectory
& traj1,
double
f1
,
47
const
HepPoint3D
& pt);
48
49
void
stepTowardPoca
(
const
Trajectory
& traj1,
const
Trajectory
& traj2);
50
void
stepToPointPoca
(
const
Trajectory
& traj,
const
HepPoint3D
& pt);
51
52
static
double
_maxDist
;
// step > maxDist => parallel
53
static
int
_maxTry
;
54
static
double
_extrapToler
;
// error allowed in picking step size
55
};
56
57
// Inlined functions
58
double
59
TrkPocaBase::precision
() {
return
_precision
;}
60
61
const
TrkErrCode
&
62
TrkPocaBase::status
()
const
{
return
_status
;}
63
64
double
65
TrkPocaBase::flt1
()
const
{
return
_flt1
;}
66
67
double
68
TrkPocaBase::flt2
()
const
{
return
_flt2
;}
69
70
#endif
f1
TFile * f1
Definition:
DataBase/tau_mode.c:4
HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:20
HepGeom::Point3D
Definition:
InstallArea/include/MagneticField/MagneticField/IMagneticFieldSvc.h:15
Trajectory
Definition:
InstallArea/include/MdcGeom/MdcGeom/Trajectory.h:35
TrkErrCode
Definition:
InstallArea/include/TrkBase/TrkBase/TrkErrCode.h:48
TrkPocaBase
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:25
TrkPocaBase::_status
TrkErrCode _status
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:42
TrkPocaBase::stepToPointPoca
void stepToPointPoca(const Trajectory &traj, const HepPoint3D &pt)
Definition:
TrkPocaBase.cxx:250
TrkPocaBase::_precision
double _precision
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:39
TrkPocaBase::status
const TrkErrCode & status() const
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:62
TrkPocaBase::precision
double precision()
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:59
TrkPocaBase::minimize
void minimize(const Trajectory &traj1, double f1, const Trajectory &traj2, double f2)
Definition:
TrkPocaBase.cxx:32
TrkPocaBase::flt2
double flt2() const
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:68
TrkPocaBase::_extrapToler
static double _extrapToler
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:54
TrkPocaBase::~TrkPocaBase
virtual ~TrkPocaBase()
Definition:
TrkPocaBase.cxx:171
TrkPocaBase::stepTowardPoca
void stepTowardPoca(const Trajectory &traj1, const Trajectory &traj2)
Definition:
TrkPocaBase.cxx:176
TrkPocaBase::_flt2
double _flt2
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:41
TrkPocaBase::_maxDist
static double _maxDist
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:52
TrkPocaBase::_maxTry
static int _maxTry
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:53
TrkPocaBase::flt1
double flt1() const
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:65
TrkPocaBase::_flt1
double _flt1
Definition:
InstallArea/include/TrkBase/TrkBase/TrkPocaBase.h:40
source
InstallArea
include
TrkBase
TrkBase
TrkPocaBase.h
Generated by
1.9.6