Skip to content

Commit f6d98c8

Browse files
committed
fix bug
1 parent 089ccf7 commit f6d98c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ struct AnalysisSameEventPairing {
17031703
// for these pair level signals, also add histograms for each MCgenAcc cut if specified
17041704
if (fUseMCGenAccCut) {
17051705
for (auto& cut : fMCGenAccCuts) {
1706-
histNames += Form("MCTruthGenPairSel_%s_%s;", cut->GetName(), sig->GetName());
1706+
histNames += Form("MCTruthGenPairSel_%s_%s;", sig->GetName(), cut->GetName());
17071707
}
17081708
}
17091709
}
@@ -2254,9 +2254,9 @@ struct AnalysisSameEventPairing {
22542254
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s", sig->GetName()), VarManager::fgValues);
22552255
// Fill also acceptance cut histograms if requested
22562256
if (fUseMCGenAccCut) {
2257-
for (auto& accCut : fMCGenAccCuts) {
2258-
if (accCut.IsSelected(VarManager::fgValues)) {
2259-
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s_%s", sig->GetName(), accCut.GetName()), VarManager::fgValues);
2257+
for (auto& cut : fMCGenAccCuts) {
2258+
if (cut->IsSelected(VarManager::fgValues)) {
2259+
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
22602260
}
22612261
}
22622262
}

0 commit comments

Comments
 (0)