00001 #ifndef FastSim_ProtonTaggerAcceptanceHelper_H 00002 #define FastSim_ProtonTaggerAcceptanceHelper_H 00003 00005 00020 // Version: $Id: AcceptanceTableHelper.h,v 1.1 2007/09/28 08:39:53 dzaborov Exp $ 00021 00022 #include "TFile.h" 00023 #include "TH3F.h" 00024 00025 #include <string> 00026 00027 class AcceptanceTableHelper 00028 { 00029 public: 00030 00032 AcceptanceTableHelper() : h_log10t_log10Xi_Phi(NULL),h_t_log10Xi_Phi(NULL) {;} 00033 00035 ~AcceptanceTableHelper() { 00036 if (h_log10t_log10Xi_Phi) delete h_log10t_log10Xi_Phi; 00037 if (h_t_log10Xi_Phi) delete h_t_log10Xi_Phi; 00038 } 00039 00041 void Init(TFile&, const std::string); 00042 00044 float GetAcceptance(float, float, float); 00045 00046 private: 00047 00049 TH3F *h_log10t_log10Xi_Phi; 00050 00052 TH3F *h_t_log10Xi_Phi; 00053 00054 }; 00055 00056 #endif