@@ -849,6 +849,9 @@ struct HStrangeCorrelation {
849849
850850 float deltaphi = computeDeltaPhi (trigg.phi (), assoc.phi ());
851851 float deltaeta = trigg.eta () - assoc.eta ();
852+ if (masterConfigurations.doMirroringInDelataEta ) {
853+ deltaeta = std::abs (deltaeta);
854+ }
852855 float ptassoc = assoc.pt ();
853856 float pttrigger = trigg.pt ();
854857
@@ -923,9 +926,7 @@ struct HStrangeCorrelation {
923926 if (efficiencyFlags.applyEfficiencyPropagation ) {
924927 totalEffUncert = std::sqrt (std::pow (efficiencyTrigg * efficiencyError, 2 ) + std::pow (efficiencyTriggError * efficiency, 2 ));
925928 }
926- if (masterConfigurations.doMirroringInDelataEta ) {
927- deltaeta = std::abs (deltaeta);
928- }
929+
929930 double binFillThn[6 ] = {deltaphi, deltaeta, ptassoc, pttrigger, pvz, mult};
930931 if (TESTBIT (doCorrelation, Index) && (!efficiencyFlags.applyEfficiencyCorrection || efficiency != 0 ) && (masterConfigurations.doPPAnalysis || (TESTBIT (selMap, Index) && TESTBIT (selMap, Index + 3 )))) {
931932 if (assocCandidate.compatible (Index, trackSelection.dEdxCompatibility ) && (!masterConfigurations.doMCassociation || assocCandidate.mcTrue (Index)) && (!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary ()) && !mixing && -massWindowConfigurations.maxBgNSigma < assocCandidate.invMassNSigma (Index) && assocCandidate.invMassNSigma (Index) < -massWindowConfigurations.minBgNSigma && !masterConfigurations.fillCorrelationHistWithMass ) {
@@ -1218,6 +1219,9 @@ struct HStrangeCorrelation {
12181219
12191220 float deltaphi = computeDeltaPhi (trigg.phi (), assoc.phi ());
12201221 float deltaeta = trigg.eta () - assoc.eta ();
1222+ if (masterConfigurations.doMirroringInDelataEta ) {
1223+ deltaeta = std::abs (deltaeta);
1224+ }
12211225 float ptassoc = assoc.pt ();
12221226 float pttrigger = trigg.pt ();
12231227
@@ -1282,9 +1286,7 @@ struct HStrangeCorrelation {
12821286 if (efficiencyFlags.applyEfficiencyPropagation ) {
12831287 totalEffUncert = std::sqrt (std::pow (efficiencyTrigg * efficiencyError, 2 ) + std::pow (efficiencyTriggError * efficiency, 2 ));
12841288 }
1285- if (masterConfigurations.doMirroringInDelataEta ) {
1286- deltaeta = std::abs (deltaeta);
1287- }
1289+
12881290 double binFillThn[6 ] = {deltaphi, deltaeta, ptassoc, pttrigger, pvz, mult};
12891291 if (TESTBIT (doCorrelation, Index + 3 ) && (!efficiencyFlags.applyEfficiencyCorrection || efficiency != 0 ) && (masterConfigurations.doPPAnalysis || (TESTBIT (cascselMap, Index) && TESTBIT (cascselMap, Index + 4 ) && TESTBIT (cascselMap, Index + 8 ) && TESTBIT (cascselMap, Index + 12 )))) {
12901292 if (assocCandidate.compatible (Index, trackSelection.dEdxCompatibility ) && (!masterConfigurations.doMCassociation || assocCandidate.mcTrue (Index)) && (!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary ()) && !mixing && -massWindowConfigurations.maxBgNSigma < assocCandidate.invMassNSigma (Index) && assocCandidate.invMassNSigma (Index) < -massWindowConfigurations.minBgNSigma ) {
@@ -1465,6 +1467,9 @@ struct HStrangeCorrelation {
14651467 }
14661468 float deltaphi = computeDeltaPhi (trigg.phi (), assoc.phi ());
14671469 float deltaeta = trigg.eta () - assoc.eta ();
1470+ if (masterConfigurations.doMirroringInDelataEta ) {
1471+ deltaeta = std::abs (deltaeta);
1472+ }
14681473 float ptassoc = assoc.pt ();
14691474 float pttrigger = trigg.pt ();
14701475
@@ -1529,9 +1534,7 @@ struct HStrangeCorrelation {
15291534 totalEffUncert = std::sqrt (std::pow (efficiencyTrigger * efficiencyUncertainty, 2 ) + std::pow (efficiencyTriggerError * efficiency, 2 ));
15301535 totalPurityUncert = std::sqrt (std::pow (purityTrigger * purityUncertainty, 2 ) + std::pow (purity * purityTriggerError, 2 ));
15311536 }
1532- if (masterConfigurations.doMirroringInDelataEta ) {
1533- deltaeta = std::abs (deltaeta);
1534- }
1537+
15351538 double binFillThn[6 ] = {deltaphi, deltaeta, ptassoc, pttrigger, pvz, mult};
15361539 double deltaPhiStar = calculateAverageDeltaPhiStar (triggForDeltaPhiStar, assocForDeltaPhiStar, bField);
15371540 if (!mixing) {
0 commit comments