Skip to content

Commit d3269c2

Browse files
authored
Add files via upload
1 parent 2959ceb commit d3269c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,7 @@ struct AnalysisDileptonTrack {
20662066
Configurable<int> fConfigMixingDepth{"cfgMixingDepth", 5, "Event mixing pool depth"};
20672067
Configurable<bool> fConfigPublishTripletTable{"cfgPublishTripletTable", false, "Publish the triplet tables, BmesonCandidates"};
20682068
Configurable<bool> fConfigApplyMassEC{"cfgApplyMassEC", false, "Apply fit mass for sideband for the energy correlator study"};
2069-
Configurable<bool> fConfigSavehalfevents{"cfgSavehalfevents", false, "Save half event for the energy correlator study"};
2069+
Configurable<int> fConfigSavelessevents{"cfgSavelessevents", 1, "Save less events for the energy correlator study"};
20702070
} fConfigOptions;
20712071

20722072
struct : ConfigurableGroup {
@@ -2791,7 +2791,7 @@ struct AnalysisDileptonTrack {
27912791
if (!event.isEventSelected_bit(0)) {
27922792
continue;
27932793
}
2794-
if (fConfigOptions.fConfigSavehalfevents && event.globalIndex() % 2 == 0)
2794+
if (event.globalIndex() % fConfigOptions.fConfigSavelessevents == 0)
27952795
continue;
27962796
auto groupedBarrelAssocs = assocs.sliceBy(trackAssocsPerCollision, event.globalIndex());
27972797
// groupedBarrelAssocs.bindInternalIndicesTo(&assocs);
@@ -2986,7 +2986,7 @@ struct AnalysisDileptonTrack {
29862986
if (!event.has_mcCollision()) {
29872987
continue;
29882988
}
2989-
if (fConfigOptions.fConfigSavehalfevents && event.globalIndex() % 2 == 0)
2989+
if (event.globalIndex() % fConfigOptions.fConfigSavelessevents == 0)
29902990
continue;
29912991
runEnergyCorrelators<VarManager::kJpsiHadronMass>(event, mcTracks);
29922992
}

0 commit comments

Comments
 (0)