Skip to content

Commit f61306c

Browse files
committed
add fill meanPt only if config is true
1 parent 6d1d296 commit f61306c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,10 @@ struct FlowSP {
15261526
double meanPxAEvent = sumPxAEvent / meanPxEventCount;
15271527
double meanPxCEvent = sumPxCEvent / meanPxEventCount;
15281528

1529-
registry.fill(HIST("incl/meanPT/meanPxA"), spm.centrality, spm.psiA - spm.psiC, meanPxAEvent);
1530-
registry.fill(HIST("incl/meanPT/meanPxC"), spm.centrality, spm.psiA - spm.psiC, meanPxCEvent);
1529+
if(cfgFillMeanPT) {
1530+
registry.fill(HIST("incl/meanPT/meanPxA"), spm.centrality, spm.psiA - spm.psiC, meanPxAEvent);
1531+
registry.fill(HIST("incl/meanPT/meanPxC"), spm.centrality, spm.psiA - spm.psiC, meanPxCEvent);
1532+
}
15311533

15321534
// Now we want to fill the final relPt histogram
15331535
// Loop over all eta and fill bins

0 commit comments

Comments
 (0)