13#define TRGCDC_SHORT_NAMES
15#include "trg/trg/Constants.h"
16#include "trg/trg/Point2D.h"
17#include "trg/cdc/Wire.h"
18#include "trg/cdc/Link.h"
19#include "trg/cdc/Circle.h"
20#include "trg/cdc/CircleFitter.h"
21#include "trg/cdc/HoughPlane.h"
31 const TRGCDCCircleFitter
34 TRGCDCCircle::TRGCDCCircle(
const std::vector<TRGCDCLink*>& links)
35 : TCTBase(
"UnknownCircle", 0),
44 TRGCDCCircle::TRGCDCCircle(
double r,
48 : TCTBase(
"unknown", charge),
49 _center(r * cos(phi), r * sin(phi)),
68 if (cmd.find(
"detail") != string::npos)
81 l.positionOnTrack(xv);
TRGPoint2D _center
Position of the circle center.
double _radius
Radius multiplied by charge.
const TRGCDCHoughPlane * _plane
Hough plane.
A class to represent a Hough parameter plane.
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
double y(void) const
y of the point
int approach2D(TRGCDCLink &) const override
calculate closest approach. Error was happened if return value is not zero.
static const TRGCDCCircleFitter _fitter
Default fitter.
virtual ~TRGCDCCircle()
Destructor.
const TRGCDCFitter * fitter(void) const
returns a pointer to a default fitter.
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override
dumps debug information.
double x(void) const
x of the point
std::string name(void) const
returns name.
const std::vector< TRGCDCLink * > & links(void) const
returns a vector to track segments.
const HepGeom::Point3D< double > ORIGIN
Origin 3D point.
void append(TRGCDCLink *)
appends a link.
Abstract base class for different kinds of events.