12 #include <TMatrixDSym.h>
15 #include <GenFit/AbsTrackRep.h>
16 #include <GenFit/RKTrackRep.h>
17 #include <GenFit/StateOnPlane.h>
20 #include <phgenfit/Fitter.h>
21 #include <phgenfit/Track.h>
22 #include <phgenfit/Measurement.h>
23 #include <phgenfit/PlanarMeasurement.h>
24 #include <phgenfit/SpacepointMeasurement.h>
26 #include <phfield/PHFieldUtility.h>
28 #define LogDEBUG std::cout<<"DEBUG: "<<__LINE__<<"\n"
30 void get_seed(TVector3& seed_pos, TVector3& seed_mom, TMatrixDSym& seed_cov)
32 seed_pos.SetXYZ(0,0,0);
33 seed_mom.SetXYZ(10,-5,0);
34 seed_cov.ResizeTo(6,6);
39 std::vector<TVector3> v_pos;
40 v_pos.push_back(TVector3(2.22459,-1.54767,-2.37792));
41 v_pos.push_back(TVector3(3.80050,-2.64444,-2.16561));
42 v_pos.push_back(TVector3(7.80344,-5.41815,-1.98928));
43 v_pos.push_back(TVector3(8.63214,-5.97797,-1.59626));
47 int main(
int argc,
char**argv) {
52 "KalmanFitter",
"RKTrackRep",
false);
62 get_seed(seed_pos,seed_mom, seed_cov);
67 double res_phi = 0.005;
69 std::vector<PHGenFit::Measurement*> measurements;
70 for (
unsigned int imeasurement = 0; imeasurement < v_pos.size(); imeasurement++) {
71 TVector3
pos = v_pos[imeasurement];
72 TVector3
n(pos.x(),pos.Y(),0);
75 meas->getMeasurement()->Print();
76 measurements.push_back(meas);