00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef StHbtCoulomb_HH
00038 #define StHbtCoulomb_HH
00039
00040 #include <stdio.h>
00041 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
00042 #include "StHbtMaker/Infrastructure/StHbtPair.hh"
00043 #include "StHbtMaker/Infrastructure/StHbtParticle.hh"
00044
00045 class StHbtCoulomb {
00046
00047 public:
00048 StHbtCoulomb();
00049 StHbtCoulomb(const char *readFile, const double& radius, const double& charge);
00050 virtual ~StHbtCoulomb();
00051
00052 void SetRadius(const double& radius);
00053 double GetRadius();
00054 void SetFile(const char *readFile);
00055 void SetChargeProduct(const double& charge);
00056
00057
00058 double CoulombCorrect(const double& eta);
00059 double CoulombCorrect(const double& eta, const double& radius);
00060 double CoulombCorrect(const StHbtPair* pair);
00061 double CoulombCorrect(const StHbtPair* pair, const double& radius);
00062 double CoulombCorrect(const double& mass, const double& charge,
00063 const double& radius, const double& qInv);
00064 StHbt1DHisto* CorrectionHistogram(const double& mass1, const double& mass2, const int& nBins,
00065 const double& low, const double& high);
00066 #ifdef __ROOT__
00067 StHbt1DHisto* CorrectionHistogram(const StHbt1DHisto*, const double);
00068 StHbt3DHisto* CorrectionHistogram(const StHbt3DHisto*, const double);
00069 #endif
00070 private:
00071 double Eta(const StHbtPair* pair);
00072 void CreateLookupTable(const double& radius);
00073 const char* mFile;
00074 double mRadius;
00075 double mZ1Z2;
00076 double mEta[1000];
00077 double mCoulomb[1000];
00078 int mNLines;
00079
00080 #ifdef __ROOT__
00081 ClassDef(StHbtCoulomb, 0)
00082 #endif
00083 };
00084
00085
00086 #endif