8 #include <GenFit/RKTrackRep.h>
9 #include <GenFit/AbsTrackRep.h>
10 #include <GenFit/Exception.h>
11 #include <GenFit/MeasuredStateOnPlane.h>
21 #define LogDebug(exp) std::cout << "DEBUG: " << __FILE__ << ": " << __LINE__ << ": " << exp << std::endl
22 #define LogError(exp) std::cout << "ERROR: " << __FILE__ << ": " << __LINE__ << ": " << exp << std::endl
23 #define LogWarning(exp) std::cout << "WARNING: " << __FILE__ << ": " << __LINE__ << ": " << exp << std::endl
30 genfit::MeasuredStateOnPlane* state,
31 double radius, TVector3 line_point, TVector3 line_direction,
32 const int pdg_code,
const int direction,
35 assert(direction == 1 or direction == -1);
39 double pathlenth = std::numeric_limits<double>::quiet_NaN();
41 genfit::AbsTrackRep* rep =
new genfit::RKTrackRep(pdg_code);
48 pathlenth = rep->extrapolateToCylinder(*state, radius, line_point, line_direction);
50 catch (genfit::Exception&
e)
55 std::cerr << e.what();