A class to fit a TTrackBase object to a circle.
More...
#include <TCircleFitter.h>
|
| TCircleFitter (const std::string &name) |
| Constructor.
|
|
virtual | ~TCircleFitter () |
| Destructor.
|
|
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
| dumps debug information.
|
|
virtual int | fit (TTrackBase &) const |
|
| TMFitter (const std::string &name) |
| Constructor.
|
|
virtual | ~TMFitter () |
| Destructor.
|
|
const std::string & | name (void) const |
| returns name.
|
|
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
|
A class to fit a TTrackBase object to a circle.
Definition at line 32 of file TCircleFitter.h.
◆ TCircleFitter()
TCircleFitter::TCircleFitter |
( |
const std::string & | name | ) |
|
Constructor.
Definition at line 21 of file TCircleFitter.cxx.
23}
HepGeom::Point3D< double > HepPoint3D
const std::string & name(void) const
returns name.
TMFitter(const std::string &name)
Constructor.
◆ ~TCircleFitter()
TCircleFitter::~TCircleFitter |
( |
| ) |
|
|
virtual |
◆ dump()
void TCircleFitter::dump |
( |
const std::string & | message = std::string(""), |
|
|
const std::string & | prefix = std::string("") ) const |
◆ fit()
Implements TMFitter.
Definition at line 29 of file TCircleFitter.cxx.
29 {
30
31#ifdef TRKRECO_DEBUG_DETAIL
32 std::cout << " TCircleFitter::fit ..." << std::endl;
33#endif
34
35
37
38
40
41
42 Lpav circle;
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 unsigned n =
t.links().length();
66
67 for (
unsigned i = 0; i <
n; i++) {
68 TMLink * l =
t.links()[i];
69 const TMDCWireHit * h = l->
hit();
70
71
77 else
79
80
81
82
83
84
85
86
88
89
90
91
92
93
94
95
96 }
97
99
100
101
105 _radius = circle.
radius();
106
107
108 int qSum = 0;
109 for (
unsigned i = 0; i <
n; i++) {
110 TMLink * l =
t.links()[i];
111 if (l == 0) continue;
112
113 const TMDCWireHit * h = l->
hit();
114 if (h == 0) continue;
115
117 if (
q > 0.) qSum += 1;
118 else qSum -= 1;
119 }
120 if (qSum >= 0) _charge = +1.;
121 else _charge = -1.;
122 _radius *= _charge;
123
125 ((TCircle &)
t).property(_charge, _radius, _center);
127 return 0;
128}
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
#define WireHitPatternLeft
#define WireHitPatternRight
#define TFitAlreadyFitted
void add_point(double x, double y, double w=1)
HepPoint3D position(unsigned) const
returns left position. z is always zero.
unsigned state(void) const
returns state.
const HepPoint3D & xyPosition(void) const
returns drift time
void fitDone(TTrackBase &) const
sets the fitted flag. (Bad implementation)
const TMDCWireHit * hit(void) const
returns a pointer to a hit.
The documentation for this class was generated from the following files: