Skip to content
Closed
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
15 changes: 8 additions & 7 deletions PWGCF/Flow/Tasks/flowZdcTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,10 @@
xAxis->SetBinLabel(1, "All events");
<<<<<<< HEAD
xAxis->SetBinLabel(2, "SelEigth");
xAxis->SetBinLabel(3, "NoSameBunchPileup");; // reject collisions in case of pileup with another collision in the same foundBC
xAxis->SetBinLabel(4, "GoodZvtxFT0vsPV");; // small difference between z-vertex from PV and from FT0
xAxis->SetBinLabel(3, "NoSameBunchPileup");
; // reject collisions in case of pileup with another collision in the same foundBC
xAxis->SetBinLabel(4, "GoodZvtxFT0vsPV");
; // small difference between z-vertex from PV and from FT0
xAxis->SetBinLabel(5, "NoCollInTimeRangeStrict");
xAxis->SetBinLabel(6, "NoCollInTimeRangeStandard");
xAxis->SetBinLabel(7, "NoCollInRofStrict");
Expand All @@ -283,7 +285,7 @@
xAxis->SetBinLabel(14, "has ZDC?");
xAxis->SetBinLabel(15, "has T0?");
xAxis->SetBinLabel(16, "Within TDC cut?");
xAxis->SetBinLabel(17, "Within ZEM cut?");

Check failure on line 288 in PWGCF/Flow/Tasks/flowZdcTask.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
=======
xAxis->SetBinLabel(2, "sel8");
xAxis->SetBinLabel(3, "kNoSameBunchPileup"); // reject collisions in case of pileup with another collision in the same foundBC
Expand Down Expand Up @@ -340,7 +342,7 @@
histos.add("debunch", ";t_{ZDC}-t_{ZDA};t_{ZDC}+t_{ZDA}", kTH2F, {{{nBinsTDC, minTdc, maxTdc}, {nBinsTDC, minTdc, maxTdc}}});
}

if (doprocessQA){
if (doprocessQA) {
histos.add("T0Ccent", ";;Entries", kTH1F, {axisCent});

histos.add("ZNVsFT0A", ";T0A (#times 1/100);ZNA+ZNC;", kTH2F, {{{nBinsAmpFT0, 0., maxAmpFT0}, {nBinsZDC, -0.5, maxZn}}});
Expand Down Expand Up @@ -383,7 +385,6 @@
histos.add("ZNVsNch", ";#it{N}_{ch} (|#eta|<0.8);ZNA+ZNC;", kTH2F, {{{nBinsNch, minNch, maxNch}, {nBinsZDC, minNch, maxZn}}});
histos.add("ZNDifVsNch", ";#it{N}_{ch} (|#eta|<0.8);ZNA-ZNC;", kTH2F, {{{nBinsNch, minNch, maxNch}, {100, -50., 50.}}});
}

}
template <typename EventCuts>
bool isEventSelected(EventCuts const& col)
Expand Down Expand Up @@ -477,7 +478,7 @@
return false;
}
histos.fill(HIST("eventSelectionSteps"), 9);
if (col.centFT0C() < 0. || col.centFT0C() > 100.) {

Check failure on line 481 in PWGCF/Flow/Tasks/flowZdcTask.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 false;
}
histos.fill(HIST("eventSelectionSteps"), 10);
Expand Down Expand Up @@ -631,10 +632,9 @@
histos.fill(HIST("ZNDifVsNch"), glbTracks, znA - znC);
if (glbTracks >= minNchSel) {
histos.fill(HIST("NchVsMeanPt"), glbTracks, meanpt / glbTracks);
}
}
}


void processQVector(AodCollisions::iterator const& collision, aod::BCsWithTimestamps const&, AodTracks const& tracks, BCsRun3 const& /*bcs*/, aod::Zdcs const& /*zdcsData*/, aod::ZDCMults const& /*zdcMults*/)
{
if (!isEventSelected(collision)) {
Expand Down Expand Up @@ -794,7 +794,7 @@
std::complex<double> qZNA = std::complex<double>(0.0, 0.0);
std::complex<double> qZNC = std::complex<double>(0.0, 0.0);

for (int sector = 0; sector < 4; ++sector) {

Check failure on line 797 in PWGCF/Flow/Tasks/flowZdcTask.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.
float energyZNA = zdcread.energySectorZNA()[sector];
float energyZNC = zdcread.energySectorZNC()[sector];

Expand Down Expand Up @@ -870,4 +870,5 @@
{
return WorkflowSpec{
adaptAnalysisTask<FlowZdcTask>(cfgc)};
}
}

Check failure on line 874 in PWGCF/Flow/Tasks/flowZdcTask.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
Loading