Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions PWGUD/Tasks/flowCorrelationsUpc.cxx
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,20 @@ struct FlowCorrelationsUpc {
return false;
}
if (!collision.vtxITSTPC()) {
return false;
}
return false;
}

if (!collision.sbp()) {
return false;
}
return false;
}

if (!collision.itsROFb()) {
return false;
}
return false;
}

if (!collision.tfb()) {
return false;
}
return false;
}

if (collision.hadronicRate() > cfgIRMaxCut) {
return false;
Expand Down Expand Up @@ -466,7 +466,7 @@ struct FlowCorrelationsUpc {
auto currentRunNumber = collision.runNumber();
auto runDuration = ccdb->getRunDuration(currentRunNumber);

if(!eventSelected(collision))
if (!eventSelected(collision))
return;

loadCorrections(runDuration.first);
Expand Down Expand Up @@ -532,7 +532,7 @@ struct FlowCorrelationsUpc {
tracks2.size() < cfgMinMult || tracks2.size() > cfgMaxMult) {
continue;
}
if(!eventSelected(collision1) || !eventSelected(collision2))
if (!eventSelected(collision1) || !eventSelected(collision2))
continue;

auto runDuration1 = ccdb->getRunDuration(collision1.runNumber());
Expand Down
30 changes: 15 additions & 15 deletions PWGUD/Tasks/flowCumulantsUpc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
}
registry.fill(HIST("hEventCount"), 1.5);

//zdc time cut
// zdc time cut
int neutronClass = -1;
bool xnxn = false, onon = false, xnon = false, onxn = false;
float energyCommonZNA = collision.energyCommonZNA(), energyCommonZNC = collision.energyCommonZNC();
Expand Down Expand Up @@ -705,15 +705,15 @@
neutronClass = 3;
registry.fill(HIST("neutronClass"), 1, 1);
}
if(cfgZdcTime) {
if (cfgZdcTime) {
// reject 0n0n and XnXn
if(neutronClass == 0 || neutronClass == 3) {
if (neutronClass == 0 || neutronClass == 3) {

Check failure on line 710 in PWGUD/Tasks/flowCumulantsUpc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return;
}
// if A or C gap is requested, keep corresponding neutron class
if(cfgGapSideA || cfgGapSideC) {
if((cfgGapSideA && neutronClass == 1) ||
(cfgGapSideC && neutronClass == 2)) {
if (cfgGapSideA || cfgGapSideC) {
if ((cfgGapSideA && neutronClass == 1) ||
(cfgGapSideC && neutronClass == 2)) {

Check failure on line 716 in PWGUD/Tasks/flowCumulantsUpc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
// accepted
} else {
return;
Expand Down Expand Up @@ -755,20 +755,20 @@
}
registry.fill(HIST("hEventCount"), 5.5);
if (!collision.vtxITSTPC()) {
return;
return;
}
registry.fill(HIST("hEventCount"), 6.5);
if (!collision.sbp()) {
return;
}
return;
}
registry.fill(HIST("hEventCount"), 7.5);
if (!collision.itsROFb()) {
return;
}
return;
}
registry.fill(HIST("hEventCount"), 8.5);
if (!collision.tfb()) {
return;
}
return;
}
registry.fill(HIST("hEventCount"), 9.5);

if (cfgRctFlagEnabled) {
Expand Down Expand Up @@ -871,15 +871,15 @@
}
}
registry.fill(HIST("hEventCount"), 11.5);
if(collision.hadronicRate() > cfgIRMaxCut){
if (collision.hadronicRate() > cfgIRMaxCut) {
return;
}
registry.fill(HIST("interactionRate"), collision.hadronicRate());
registry.fill(HIST("hEventCount"), 12.5);

// Filling Flow Container
for (uint l_ind = 0; l_ind < corrconfigs.size(); l_ind++) {
fillFC(corrconfigs.at(l_ind), independent, lRandom);
fillFC(corrconfigs.at(l_ind), independent, lRandom);
}
}
PROCESS_SWITCH(FlowCumulantsUpc, processData, "processData", true);
Expand Down
Loading