Access to acceptance tables stored in ROOT file. More...
#include <AcceptanceTableHelper.h>
Public Member Functions | |
AcceptanceTableHelper () | |
Default constructor. More... | |
float | GetAcceptance (float, float, float) |
Acceptance as a function of t, xi and phi. More... | |
void | Init (TFile &, const std::string) |
Get acceptance tables from root file. More... | |
~AcceptanceTableHelper () | |
Delete acceptance histograms. More... | |
Private Attributes | |
TH3F * | h_log10t_log10Xi_Phi |
Table for low t: acceptance as a function of log10(t), log10(Xi) and Phi. More... | |
TH3F * | h_t_log10Xi_Phi |
Table for high t: acceptance as a function of -t, log10(Xi) and Phi. More... | |
Access to acceptance tables stored in ROOT file.
Helper class to get actual values from acceptance tables stored as TH3F. The class can provide acceptance values for a near-beam detector or a combination (e.g. 420+220).
A class instance is initialized from a root file with TH3F-type histograms of acceptance: for low t: acceptance as function of log10(-t), log10(xi) and phi; for high t: acceptance as function of -t, log10(xi) and phi.
The acceptance can be extracted from tables for given t,xi,phi with a dedicated method.
Author: Dmitry Zaborov
Definition at line 27 of file AcceptanceTableHelper.h.
|
inline |
Default constructor.
Definition at line 32 of file AcceptanceTableHelper.h.
|
inline |
Delete acceptance histograms.
Definition at line 35 of file AcceptanceTableHelper.h.
References h_log10t_log10Xi_Phi, and h_t_log10Xi_Phi.
float AcceptanceTableHelper::GetAcceptance | ( | float | t, |
float | xi, | ||
float | phi | ||
) |
Acceptance as a function of t, xi and phi.
Return acceptance for given t, xi, phi
Definition at line 50 of file AcceptanceTableHelper.cc.
References h_log10t_log10Xi_Phi, h_t_log10Xi_Phi, and NULL.
Referenced by ProtonTaggerFilter::filter().
void AcceptanceTableHelper::Init | ( | TFile & | f, |
const std::string | basename | ||
) |
Get acceptance tables from root file.
Read from root file <f> acceptance tables named <basename> and <basename>_hight
Definition at line 18 of file AcceptanceTableHelper.cc.
References gather_cfg::cout, h, h_log10t_log10Xi_Phi, h_t_log10Xi_Phi, NULL, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ProtonTaggerFilter::beginJob().
|
private |
Table for low t: acceptance as a function of log10(t), log10(Xi) and Phi.
Definition at line 49 of file AcceptanceTableHelper.h.
Referenced by GetAcceptance(), Init(), and ~AcceptanceTableHelper().
|
private |
Table for high t: acceptance as a function of -t, log10(Xi) and Phi.
Definition at line 52 of file AcceptanceTableHelper.h.
Referenced by GetAcceptance(), Init(), and ~AcceptanceTableHelper().