Loading [MathJax]/extensions/tex2jax.js
|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef XAOD_STANDALONE
9 #include "GaudiKernel/SystemOfUnits.h"
27 bool useLayerCorrected);
31 bool useLayerCorrected);
37 auto funcLibraryPtr = std::make_unique<funcMap_t>();
55 return funcLibraryPtr;
61 auto funcLibraryPtr = std::make_unique<funcMap_t>();
67 return funcLibraryPtr;
74 auto funcLibraryPtr = std::make_unique<funcMap_t>();
111 return std::max(pt1, pt2)/(pt1+pt2);
116 if (useLayerCorrected) {
140 return funcLibraryPtr;
147 const std::string&
prefix,
148 bool useLayerCorrected)
175 funcLibrary[
prefix +
"_phiModCalo1"] = funcLibrary[
"phiModCalo1"] =
180 const double pi_divisor = std::abs(eta) < 1.425 ? 512. : 384.;
183 if (phi > 0.)
return std::fmod(phi,
pi / pi_divisor);
184 else return std::fmod((2 *
pi + phi),
pi / pi_divisor);
186 else return std::fmod((
pi - phi),
pi / pi_divisor);
196 {
return std::fmod(2.*TMath::Pi()+
compute_cl_phi(*
cl),TMath::Pi()/32.)-TMath::Pi()/64.0; };
198 if (useLayerCorrected) {
242 const std::string&
prefix,
float compute_el_trackz0(const xAOD::Electron &el)
float compute_rawcl_Eacc(const xAOD::CaloCluster &cl)
float compute_cl_phiCalo(const xAOD::CaloCluster &cluster)
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
std::unordered_map< std::string, std::function< float(const xAOD::Egamma *, const xAOD::CaloCluster *)> > funcMap_t
Define the map type since it's long.
@ e033
uncalibrated energy (sum of cells) in presampler in a 3x3 window in cells in eta X phi
@ e2ts1
2nd max in strips calc by summing 3 strips
These functions are for calculating variables used by the MVA calibration.
@ asy1
uncorr asymmetry in 3 strips in the 1st sampling
@ e235
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x5
float compute_cl_e(const xAOD::CaloCluster &cluster)
float compute_correctedcl_calibHitsShowerDepth(const xAOD::CaloCluster &cl)
@ ecore
core energy in em calo E(core) = E0(3x3) + E1(15x2) + E2(5x5) + E3(3x5)
float compute_ptconv(const xAOD::Photon *ph)
This ptconv is the old one used by MVACalib.
@ ethad1
transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated fr...
float compute_el_trackpt(const xAOD::Electron &el)
float compute_cl_eta(const xAOD::CaloCluster &cluster)
@ f1core
E1(3x1)/E = fraction of the energy reconstructed in the first longitudinal compartment of the electro...
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
float compute_correctedcl_Es0(const xAOD::CaloCluster &cl)
@ e333
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x3
@ f3
fraction of energy reconstructed in 3rd sampling
@ e1152
uncalibrated energy (sum of cells) in strips in a 15x2 window in cells in eta X phi
@ ethad
ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.
Description of a calorimeter cluster.
std::unique_ptr< funcMap_t > initializeConvertedPhotonFuncs(bool useLayerCorrected)
A function to build the map for converted photons.
std::size_t numberOfSiTracks(const xAOD::Photon *eg)
return the number of Si tracks in the conversion
float compute_pt2conv(const xAOD::Photon *ph)
float compute_el_tracketa(const xAOD::Electron &el)
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
float compute_correctedcl_Es2(const xAOD::CaloCluster &cl)
float compute_correctedcl_f0(const xAOD::CaloCluster &cl)
@ pos7
Difference between the track and the shower positions: sum_{i=i_m-7}^{i=i_m+7}E_i x (i-i_m) / sum_{i=...
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
@ poscs2
relative position in eta within cell in 2nd sampling
void initializeClusterFuncs(funcMap_t &funcLibrary, const std::string &prefix, bool useLayerCorrected)
@ e011
uncalibrated energy (sum of cells) in presampler in a 1x1 window in cells in eta X phi
std::unique_ptr< funcMap_t > initializeUnconvertedPhotonFuncs(bool useLayerCorrected)
A function to build the map for uncoverted photons.
float compute_el_refittedTrack_qoverp(const xAOD::Electron &el)
float compute_rawcl_Es1(const xAOD::CaloCluster &cl)
float compute_rawcl_f0(const xAOD::CaloCluster &cl)
float compute_cl_etaCalo(const xAOD::CaloCluster &cluster)
float compute_correctedcl_Eacc(const xAOD::CaloCluster &cl)
@ e377
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
float compute_rawcl_calibHitsShowerDepth(const xAOD::CaloCluster &cl)
@ poscs1
relative position in eta within cell in 1st sampling
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
std::unique_ptr< funcMap_t > initializeElectronFuncs(bool useLayerCorrected)
A function to build the map for electrons.
@ barys1
barycentre in sampling 1 calculated in 3 strips
float compute_cl_phi(const xAOD::CaloCluster &cluster)
void initializeEgammaFuncs(funcMap_t &funcLibrary, const std::string &prefix, bool useLayerCorrected)
@ e255
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 5x5
@ e337
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x7
@ r33over37allcalo
1-ratio of energy in 3x3 over 3x7 cells; E(3x3) = E0(1x1) + E1(3x1) + E2(3x3) + E3(3x3); E(3x7) = E0(...
float compute_pt1conv(const xAOD::Photon *ph)
float compute_correctedcl_Es3(const xAOD::CaloCluster &cl)
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ widths1
same as egammaParameters::weta1 but without corrections on particle impact point inside the cell
@ weta1
shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(E...
@ e132
uncalibrated energy (sum of cells) in strips in a 3x2 window in cells in eta X phi
float compute_correctedcl_Es1(const xAOD::CaloCluster &cl)
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
float compute_rawcl_Es2(const xAOD::CaloCluster &cl)
@ f3core
E3(3x3)/E fraction of the energy reconstructed in the third compartment of the electromagnetic calori...
float compute_rawcl_Es3(const xAOD::CaloCluster &cl)
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
@ widths2
same as egammaParameters::weta2 but without corrections on particle impact point inside the cell
float compute_rawcl_Es0(const xAOD::CaloCluster &cl)
@ e335
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x5
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
@ emaxs1
energy of strip with maximal energy deposit
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
@ pos
difference between shower cell and predicted track in +/- 1 cells
float compute_el_charge(const xAOD::Electron &el)
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...