|
ATLAS Offline Software
|
Go to the documentation of this file.
20 base_class(
name, pSvcLocator),
21 m_allMoments({{
xAOD::CaloCluster::FIRST_PHI ,
xAOD::CaloCluster::FIRST_ETA ,
xAOD::CaloCluster::SECOND_R ,
xAOD::CaloCluster::SECOND_LAMBDA ,
xAOD::CaloCluster::DELTA_PHI ,
xAOD::CaloCluster::DELTA_THETA ,
xAOD::CaloCluster::DELTA_ALPHA ,
xAOD::CaloCluster::CENTER_X ,
xAOD::CaloCluster::CENTER_Y ,
xAOD::CaloCluster::CENTER_Z ,
xAOD::CaloCluster::CENTER_MAG ,
xAOD::CaloCluster::CENTER_LAMBDA ,
xAOD::CaloCluster::LATERAL ,
xAOD::CaloCluster::LONGITUDINAL ,
xAOD::CaloCluster::ENG_FRAC_EM ,
xAOD::CaloCluster::ENG_FRAC_MAX ,
xAOD::CaloCluster::ENG_FRAC_CORE ,
xAOD::CaloCluster::FIRST_ENG_DENS ,
xAOD::CaloCluster::SECOND_ENG_DENS ,
xAOD::CaloCluster::ISOLATION ,
xAOD::CaloCluster::ENG_BAD_CELLS ,
xAOD::CaloCluster::N_BAD_CELLS ,
xAOD::CaloCluster::N_BAD_CELLS_CORR ,
xAOD::CaloCluster::BAD_CELLS_CORR_E ,
xAOD::CaloCluster::BADLARQ_FRAC ,
xAOD::CaloCluster::ENG_POS ,
xAOD::CaloCluster::SIGNIFICANCE ,
xAOD::CaloCluster::CELL_SIGNIFICANCE ,
xAOD::CaloCluster::CELL_SIG_SAMPLING ,
xAOD::CaloCluster::AVG_LAR_Q ,
xAOD::CaloCluster::AVG_TILE_Q ,
xAOD::CaloCluster::EM_PROBABILITY ,
xAOD::CaloCluster::HAD_WEIGHT ,
xAOD::CaloCluster::OOC_WEIGHT ,
xAOD::CaloCluster::DM_WEIGHT ,
xAOD::CaloCluster::TILE_CONFIDENCE_LEVEL ,
xAOD::CaloCluster::VERTEX_FRACTION ,
xAOD::CaloCluster::NVERTEX_FRACTION ,
xAOD::CaloCluster::ENG_CALIB_TOT ,
xAOD::CaloCluster::ENG_CALIB_OUT_L ,
xAOD::CaloCluster::ENG_CALIB_OUT_M ,
xAOD::CaloCluster::ENG_CALIB_OUT_T ,
xAOD::CaloCluster::ENG_CALIB_DEAD_L ,
xAOD::CaloCluster::ENG_CALIB_DEAD_M ,
xAOD::CaloCluster::ENG_CALIB_DEAD_T ,
xAOD::CaloCluster::ENG_CALIB_EMB0 ,
xAOD::CaloCluster::ENG_CALIB_EME0 ,
xAOD::CaloCluster::ENG_CALIB_TILEG3 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_TOT ,
xAOD::CaloCluster::ENG_CALIB_DEAD_EMB0 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_TILE0 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_TILEG3 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_EME0 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_HEC0 ,
xAOD::CaloCluster::ENG_CALIB_DEAD_FCAL ,
xAOD::CaloCluster::ENG_CALIB_DEAD_LEAKAGE ,
xAOD::CaloCluster::ENG_CALIB_DEAD_UNCLASS ,
xAOD::CaloCluster::ENG_CALIB_FRAC_EM ,
xAOD::CaloCluster::ENG_CALIB_FRAC_HAD ,
xAOD::CaloCluster::ENG_CALIB_FRAC_REST}}),
33 ATH_MSG_INFO(
"Compression of ClusterMoments to 16 bits enabled");
36 return StatusCode::SUCCESS;
43 if (clustercontainer->
empty())
return;
45 if (!clustercontainer->hasNonConstStore()) {
46 ATH_MSG_DEBUG(
"ClusterContainer has no non-const aux store. No compression.");
52 std::bitset<nMoments> incompressibleMoments;
56 for (
size_t iMom=0; iMom<nMoments; ++iMom) {
57 if (!incompressibleMoments.test(iMom)) {
60 if (cluster->retrieveMoment(
mom,momValue)) {
64 incompressibleMoments.set(iMom);
65 ATH_MSG_VERBOSE(
"Moment " <<
mom <<
" doesn not exists. Not attemps to compress it in subsequent clusters");
@ CENTER_MAG
Cluster Centroid ( )
@ SECOND_R
Second Moment in .
@ ENG_CALIB_DEAD_UNCLASS
Attached Calibration Hit energy in dead material in unclassified areas of the detector.
@ FIRST_PHI
First Moment in .
@ OOC_WEIGHT
Out-of-cluster weight (E_ooc/E_w)
@ ENG_FRAC_CORE
Energy fraction of the sum of the hottest cells in each sampling.
@ VERTEX_FRACTION
Vertex fraction of this cluster wrt.
@ EM_PROBABILITY
Classification probability to be em-like.
@ CENTER_X
Cluster Centroid ( )
@ ENG_CALIB_DEAD_LEAKAGE
Attached Calibration Hit energy in dead material behind calorimeters.
@ AVG_LAR_Q
Sum(E_cell_LAr^2 Q_cell_LAr)/Sum(E_cell_LAr^2)
@ ENG_CALIB_TILEG3
Calibration Hit energy inside the cluster scintillator.
@ ENG_CALIB_DEAD_T
Attached Calibration Hit energy in dead material with tight matching (Angle < 0.3).
@ ENG_CALIB_OUT_M
Attached Calibration Hit energy outside clusters but inside the calorimeter with medium matching (Ang...
@ CENTER_LAMBDA
Shower depth at Cluster Centroid.
@ ENG_CALIB_EMB0
Calibration Hit energy inside the cluster barrel presampler.
#define ATH_MSG_VERBOSE(x)
@ ENG_CALIB_DEAD_TILE0
Attached Calibration Hit energy in dead material between EMB3 and TILE0.
@ ENG_FRAC_MAX
Energy fraction of hottest cell.
CxxUtils::FloatCompressor m_compressor
@ SECOND_LAMBDA
Second Moment in .
MomentType
Enums to identify different moments.
@ CENTER_Z
Cluster Centroid ( )
@ SECOND_ENG_DENS
Second Moment in E/V.
Description of a calorimeter cluster.
@ DM_WEIGHT
Dead-material weight (E_dm/E_ooc)
@ HAD_WEIGHT
Hadronic weight (E_w/E_em)
float reduceFloatPrecision(float value) const
Function returning a reduced precision float value.
::StatusCode StatusCode
StatusCode definition for legacy code.
@ CELL_SIG_SAMPLING
CaloSample of the cell with the largest |E|/sig.
@ ENG_CALIB_TOT
Calibration Hit energy inside the cluster.
virtual StatusCode initialize() override
@ ENG_CALIB_FRAC_EM
Calibration Hit energy inside the cluster caused by e/gamma/pi0.
@ ISOLATION
Energy weighted fraction of non-clustered perimeter cells.
@ ENG_CALIB_FRAC_REST
Calibration Hit energy inside the cluster caused by other particles.
@ DELTA_PHI
Angular shower axis deviation ( ) from IP-to-Center.
@ ENG_CALIB_DEAD_FCAL
Attached Calibration Hit energy in dead material before FCAL, between FCAL and HEC.
@ FIRST_ENG_DENS
First Moment in E/V.
@ ENG_BAD_CELLS
Total em-scale energy of bad cells in this cluster.
@ TILE_CONFIDENCE_LEVEL
Confidence Level of a tile calorimeter cluster to be noise.
@ ENG_CALIB_EME0
Calibration Hit energy inside the cluster endcap presampler.
@ ENG_FRAC_EM
Energy fraction in EM calorimeters.
@ ENG_CALIB_DEAD_M
Attached Calibration Hit energy in dead material with medium matching (Angle < 0.5).
virtual void compress(xAOD::CaloClusterContainer *clustercontainer) const override
@ ENG_CALIB_DEAD_HEC0
Attached Calibration Hit energy in dead material between EME3 and HEC0.
@ AVG_TILE_Q
Sum(E_cell_Tile^2 Q_cell_Tile)/Sum(E_cell_Tile^2)
@ ENG_CALIB_DEAD_TILEG3
Attached Calibration Hit energy in dead material before scintillator.
@ FIRST_ETA
First Moment in .
momentList_t m_allMoments
@ DELTA_THETA
Angular shower axis deviation ( ) from IP-to-Center.
@ ENG_CALIB_DEAD_TOT
Attached Calibration Hit energy in dead material.
@ SIGNIFICANCE
Cluster significance.
@ ENG_CALIB_DEAD_L
Attached Calibration Hit energy in dead material with loose matching (Angle < 1.0).
@ LATERAL
Normalized lateral moment.
@ DELTA_ALPHA
Angular shower axis deviation ( ) from IP-to-Center.
@ ENG_CALIB_FRAC_HAD
Calibration Hit energy inside the cluster caused by charged pi+ and pi-.
@ CELL_SIGNIFICANCE
Cell significance = E/sig of the cell with the largest |E|/sig.
@ ENG_CALIB_OUT_L
Attached Calibration Hit energy outside clusters but inside the calorimeter with loose matching (Angl...
@ ENG_CALIB_DEAD_EME0
Attached Calibration Hit energy in dead material before EME0, between EME0 and EME1.
xAODClusterCompressor()=delete
@ ENG_CALIB_OUT_T
Attached Calibration Hit energy outside clusters but inside the calorimeter with tight matching (Angl...
@ BAD_CELLS_CORR_E
Energy of bad cells with energy density average correction applied.
@ N_BAD_CELLS_CORR
Number of bad cells with energy density average correction applied.
@ LONGITUDINAL
Normalized longitudinal moment.
@ NVERTEX_FRACTION
slightly updated vertex fraction more pile up independent (similar to nJVF)
@ N_BAD_CELLS
number of bad cells
@ CENTER_Y
Cluster Centroid ( )
@ ENG_CALIB_DEAD_EMB0
Attached Calibration Hit energy in dead material before EMB0, between EMB0 and EMB1.
bool empty() const noexcept
Returns true if the collection is empty.
@ ENG_POS
Total positive Energy of this cluster.
@ BADLARQ_FRAC
Energy fraction of LAr cells with quality larger than a given cut.