CMS 3D CMS Logo

AcceptanceTableHelper.h
Go to the documentation of this file.
1 #ifndef FastSim_ProtonTaggerAcceptanceHelper_H
2 #define FastSim_ProtonTaggerAcceptanceHelper_H
3 
5 
20 // Version: $Id: AcceptanceTableHelper.h,v 1.1 2007/09/28 08:39:53 dzaborov Exp $
21 
22 #include "TFile.h"
23 #include "TH3F.h"
24 
25 #include <string>
26 
28 public:
31 
35  delete h_log10t_log10Xi_Phi;
36  if (h_t_log10Xi_Phi)
37  delete h_t_log10Xi_Phi;
38  }
39 
41  void Init(TFile &, const std::string);
42 
44  float GetAcceptance(float, float, float);
45 
46 private:
49 
52 };
53 
54 #endif
void Init(TFile &, const std::string)
Get acceptance tables from root file.
AcceptanceTableHelper()
Default constructor.
~AcceptanceTableHelper()
Delete acceptance histograms.
TH3F * h_log10t_log10Xi_Phi
Table for low t: acceptance as a function of log10(t), log10(Xi) and Phi.
TH3F * h_t_log10Xi_Phi
Table for high t: acceptance as a function of -t, log10(Xi) and Phi.
Access to acceptance tables stored in ROOT file.
float GetAcceptance(float, float, float)
Acceptance as a function of t, xi and phi.