10 #include <phgenfit/Fitter.h>
11 #include <phgenfit/PlanarMeasurement.h>
12 #include <phgenfit/Track.h>
13 #include <phgenfit/SpacepointMeasurement.h>
15 #include <GenFit/RKTrackRep.h>
19 #include <phgeom/PHGeomUtility.h>
20 #include <phfield/PHFieldUtility.h>
30 #include <g4hough/SvtxVertexMap.h>
31 #include <g4hough/SvtxVertex.h>
32 #include <g4hough/SvtxTrackMap.h>
33 #include <g4hough/SvtxTrack.h>
34 #include <g4hough/SvtxTrack_FastSim.h>
35 #include <g4hough/SvtxClusterMap.h>
36 #include <g4hough/SvtxCluster.h>
37 #include <g4hough/SvtxHitMap.h>
38 #include <g4hough/SvtxHit.h>
50 #include <TDatabasePDG.h>
55 #define LogDebug(exp) std::cout<<"DEBUG: " <<__FILE__<<": "<<__LINE__<<": "<< exp <<"\n"
56 #define LogError(exp) std::cout<<"ERROR: " <<__FILE__<<": "<<__LINE__<<": "<< exp <<"\n"
57 #define LogWarning(exp) std::cout<<"WARNING: " <<__FILE__<<": "<<__LINE__<<": "<< exp <<"\n"
65 _track_fitting_alg_name(
"DafRef"),
66 _do_evt_display(
false),
68 _pid_guess(pid_guess),
70 _outfile_name(
"GenFitTrackProp.root"),
71 _eval_tree_tracks( NULL)
182 LogError(
"_truth_container not found!");
216 if(!trackstate)
continue;
226 auto pdg = unique_ptr<TDatabasePDG> (TDatabasePDG::Instance());
229 if(reco_charge*gues_charge<0)
_pid_guess *= -1;
236 trackstate->
get_z());
238 TVector3 mom(trackstate->
get_px(), trackstate->
get_py(),
241 for (
int i = 0;
i < 6; ++
i) {
242 for (
int j = 0;
j < 6; ++
j) {
254 TVector3 line_point(0,0,0);
255 TVector3 line_direction(0,0,1);
262 TVector3 tof_hit_pos(msop85->
getPos());
263 TVector3 tof_hit_norm(msop85->
getPos().X(),msop85->
getPos().Y(),0);
273 if(!g4particle)
continue;
323 cout <<
PHWHERE <<
" PHG4TruthInfoContainer node not found on node tree"
328 _trackmap = findNode::getClass<SvtxTrackMap>(topNode,
331 cout <<
PHWHERE <<
"SvtxTrackMap node not found on node tree"