CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/FastSimulation/ForwardDetectors/plugins/AcceptanceTableHelper.h

Go to the documentation of this file.
00001 #ifndef FastSim_ProtonTaggerAcceptanceHelper_H
00002 #define FastSim_ProtonTaggerAcceptanceHelper_H
00003 
00005 
00020 // Version: $Id: AcceptanceTableHelper.h,v 1.1 2008/11/25 17:34:15 beaudett 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