00001
00002
00003
00004
00005 #ifndef FTFMCTRACK
00006 #define FTFMCTRACK
00007 #include "FtfGeneral.h"
00008 #include "FtfBaseTrack.h"
00009 #include "FtfHit.h"
00010
00011
00012
00013
00014
00015 class FtfMcSpacePoint {
00016 public:
00017 float x ;
00018 float y ;
00019 float z ;
00020 } ;
00021
00022 class FtfMcTrack : public FtfBaseTrack {
00023
00024 public:
00025
00026 short pid ;
00027 short parentPid ;
00028 float p[3];
00029 float vertex[3] ;
00030 void* nextTrack ;
00031
00032 long nMcHits ;
00033
00034 inline virtual void nextHit (){ currentHit = ((FtfBaseHit *)currentHit)->nextMcTrackHit ; } ;
00035
00036 void setPrimary ( short qIn, float ptIn, float eta, float psiIn ) ;
00037
00038 void setRandomPrimary ( float ptMin, float ptMax, float etaMin, float etaMax,
00039 float psiMin, float psiMax, float zVert ) ;
00040
00041
00042 void set ( int _id, float _r0, float _z0, float _phi0,
00043 float _pt, float _tanl, float _psi, int _q, int _nHits ) ;
00044
00045 } ;
00046 #endif
00047