00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00016
00017
00018
00020
00021 #ifndef STAR_StFtpcGeantPoint
00022 #define STAR_StFtpcGeantPoint
00023
00024 #include "TObject.h"
00025
00026 #include "tables/St_ffs_gepoint_Table.h"
00027
00028 class StFtpcGeantPoint : public TObject {
00029
00030 private:
00031
00032 Int_t mTrackPointer;
00033 Int_t mGeantPID;
00034 Int_t mPrimaryTag;
00035 Int_t mGeantProcess;
00036
00037 Double_t mVertexMomentum[3];
00038 Double_t mLocalMomentum[3];
00039 Double_t mVertexPosition[3];
00040
00041 public:
00042
00043 StFtpcGeantPoint();
00044 virtual ~StFtpcGeantPoint();
00045 virtual Int_t ToTable(ffs_gepoint_st *geant_st);
00046
00047
00048 Int_t GetTrackPointer() {return mTrackPointer;}
00049 Int_t GetGeantPID() {return mGeantPID;}
00050 Int_t GetPrimaryTag() {return mPrimaryTag;}
00051 Int_t GetGeantProcess() {return mGeantProcess;}
00052
00053 Double_t GetVertexMomentum(Int_t i) { return mVertexMomentum[i];}
00054 Double_t GetLocalMomentum(Int_t i) { return mLocalMomentum[i];}
00055 Double_t GetVertexPosition(Int_t i) { return mVertexPosition[i];}
00056
00057
00058 void SetTrackPointer(Int_t d) {mTrackPointer =d;}
00059 void SetGeantPID(Int_t d) {mGeantPID =d;}
00060 void SetPrimaryTag(Int_t d) {mPrimaryTag =d;}
00061 void SetGeantProcess(Int_t d) {mGeantProcess =d;}
00062
00063 void SetVertexMomentum(Int_t i, Double_t f) {if(i>=0&&i<3) mVertexMomentum[i]=f;}
00064 void SetLocalMomentum(Int_t i, Double_t f) {if(i>=0&&i<3) mLocalMomentum[i]=f;}
00065 void SetVertexPosition(Int_t i, Double_t f) {if(i>=0&&i<3) mVertexPosition[i]=f;}
00066
00067 void SetVertexMomentum(Double_t f1,Double_t f2,Double_t f3)
00068 {mVertexMomentum[0]=f1;mVertexMomentum[1]=f2;mVertexMomentum[2]=f3;}
00069 void SetLocalMomentum(Double_t f1,Double_t f2,Double_t f3)
00070 {mLocalMomentum[0]=f1;mLocalMomentum[1]=f2;mLocalMomentum[2]=f3;}
00071 void SetVertexPosition(Double_t f1,Double_t f2,Double_t f3)
00072 {mVertexPosition[0]=f1;mVertexPosition[1]=f2;mVertexPosition[2]=f3;}
00073
00074 ClassDef(StFtpcGeantPoint, 1)
00075 };
00076
00077 #endif