00001
00011 #ifndef TwistPatch_h
00012 #define TwistPatch_h
00013
00014 #include "TArrayD.h"
00015 #include "StThreeVectorF.hh"
00016
00017 class TwistPatch {
00018 public:
00019 TwistPatch();
00020 virtual ~TwistPatch();
00021
00023 virtual void SetMagF(double mag);
00024
00026
00027 virtual void PrimaryVertex(StThreeVectorF& vtx, double mag=-999.);
00029 virtual void PrimaryVertex(double& vx, double& vy, double& vz, double mag=-999.);
00031 virtual void PrimaryTrack(double& pt, double& phi, double& eta,
00032 int ch, double vz, double mag=-999.);
00034
00036 void CorrectP05ia();
00037
00038 protected:
00040
00041 void SetVtxPars();
00042 void SetEtaPars();
00043 void SetPtPars(int ew, int ch);
00044 void SetPhiPars(int ew, int ch);
00046
00047
00048 int magf;
00049
00050 Double_t* vtxpars;
00051 Double_t* etapars;
00052 Double_t* ptpars;
00053 Double_t* phipars;
00054
00055 TArrayD vtxparsFull;
00056 TArrayD ptparsFull;
00057 TArrayD phiparsFull;
00058 TArrayD etaparsFull;
00059
00060 ClassDef(TwistPatch,0)
00061 };
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 #endif