StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FtfMcTrack.h
1 /*****************************************************************************
2 *
3 * Generated tracks
4 */
5 #ifndef FTFMCTRACK
6 #define FTFMCTRACK
7 #include "Stl3Util/ftf/FtfGeneral.h"
8 #include "Stl3Util/ftf/FtfBaseTrack.h"
9 #include "Stl3Util/ftf/FtfHit.h"
10 
11 
12 //
13 // Define class with space points
14 //
15 class FtfMcSpacePoint {
16 public:
17  float x ;
18  float y ;
19  float z ;
20 } ;
21 
22 class FtfMcTrack : public FtfBaseTrack {
23 
24 public:
25 
26  short pid ; // Particle ID
27  short parentPid ; // Parent Particle ID
28  float p[3]; // 3-momentum
29  float vertex[3] ; // track origin
30  void* nextTrack ; // pointer to next track in track grid
31 
32  long nMcHits ; // # space points in hit array
33 
34  inline virtual void nextHit (){ currentHit = ((FtfBaseHit *)currentHit)->nextMcTrackHit ; } ;
35 
36  void setPrimary ( short qIn, float ptIn, float eta, float psiIn ) ;
37 
38  void setRandomPrimary ( float ptMin, float ptMax, float etaMin, float etaMax,
39  float psiMin, float psiMax, float zVert ) ;
40 
41 
42  void set ( int _id, float _r0, float _z0, float _phi0,
43  float _pt, float _tanl, float _psi, int _q, int _nHits ) ;
44 
45 } ;
46 #endif
47