9 #include <phgeom/PHGeomUtility.h>
11 #include <g4hough/SvtxTrack.h>
12 #include <g4hough/SvtxTrackState_v1.h>
13 #include <g4hough/PHG4HoughTransform.h>
15 #include <phfield/PHFieldUtility.h>
17 #include <phgenfit/Fitter.h>
18 #include <phgenfit/PlanarMeasurement.h>
19 #include <phgenfit/Track.h>
20 #include <phgenfit/SpacepointMeasurement.h>
22 #include <GenFit/RKTrackRep.h>
23 #include <GenFit/FieldManager.h>
41 cerr <<
"No fitter found at: " << endl;
60 arr_pos[0] =
state->get_x();
61 arr_pos[1] =
state->get_y();
62 arr_pos[2] =
state->get_z();
83 arr_mom[0] =
state->get_px();
84 arr_mom[1] =
state->get_py();
85 arr_mom[2] =
state->get_pz();
96 std::vector<double>
point;
97 point.assign(3, -9999.);
104 cout <<
"No state found here!" << endl;
108 int _pid_guess = -211;
111 unique_ptr<genfit::MeasuredStateOnPlane> msop80 =
nullptr;
118 for (
int i = 0;
i < 6; ++
i) {
119 for (
int j = 0;
j < 6; ++
j) {
134 rep->extrapolateToSphere(*msop80, surface_par, TVector3(0,0,0),
false,
false);
137 rep->extrapolateToCylinder(*msop80, surface_par, TVector3(0,0,0), TVector3(0,0,1));
144 cout <<
"track extrapolateToXX failed" << endl;
160 for (
int i = 0;
i < 6;
i++) {
161 for (
int j =
i;
j < 6;
j++) {
172 double eta = atanh( momv[2] );
175 if (eta > 1.45 && eta < 7.5)