BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TCircleFitter.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TCircleFitter.h,v 1.12 2012/05/28 05:16:29 maoh Exp $
3//-----------------------------------------------------------------------------
4// Filename : TCircleFitter.h
5// Section : Tracking
6// Owner : Yoshi Iwasaki
7// Email : [email protected]
8//-----------------------------------------------------------------------------
9// Description : A class to fit a TTrackBase object to a circle.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#ifndef TCIRCLEFITTER_FLAG_
14#define TCIRCLEFITTER_FLAG_
15
16#ifdef TRKRECO_DEBUG_DETAIL
17#ifndef TRKRECO_DEBUG
18#define TRKRECO_DEBUG
19#endif
20#endif
21#define HEP_SHORT_NAMES
22
23#include "TrkReco/TMFitter.h"
24//#include "helix/Helix.h"
25//#include "TrkReco/Helix.h"
26#include "TrackUtil/Helix.h"
27
28class TMLink;
29class TCircle;
30
31/// A class to fit a TTrackBase object to a circle.
32class TCircleFitter : public TMFitter {
33
34 public:
35 /// Constructor.
36 TCircleFitter(const std::string & name);
37
38 /// Destructor
39 virtual ~TCircleFitter();
40
41 public:// Selectors
42 /// dumps debug information.
43 void dump(const std::string & message = std::string(""),
44 const std::string & prefix = std::string("")) const;
45
46 public:// Modifiers
47 virtual int fit(TTrackBase &) const;
48
49 private:
50 mutable double _charge;
51 mutable double _radius;
52 mutable HepPoint3D _center;
53};
54
55//-----------------------------------------------------------------------------
56
57#ifdef TRKRECO_NO_INLINE
58#define inline
59#else
60#undef inline
61#define TCIRCLEFITTER_INLINE_DEFINE_HERE
62#endif
63
64#ifdef TCIRCLEFITTER_INLINE_DEFINE_HERE
65
66#endif
67
68#undef inline
69
70#endif /* TCIRCLEFITTER_FLAG_ */
A class to fit a TTrackBase object to a circle.
Definition: TCircleFitter.h:32
virtual int fit(TTrackBase &) const
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual ~TCircleFitter()
Destructor.
A class to represent a circle in tracking.
Definition: TCircle.h:42
A class to fit a TTrackBase object.
Definition: TMFitter.h:34
const std::string & name(void) const
returns name.
Definition: TMFitter.h:73
A virtual class for a track class in tracking.
Definition: TTrackBase.h:46