Skip to content
Merged
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
29 changes: 18 additions & 11 deletions PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright
// holders. All rights not expressly granted are reserved.
//
Expand All @@ -8,7 +8,7 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

Check failure on line 10 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / copyright headers

Missing or malformed copyright notice

This source file is missing the correct copyright notice.
//

Check warning on line 11 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.
// Authors: Omar Vazque,
// Date: 01.28.2025

Expand Down Expand Up @@ -50,9 +50,12 @@

// Histogram registry: an object to hold your histograms
HistogramRegistry histos{
"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
"histos",
{},
OutputObjHandlingPolicy::AnalysisObject};

void init(InitContext const&) {
void init(InitContext const&)
{
// define axes you want to use
const AxisSpec axisEvent{3, 0., +3.0, ""};
const AxisSpec axisEta{30, -1.5, +1.5, "#eta"};
Expand Down Expand Up @@ -130,10 +133,11 @@
}

void processZdcCollAss(
ColEvSels const& cols, BCsRun3 const& /*bcs*/, aod::Zdcs const& /*zdcs*/,
aod::FV0As const& /*fv0as*/, aod::FT0s const& /*ft0s*/,
soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA> const& tracks) {
ColEvSels const& cols, BCsRun3 const& /*bcs*/, aod::Zdcs const& /*zdcs*/,
aod::FV0As const& /*fv0as*/, aod::FT0s const& /*ft0s*/,
soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA> const& tracks)
{
for (auto& collision : cols) {

Check warning on line 140 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
histos.fill(HIST("hEventCounter"), 0.5);
if (!collision.sel8()) {
return;
Expand Down Expand Up @@ -163,10 +167,10 @@
float multV0A{0.};

if (foundBC.has_ft0()) {
for (auto amplitude : foundBC.ft0().amplitudeA()) {

Check warning on line 170 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
multT0A += amplitude;
}
for (auto amplitude : foundBC.ft0().amplitudeC()) {

Check warning on line 173 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
multT0C += amplitude;
}
} else {
Expand All @@ -174,7 +178,7 @@
}

if (foundBC.has_fv0a()) {
for (auto amplitude : foundBC.fv0a().amplitude()) {

Check warning on line 181 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
multV0A += amplitude;
}
} else {
Expand Down Expand Up @@ -204,14 +208,16 @@
histos.get<TH2>(HIST("debunch"))->Fill(tZNA - tZNC, tZNA + tZNC);

histos.get<TH2>(HIST("ZNvsFV0Acorrel"))
->Fill(multV0A / 100., aZNA + aZNC);
->Fill(multV0A / 100., aZNA + aZNC);
histos.get<TH2>(HIST("ZNvsFT0correl"))
->Fill((multT0A + multT0C) / 100., aZNC + aZNA);
} // foundBC.has_zdc()
->Fill((multT0A + multT0C) / 100., aZNC + aZNA);
} // foundBC.has_zdc()

for (auto& track : tracks) {

Check warning on line 216 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (track.tpcNClsCrossedRows() < 70) continue;
if (fabs(track.dcaXY()) > 0.2) continue;
if (track.tpcNClsCrossedRows() < 70)
continue;
if (fabs(track.dcaXY()) > 0.2)

Check warning on line 219 in PWGLF/Tasks/GlobalEventProperties/ucc-zdc-analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue;

histos.fill(HIST("etaHistogram"), track.eta());
}
Expand Down Expand Up @@ -280,6 +286,7 @@
// "Processing ZDC vs. mult. w. collision association", true);
};

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) {
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<UCCZDC>(cfgc)};
}
Loading