Skip to content

Commit fb24a4e

Browse files
authored
[PWGJE] splitting process functions in substrcutre outputs for powheg (#10028)
1 parent dc36de2 commit fb24a4e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

PWGJE/Tasks/jetSubstructureHFOutput.cxx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,20 @@ struct JetSubstructureHFOutputTask {
377377
void processClearMaps(aod::JetCollisions const&)
378378
{
379379
candidateMapping.clear();
380-
candidateCollisionMapping.clear();
381-
candidateMappingMCP.clear();
382380
jetMappingData.clear();
383381
jetMappingDataSub.clear();
384382
jetMappingMCD.clear();
385-
jetMappingMCP.clear();
386383
candidateCollisionMapping.clear();
384+
}
385+
PROCESS_SWITCH(JetSubstructureHFOutputTask, processClearMaps, "process function that clears all the non-mcp maps in each dataframe", true);
386+
387+
void processClearMapsMCP(aod::JetMcCollisions const&)
388+
{
389+
candidateMappingMCP.clear();
390+
jetMappingMCP.clear();
387391
candidateMcCollisionMapping.clear();
388392
}
389-
PROCESS_SWITCH(JetSubstructureHFOutputTask, processClearMaps, "process function that clears all the maps in each dataframe", true);
393+
PROCESS_SWITCH(JetSubstructureHFOutputTask, processClearMapsMCP, "process function that clears all the mcp maps in each dataframe", true);
390394

391395
void processOutputCollisionsData(aod::JetCollisions const& collisions,
392396
JetTableData const& jets,

PWGJE/Tasks/jetSubstructureOutput.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,14 @@ struct JetSubstructureOutputTask {
193193
jetMappingData.clear();
194194
jetMappingDataSub.clear();
195195
jetMappingMCD.clear();
196+
}
197+
PROCESS_SWITCH(JetSubstructureOutputTask, processClearMaps, "process function that clears all the non-mcp maps in each dataframe", true);
198+
199+
void processClearMapsMCP(aod::JetMcCollisions const&)
200+
{
196201
jetMappingMCP.clear();
197202
}
198-
PROCESS_SWITCH(JetSubstructureOutputTask, processClearMaps, "process function that clears all the maps in each dataframe", true);
203+
PROCESS_SWITCH(JetSubstructureOutputTask, processClearMapsMCP, "process function that clears all the mcp maps in each dataframe", true);
199204

200205
void processOutputData(aod::JetCollision const& collision,
201206
soa::Join<aod::ChargedJets, aod::ChargedJetConstituents, aod::CJetSSs> const& jets)

0 commit comments

Comments
 (0)