Skip to content

Commit 2959ceb

Browse files
authored
Add files via upload
1 parent 9e1cb77 commit 2959ceb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +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"};
20692070
} fConfigOptions;
20702071

20712072
struct : ConfigurableGroup {
@@ -2790,6 +2791,8 @@ struct AnalysisDileptonTrack {
27902791
if (!event.isEventSelected_bit(0)) {
27912792
continue;
27922793
}
2794+
if (fConfigOptions.fConfigSavehalfevents && event.globalIndex() % 2 == 0)
2795+
continue;
27932796
auto groupedBarrelAssocs = assocs.sliceBy(trackAssocsPerCollision, event.globalIndex());
27942797
// groupedBarrelAssocs.bindInternalIndicesTo(&assocs);
27952798
auto groupedDielectrons = dileptons.sliceBy(dielectronsPerCollision, event.globalIndex());
@@ -2983,6 +2986,8 @@ struct AnalysisDileptonTrack {
29832986
if (!event.has_mcCollision()) {
29842987
continue;
29852988
}
2989+
if (fConfigOptions.fConfigSavehalfevents && event.globalIndex() % 2 == 0)
2990+
continue;
29862991
runEnergyCorrelators<VarManager::kJpsiHadronMass>(event, mcTracks);
29872992
}
29882993
}

0 commit comments

Comments
 (0)