8 #include "StPeCParticle.h"
9 #include "tables/St_g2t_track_Table.h"
17 StPeCParticle::~StPeCParticle() {
21 StPeCParticle::StPeCParticle ( g2t_track_st* trk) {
24 void StPeCParticle::set ( g2t_track_st* trk) {
31 psi = atan2(trk->p[1],trk->p[0]);
32 if ( psi < 0 ) psi += 2. * M_PI ;
33 vertexId = trk->start_vertex_p ;
35 nTpcHits = trk->n_tpc_hit ;
36 nFtpHits = trk->n_ftp_hit ;
37 nSvtHits = trk->n_svt_hit ;
39 charge = (Short_t)trk->charge ;
52 psi = atan2(trk->Pxyz().x(),trk->Pxyz().y());
53 if ( psi < 0 ) psi += 2. * M_PI ;
54 vertexId = trk->IdVx() ;
56 nTpcHits = trk->No_tpc_hit() ;
57 nFtpHits = trk->No_ftp_hit() ;
58 nSvtHits = trk->No_svt_hit() ;
60 charge = (Short_t)trk->Charge() ;