Skip to content
Snippets Groups Projects
Commit e427eb0f authored by Tamara Vazquez Schroeder's avatar Tamara Vazquez Schroeder
Browse files

Merge branch '21.0-pedestalCorrectionUnderflow' into '21.0'

Fixed pedestal correction under-/overflow issue

See merge request !6346

(cherry picked from commit 49087b5d [formerly 06cdd160756ad10112a6698d613dcad50f4ff6cb])

6889018b Fixed pedestal correction under-/overflow issue

Former-commit-id: ad6f90797e5b64411fdd517e0cbc0e23f77fe6b6
parent 44ad9ee0
No related branches found
No related tags found
No related merge requests found
......@@ -521,17 +521,13 @@ void PPMSimBSMon::simulateAndCompare(const xAOD::TriggerTowerContainer* ttIn)
hist1 = 0;
if (simCp && simCp == datCp) { // non-zero match
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_SimEqData;
} else if (simCp != datCp) { // mis-match
} else if (simCp != datCp && !pedCorrOverflow) { // mis-match
mismatch = 1;
if (simCp && datCp) { // non-zero mis-match
if (!pedCorrOverflow){ // no pedCorr over- or underflow
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_SimNeData;
}else{
mismatch = 0; //If the pedestal Correction overflows do not fill mismatch Event Histogram
}
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_SimNeData;
} else if (!datCp) { // no data
if ((Slices >= 7) && (nPedCorr >= 3)) {
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_SimNoData;
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_SimNoData;
} else mismatch = 0;
} else { // no sim
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutCp_DataNoSim;
......@@ -545,14 +541,10 @@ void PPMSimBSMon::simulateAndCompare(const xAOD::TriggerTowerContainer* ttIn)
hist1 = 0;
if (simJep && simJep == datJep) { // non-zero match
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutJep_SimEqData;
} else if (simJep != datJep) { // mis-match
} else if (simJep != datJep && !pedCorrOverflow) { // mis-match
mismatch = 1;
if (simJep && datJep) { // non-zero mis-match
if (!pedCorrOverflow){ // no pedCorr over- or underflow
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutJep_SimNeData;
}else{
mismatch = 0; //If the pedestal Correction overflows do not fill mismatch Event Histogram
}
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutJep_SimNeData;
} else if (!datJep) { // no data
if ((Slices >= 7) && (nPedCorr >= 3)) {
hist1 = m_h_ppm_em_2d_etaPhi_tt_lutJep_SimNoData;
......@@ -571,14 +563,10 @@ void PPMSimBSMon::simulateAndCompare(const xAOD::TriggerTowerContainer* ttIn)
hist1 = 0;
if (simCp && simCp == datCp) { // non-zero match
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutCp_SimEqData;
} else if (simCp != datCp) { // mis-match
} else if (simCp != datCp && !pedCorrOverflow ) { // mis-match
mismatch = 1;
if (simCp && datCp) { // non-zero mis-match
if (!pedCorrOverflow){ // no pedCorr over- or underflow
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutCp_SimNeData;
}else{
mismatch = 0; //If the pedestal Correction overflows do not fill mismatch Event Histogram
}
} else if (!datCp) { // no data
if ((Slices >= 7) && (nPedCorr >= 3)) {
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutCp_SimNoData;
......@@ -595,14 +583,10 @@ void PPMSimBSMon::simulateAndCompare(const xAOD::TriggerTowerContainer* ttIn)
hist1 = 0;
if (simJep && simJep == datJep) { // non-zero match
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutJep_SimEqData;
} else if (simJep != datJep) { // mis-match
} else if (simJep != datJep && !pedCorrOverflow ) { // mis-match
mismatch = 1;
if (simJep && datJep) { // non-zero mis-match
if (!pedCorrOverflow){ // no pedCorr over- or underflow
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutJep_SimNeData;
}else{
mismatch = 0; //If the pedestal Correction overflows do not fill mismatch Event Histogram
}
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutJep_SimNeData;
} else if (!datJep) { // no data
if ((Slices >= 7) && (nPedCorr >= 3)) {
hist1 = m_h_ppm_had_2d_etaPhi_tt_lutJep_SimNoData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment