24
SciFiHelicalPRTrack::SciFiHelicalPRTrack() : _phi(0), _spoints(0) {
33
_line_sz_chisq = -1.0;
24
SciFiHelicalPRTrack::SciFiHelicalPRTrack() : _tracker(-1),
38
_pos0(-1.0, -1.0, -1.0),
40
_spoints = new TRefArray();
45
SciFiHelicalPRTrack::SciFiHelicalPRTrack(int tracker, int num_points, int charge, double x0,
46
double y0, double z0, double phi0, double psi0,
47
double dsdz, double R, double chisq) {
43
SciFiHelicalPRTrack::SciFiHelicalPRTrack(int tracker, int num_points, int charge, ThreeVector pos0,
44
double phi0, SimpleCircle circle, SimpleLine line_sz,
45
double chisq, double chisq_dof, double point_spread,
46
DoubleArray phi, SciFiSpacePointPArray spoints) {
48
_num_points = num_points;
56
_num_points = num_points;
61
SciFiHelicalPRTrack::SciFiHelicalPRTrack(int tracker, int num_points, int charge, ThreeVector pos0,
62
double phi0, double psi0, SimpleCircle circle,
65
_num_points = num_points;
71
52
_dsdz = line_sz.get_m();
72
53
_line_sz_c = line_sz.get_c();
73
54
_line_sz_chisq = line_sz.get_chisq();
74
55
_circle_x0 = circle.get_x0();
75
56
_circle_y0 = circle.get_y0();
76
57
_circle_chisq = circle.get_chisq();
81
SciFiHelicalPRTrack::SciFiHelicalPRTrack(int tracker, int num_points, int charge, ThreeVector pos0,
82
SimpleHelix helix) : _phi(0), _spoints(0) {
84
_num_points = num_points;
90
_phi0 = helix.get_Phi_0();
91
_dsdz = helix.get_dsdz();
92
_chisq = helix.get_chisq();
93
_chisq_dof = helix.get_chisq_dof(); // already reduced chisq
96
_line_sz_chisq = -1.0;
59
_chisq_dof = chisq_dof;
60
_point_spread = point_spread;
62
_spoints = new TRefArray();
63
for (std::vector<SciFiSpacePoint*>::iterator sp = spoints.begin(); sp != spoints.end(); ++sp) {
103
SciFiHelicalPRTrack::~SciFiHelicalPRTrack() {}
70
SciFiHelicalPRTrack::~SciFiHelicalPRTrack() {
105
74
// Assignment operator
106
SciFiHelicalPRTrack &SciFiHelicalPRTrack::operator=(const SciFiHelicalPRTrack &_htrk) {
107
if (this == &_htrk) {
75
SciFiHelicalPRTrack &SciFiHelicalPRTrack::operator=(const SciFiHelicalPRTrack &htrk) {
110
_x0 = _htrk.get_x0();
111
_y0 = _htrk.get_y0();
112
_z0 = _htrk.get_z0();
114
_phi0 = _htrk.get_phi0();
115
_psi0 = _htrk.get_psi0();
116
_dsdz = _htrk.get_dsdz();
117
_line_sz_c = _htrk.get_line_sz_c();
118
_line_sz_chisq = _htrk.get_line_sz_chisq();
119
_circle_chisq = _htrk.get_circle_chisq();
120
_circle_x0 = _htrk.get_circle_x0();
121
_circle_y0 = _htrk.get_circle_y0();
122
_chisq = _htrk.get_chisq();
123
_chisq_dof = _htrk.get_chisq_dof();
124
_num_points = _htrk.get_num_points();
125
_charge = _htrk.get_charge();
126
_tracker = _htrk.get_tracker();
127
_spoints = _htrk.get_spacepoints();
128
_phi = _htrk.get_phi();
80
_phi0 = htrk.get_phi0();
81
_dsdz = htrk.get_dsdz();
82
_line_sz_c = htrk.get_line_sz_c();
83
_line_sz_chisq = htrk.get_line_sz_chisq();
84
_circle_chisq = htrk.get_circle_chisq();
85
_circle_x0 = htrk.get_circle_x0();
86
_circle_y0 = htrk.get_circle_y0();
87
_chisq = htrk.get_chisq();
88
_chisq_dof = htrk.get_chisq_dof();
89
_num_points = htrk.get_num_points();
90
_charge = htrk.get_charge();
91
_tracker = htrk.get_tracker();
92
_point_spread = htrk.get_point_spread();
93
_pos0 = htrk.get_pos0();
94
if (_spoints) delete _spoints;
95
_spoints = new TRefArray(*(htrk.get_spacepoints()));
96
_phi = htrk.get_phi();
132
SciFiHelicalPRTrack::SciFiHelicalPRTrack(const SciFiHelicalPRTrack &_htrk)
133
: _tracker(-1), _num_points(-1), _charge(0), _x0(-1.0), _y0(-1.0), _z0(-1.0),
134
_R(-1.0), _phi0(-1.0), _psi0(-1.0), _dsdz(-1.0), _line_sz_c(-1.0), _line_sz_chisq(-1.0),
135
_circle_x0(-1.0), _circle_y0(-1.0), _circle_chisq(-1.0), _chisq(-1.0), _phi(0), _spoints(0) {
100
SciFiHelicalPRTrack::SciFiHelicalPRTrack(const SciFiHelicalPRTrack &htrk)
101
: _tracker(htrk.get_tracker()),
102
_num_points(htrk.get_num_points()),
103
_charge(htrk.get_charge()),
105
_phi0(htrk.get_phi0()),
106
_dsdz(htrk.get_dsdz()),
107
_line_sz_c(htrk.get_line_sz_c()),
108
_line_sz_chisq(htrk.get_line_sz_chisq()),
109
_circle_x0(htrk.get_circle_x0()),
110
_circle_y0(htrk.get_circle_y0()),
111
_circle_chisq(htrk.get_circle_chisq()),
112
_chisq(htrk.get_chisq()),
113
_chisq_dof(htrk.get_chisq_dof()),
114
_point_spread(htrk.get_point_spread()),
115
_pos0(htrk.get_pos0()),
116
_phi(htrk.get_phi()) {
118
// Shallow copy the SpacePoints
119
_spoints = new TRefArray(*(htrk.get_spacepoints()));
139
123
} // ~namespace MAUS