30 #ifndef GFRAVECONVERTERS_H
31 #define GFRAVECONVERTERS_H
33 #include "AbsTrackRep.h"
36 #include "GFRaveVertex.h"
37 #include "GFRaveVertexFactory.h"
39 #include <rave/Track.h>
40 #include <rave/Plane.h>
41 #include <rave/Vertex.h>
45 #include <TMatrixDSym.h>
64 std::vector < rave::Track >
GFTracksToTracks(
const std::vector < genfit::Track* > & GFTracks,
65 std::vector < genfit::MeasuredStateOnPlane* > * GFStates,
66 std::map<int, genfit::trackAndState>& IdGFTrackStateMap,
69 rave::Track GFTrackToTrack(trackAndState,
int id = -1, std::string tag=
"");
76 void setData(
const rave::Track & orig, MeasuredStateOnPlane* state);
78 GFRaveVertex* RaveToGFVertex(
const rave::Vertex &,
const std::map<int, genfit::trackAndState>& IdGFTrackStateMap);
79 void RaveToGFVertices(std::vector<GFRaveVertex*> *,
const std::vector<rave::Vertex> &,
const std::map<int, genfit::trackAndState>& IdGFTrackStateMap);
87 TMatrixDSym Covariance3DToTMatrixDSym(
const rave::Covariance3D&);
88 TVectorD Vector6DToTVectorD(
const rave::Vector6D&);
89 TMatrixDSym Covariance6DToTMatrixDSym(
const rave::Covariance6D&);
93 rave::Covariance3D TMatrixDSymToCovariance3D(
const TMatrixDSym&);
HepGeom::Vector3D< double > Vector3D
3D Vector
HepGeom::Point3D< double > Point3D
3D point
Defines for I/O streams used for error and debug printing.
void setData(const rave::Track &orig, MeasuredStateOnPlane *state)
set state and cov of a MeasuredStateOnPlane according to rave track
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
std::vector< rave::Track > GFTracksToTracks(const std::vector< genfit::Track * > &GFTracks, std::vector< genfit::MeasuredStateOnPlane * > *GFStates, std::map< int, genfit::trackAndState > &IdGFTrackStateMap, int startID=0)
Convert a vector of genfit::Tracks to rave::Tracks also builds a map of unique ids to genfit::Tracks;...