ATLAS Offline Software
|
Hold binned EM fraction data. More...
#include <CaloEMFrac.h>
Classes | |
struct | EMFracData |
Per-bin data. More... | |
Public Member Functions | |
CaloEMFrac () | |
Default Constructor. More... | |
CaloEMFrac (int nBinEta, float MinEta, float MaxEta, int nBinLogEClus, float MinLogEClus, float MaxLogEClus, int nBinLogEDens, float MinLogEDens, float MaxLogEDens, int nBinLogDepth, float MinLogDepth, float MaxLogDepth) | |
Constructor. More... | |
int | getNbinsEta () const |
Return the number of bins in eta. More... | |
float | getEtaMin () const |
Return the minimum eta for the first bin. More... | |
float | getEtaMax () const |
Return the maximum eta for the last bin. More... | |
int | getNbinsLogEClus () const |
Return the number of bins in log10(cluster energy). More... | |
float | getLogEClusMin () const |
Return the minimum log10(cluster energy) for the first bin. More... | |
float | getLogEClusMax () const |
Return the maximum log10(cluster energy) for the last bin. More... | |
int | getNbinsLogEDens () const |
Return the number of bins in log10(cluster energy density). More... | |
float | getLogEDensMin () const |
Return the minimum log10(cluster energy density) for the first bin. More... | |
float | getLogEDensMax () const |
Return the maximum log10(cluster energy density) for the last bin. More... | |
int | getNbinsLogDepth () const |
Return the number of bins in log10(cluster depth). More... | |
float | getLogDepthMin () const |
Return the minimum log10(cluster depth) for the first bin. More... | |
float | getLogDepthMax () const |
Return the maximum log10(cluster depth) for the last bin. More... | |
const struct EMFracData * | getEMFracData (float eta, float logEClus, float logEDens, float logDepth) const |
Return EM fraction data for one bin. More... | |
void | setEMFracData (float eta, float logEClus, float logEDens, float logDepth, const struct EMFracData &theData) |
Set EM fraction data for one bin. More... | |
Private Member Functions | |
int | getEtaLogEClusBin (float eta, float logEClus) const |
Find the eta/logEClus bin number. More... | |
int | getBin (float eta, float logEClus, float logEDens, float logDepth) const |
Find a bin number. More... | |
Private Attributes | |
int | m_nBinEta |
Number of eta bins. More... | |
int | m_nBinLogEClus |
Number of log10(cluster energy) bins. More... | |
int | m_nBinLogEDens |
Number of log10(cluster energy density) bins. More... | |
int | m_nBinLogDepth |
Number of log10(cluster depth) bins. More... | |
float | m_MinEta |
Minimum eta for the first bin. More... | |
float | m_MinLogEClus |
Minimum log10(cluster energy) for the first bin. More... | |
float | m_MinLogEDens |
Minimum log10(cluster energy density) for the first bin. More... | |
float | m_MinLogDepth |
Minimum log10(cluster depth) for the first bin. More... | |
float | m_MaxEta |
Maximum eta for the last bin. More... | |
float | m_MaxLogEClus |
Maximum log10(cluster energy) for the last bin. More... | |
float | m_MaxLogEDens |
Maximum log10(cluster energy density) for the last bin. More... | |
float | m_MaxLogDepth |
Maximum log10(cluster depth) for the last bin. More... | |
std::vector< struct EMFracData > | m_data |
The table. More... | |
Hold binned EM fraction data.
This class holds data on the average EM fraction of EM clusters. These data are binned along four axes:
In each bin, we store the mean EM fraction in the bin, plus information about distribution width and number of entries.
Definition at line 35 of file CaloEMFrac.h.
CaloEMFrac::CaloEMFrac | ( | ) |
Default Constructor.
(Only intended for use by persistency.)
Definition at line 18 of file CaloEMFrac.cxx.
CaloEMFrac::CaloEMFrac | ( | int | nBinEta, |
float | MinEta, | ||
float | MaxEta, | ||
int | nBinLogEClus, | ||
float | MinLogEClus, | ||
float | MaxLogEClus, | ||
int | nBinLogEDens, | ||
float | MinLogEDens, | ||
float | MaxLogEDens, | ||
int | nBinLogDepth, | ||
float | MinLogDepth, | ||
float | MaxLogDepth | ||
) |
Constructor.
nBinEta | Number of bins in eta. |
MinEta | Minimum eta for the first bin. |
MaxEta | Maximum eta for the last bin. |
nBinLogEClus | Number of bins in log10(cluster energy). |
MinLogEClus | Minimum log10(cluster energy) for the first bin. |
MaxLogEClus | Maximum log10(cluster energy) for the last bin. |
nBinLogEDens | Number of bins in log10(cluster energy density). |
MinLogEDens | Minimum log10(cluster energy density) for the first bin. |
MaxLogEDens | Maximum log10(cluster energy density) for the last bin. |
nBinLogDepth | Number of bins in log10(cluster depth). |
MinLogDepth | Minimum log10(cluster depth) for the first bin. |
MaxLogDepth | Maximum log10(cluster depth) for the last bin. |
Definition at line 50 of file CaloEMFrac.cxx.
|
private |
Find a bin number.
eta | Cluster eta. |
logEClus | log10(cluster energy) |
logEDens | log10(cluster energy density) (possibly normalized) |
logDepth | log10(cluster depth) |
Definition at line 164 of file CaloEMFrac.cxx.
const struct CaloEMFrac::EMFracData * CaloEMFrac::getEMFracData | ( | float | eta, |
float | logEClus, | ||
float | logEDens, | ||
float | logDepth | ||
) | const |
Return EM fraction data for one bin.
eta | Cluster eta. |
logEClus | log10(cluster energy) |
logEDens | log10(cluster energy density) (possibly normalized) |
logDepth | log10(cluster depth) |
The pointer may be invalidated by a subsequent setEMFracData call.
Definition at line 90 of file CaloEMFrac.cxx.
|
private |
Find the eta/logEClus bin number.
eta | Cluster eta. |
logEClus | log10(cluster energy) |
Definition at line 140 of file CaloEMFrac.cxx.
|
inline |
|
inline |
|
inline |
Return the maximum log10(cluster depth) for the last bin.
Definition at line 121 of file CaloEMFrac.h.
|
inline |
Return the minimum log10(cluster depth) for the first bin.
Definition at line 119 of file CaloEMFrac.h.
|
inline |
Return the maximum log10(cluster energy) for the last bin.
Definition at line 107 of file CaloEMFrac.h.
|
inline |
Return the minimum log10(cluster energy) for the first bin.
Definition at line 105 of file CaloEMFrac.h.
|
inline |
Return the maximum log10(cluster energy density) for the last bin.
Definition at line 114 of file CaloEMFrac.h.
|
inline |
Return the minimum log10(cluster energy density) for the first bin.
Definition at line 112 of file CaloEMFrac.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return the number of bins in log10(cluster energy density).
Definition at line 110 of file CaloEMFrac.h.
void CaloEMFrac::setEMFracData | ( | float | eta, |
float | logEClus, | ||
float | logEDens, | ||
float | logDepth, | ||
const struct EMFracData & | theData | ||
) |
Set EM fraction data for one bin.
eta | Cluster eta. |
logEClus | log10(cluster energy) |
logEDens | log10(cluster energy density) (possibly normalized) |
logDepth | log10(cluster depth) |
theData | The bin data. |
This will overwrite any earlier data for the same bin. If the coordinates are out of range, this is a no-op.
Definition at line 115 of file CaloEMFrac.cxx.
|
private |
The table.
Binned in the following order, least-rapidly varying first: eta, logEClus, logEDens, logDepth.
Definition at line 190 of file CaloEMFrac.h.
|
private |
Maximum eta for the last bin.
Definition at line 179 of file CaloEMFrac.h.
|
private |
Maximum log10(cluster depth) for the last bin.
Definition at line 185 of file CaloEMFrac.h.
|
private |
Maximum log10(cluster energy) for the last bin.
Definition at line 181 of file CaloEMFrac.h.
|
private |
Maximum log10(cluster energy density) for the last bin.
Definition at line 183 of file CaloEMFrac.h.
|
private |
Minimum eta for the first bin.
Definition at line 170 of file CaloEMFrac.h.
|
private |
Minimum log10(cluster depth) for the first bin.
Definition at line 176 of file CaloEMFrac.h.
|
private |
Minimum log10(cluster energy) for the first bin.
Definition at line 172 of file CaloEMFrac.h.
|
private |
Minimum log10(cluster energy density) for the first bin.
Definition at line 174 of file CaloEMFrac.h.
|
private |
Number of eta bins.
Definition at line 161 of file CaloEMFrac.h.
|
private |
Number of log10(cluster depth) bins.
Definition at line 167 of file CaloEMFrac.h.
|
private |
Number of log10(cluster energy) bins.
Definition at line 163 of file CaloEMFrac.h.
|
private |
Number of log10(cluster energy density) bins.
Definition at line 165 of file CaloEMFrac.h.