9#include "trg/trg/Signal.h"
10#include "trg/cdc/TRGCDCTrack.h"
11#include "trg/cdc/Helix.h"
12#include "trg/ecl/dataobjects/TRGECLCluster.h"
13#include "trg/grl/TRGGRLMatch.h"
60 double theta0 = acos(
_R / (2 *
_r)) +
_phi;
61 double theta1 = 2 *
_phi - theta0;
63 double ex_x0 =
_R * cos(theta0), ex_y0 =
_R * sin(theta0), ex_x1 =
_R * cos(theta1), ex_y1 =
_R * sin(theta1);
67 _dr = (dr0 < dr1) ? dr0 : dr1;
68 _ex_x = (dr0 < dr1) ? ex_x0 : ex_x1;
69 _ex_y = (dr0 < dr1) ? ex_y0 : ex_y1;
90 cout <<
"double center_x = " <<
_center_x <<
";" << endl;
91 cout <<
"double center_y = " <<
_center_y <<
";" << endl;
92 cout <<
"double center_z = " <<
_center_z <<
";" << endl;
93 cout <<
"double radius = " <<
_r <<
";" << endl;
94 cout <<
"double pt = " <<
_pt <<
";" << endl;
95 cout <<
"double p = " <<
_p <<
";" << endl;
96 cout <<
"double cluster_x = " <<
_cluster_x <<
";" << endl;
97 cout <<
"double cluster_y = " <<
_cluster_y <<
";" << endl;
98 cout <<
"double cluster_z = " <<
_cluster_z <<
";" << endl;
99 cout <<
"double ex_x = " <<
_ex_x <<
";" << endl;
100 cout <<
"double ex_y = " <<
_ex_y <<
";" << endl;
101 cout <<
"double ex_z = " <<
_ex_z <<
";" << endl;
TRGCDCHelix parameter class.
A class to represent a reconstructed charged track in TRGCDC.
double getPositionZ() const
Get Energy weighted position Z.
double getEnergyDep() const
The method to get deposited energy.
double getPositionX() const
The method to get hit average time Get Energy weighted position X.
double getPositionY() const
Get Energy weighted position Y.
double _phi
phi of the track center
int _match3D
flag tells 3D information is valid or not
double _cluster_y
y position of cluster
double _center_y
center (y) of track helix
double _cluster_z
z position of cluster
TRGECLCluster * _cluster
a pointer to the TRGECLCluster of the matching candidate
double _slope
z slope (polar angle) of track
double _cluster_e
deposit energy of cluster
double _cluster_x
x position of cluster
double _re_scaled_p
track momentum scaled with 3D information from cluster
double _D
distance of clusterto IP
double _ex_y
y position of the cluster calculated by matching
double _center_x
center (x) of track helix
double _dr
dr between track and cluster
double _center_z
center (z) of track helix
double _ex_z
z position of the cluster calculated by matching
double _poe
calculated p over e
double _R
transverse distance of cluster to IP
TRGCDCTrack * _track
a pointer to the TRGCDCTrack of the matching candidate
double _dz
dz between track and cluster
double _ex_x
x position of the cluster calculated by matching
double sqrt(double a)
sqrt for double
const TRGCDCHelix & helix(void) const
returns helix parameter.
void calculate(void)
a function to execute calculation of matching
const HepGeom::Point3D< double > & center(void) const
returns position of helix center(z = 0.);
double tanl(void) const
returns tanl.
virtual ~TRGGRLMatch()
Destructor.
double dz(void) const
returns dz.
virtual double pt(void) const override
returns Pt.
void dump(void)
Unpacker of the TRGGRLMatch.
TRGGRLMatch(TRGCDCTrack *track, TRGECLCluster *cluster, int flag)
public member functions of TRGGRLMatch class Private variables can be called by the corresponding get...
Abstract base class for different kinds of events.