1 #ifndef __StG2TrackVertexMap_h__
2 #define __StG2TrackVertexMap_h__
5 #include "tables/St_g2t_track_Table.h"
6 #include "tables/St_g2t_vertex_Table.h"
10 void Reset(St_g2t_track *
track, St_g2t_vertex *
vertex);
12 Int_t IdVertex(Int_t IdTrack) {
return fTrack2Vertex.empty() ? -1 : fTrack2Vertex.find(IdTrack)->second;}
13 Int_t IdParentTrack(Int_t IdVertex) {
return fVertex2ParentTrack.empty() ? -1 : fVertex2ParentTrack.find(IdVertex)->second;}
15 StG2TrackVertexMap(St_g2t_track *track=0, St_g2t_vertex *vertex = 0) : fTrack(track), fVertex(vertex) {Reset(track,vertex);}
17 St_g2t_vertex *fVertex;
18 std::map<Int_t,Int_t> fTrack2Vertex;
19 std::map<Int_t,Int_t> fVertex2ParentTrack;