32 #include "TClonesArray.h"
45 #include "TLorentzVector.h"
51 #include "RKTrackRep.h"
60 fMvdBranchName(
""), fCentralTrackerBranchName(
""),
61 fUseGeane(kTRUE), fPropagateToIP(kTRUE), fPerpPlane(kFALSE), fNumIt(1), fVerbose(0), fTrackRep(0)
72 Error(
"PndRecoDafFit::Init",
"RootManager not instantiated!");
89 Error(
"PndRecoDafFit::Init",
"Only GEANE Propagatio available!!!");
96 std::cout <<
"===PndRecoDafFit::Init() finished ===================================================" << std::endl;
107 if (
fVerbose>0) std::cout<<
"PndRecoDafFit::Fit"<<std::endl;
134 Bool_t rc = fPro0->
Propagate(helix, fRes, PDGCode);
137 StartPos.SetXYZ(fRes->
GetX(), fRes->
GetY(), fRes->
GetZ());
144 TVector3 plane_v1, plane_v2;
147 plane_v1 = StartMom.Orthogonal();
148 plane_v2 = StartPos.Cross(plane_v1);
152 plane_v1.SetXYZ(1.,0.,0.);
153 plane_v2.SetXYZ(0.,1.,0.);
155 GFDetPlane start_pl(StartPos, plane_v1, plane_v2);
161 StartPosErr,StartMomErr,
169 StartPosErr, StartMomErr,
175 std::cout <<
"*** PndRecoDafFit::Exec" <<
"\t" <<
"Not existing Track Representation " <<
fTrackRep << std::endl;
192 std::cout <<
"*** PndRecoDafFit::Exec" <<
"\t" <<
"Genfit Exception: trk->addHitVector " << e.
what() << std::endl;
202 std::cout<<
"*** FITTER EXCEPTION ***"<<std::endl;
203 std::cout<<e.
what()<<std::endl;
206 if (
fVerbose>0) std::cout<<
"SUCCESSFULL FIT!"<<std::endl;
214 std::cout<<
"*** PndGenfitAdapters EXCEPTION ***"<<std::endl;
215 std::cout<<e.
what()<<std::endl;
220 if (
fVerbose>0) std::cout<<
"Fitting done"<<std::endl;