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
3 changes: 2 additions & 1 deletion PWGLF/Tasks/Strangeness/strangeness_in_jets.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/Strangeness/strangeness_in_jets.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 @@ -11,7 +11,7 @@
///
/// \file strangeness in jets.cxx
/// \author Alberto Caliva (alberto.caliva@cern.ch), Francesca Ercolessi (francesca.ercolessi@cern.ch)
/// \since May 22, 2024

Check warning on line 14 in PWGLF/Tasks/Strangeness/strangeness_in_jets.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 14 in PWGLF/Tasks/Strangeness/strangeness_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

#include <TLorentzVector.h>
#include <TMath.h>
Expand Down Expand Up @@ -58,7 +58,7 @@
HistogramRegistry registryQC{"registryQC", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};

// Global Parameters
Configurable<int> particle_of_interest{"particle_of_interest", 0, "0=v0, 1=cascade, 2=pions"};

Check warning on line 61 in PWGLF/Tasks/Strangeness/strangeness_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
Configurable<double> min_jet_pt{"min_jet_pt", 10.0, "Minimum pt of the jet"};
Configurable<double> Rjet{"Rjet", 0.3, "Jet resolution parameter R"};
Configurable<double> zVtx{"zVtx", 10.0, "Maximum zVertex"};
Expand Down Expand Up @@ -1909,7 +1909,8 @@
}
PROCESS_SWITCH(strangeness_in_jets, processGen, "Process generated MC", false);

void processSecondaryV0s(SimCollisions const& collisions, MCTracks const& mcTracks, aod::V0Datas const& fullV0s, const aod::McParticles&) {
void processSecondaryV0s(SimCollisions const& collisions, MCTracks const& mcTracks, aod::V0Datas const& fullV0s, const aod::McParticles&)
{

for (const auto& collision : collisions) {

Expand All @@ -1917,7 +1918,7 @@
if (!collision.sel8())
continue;

if (TMath::Abs(collision.posZ()) > zVtx)

Check warning on line 1921 in PWGLF/Tasks/Strangeness/strangeness_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue;

auto tracks_per_coll = mcTracks.sliceBy(perCollision, collision.globalIndex());
Expand All @@ -1926,7 +1927,7 @@
// List of Tracks
std::vector<TVector3> trk;

for (auto track : tracks_per_coll) {

Check warning on line 1930 in PWGLF/Tasks/Strangeness/strangeness_in_jets.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 (!passedTrackSelectionForJetReconstruction(track))
continue;
Expand Down Expand Up @@ -1984,7 +1985,7 @@
int n_jets_selected(0);
for (int i = 0; i < static_cast<int>(jet.size()); i++) {

if ((TMath::Abs(jet[i].Eta()) + Rjet) > max_eta)

Check warning on line 1988 in PWGLF/Tasks/Strangeness/strangeness_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue;

// Perpendicular cones
Expand All @@ -2000,7 +2001,7 @@
double ptJet(0);
double ptUE(0);

for (auto track : tracks_per_coll) {

Check warning on line 2004 in PWGLF/Tasks/Strangeness/strangeness_in_jets.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 (!passedTrackSelectionForJetReconstruction(track))
continue;
Expand Down Expand Up @@ -2062,8 +2063,8 @@

int pdg_parent(0);
bool isPhysPrim = false;
for (auto& particleMotherOfNeg : negParticle.mothers_as<aod::McParticles>()) {

Check warning on line 2066 in PWGLF/Tasks/Strangeness/strangeness_in_jets.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.
for (auto& particleMotherOfPos : posParticle.mothers_as<aod::McParticles>()) {

Check warning on line 2067 in PWGLF/Tasks/Strangeness/strangeness_in_jets.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 (particleMotherOfNeg == particleMotherOfPos) {
pdg_parent = particleMotherOfNeg.pdgCode();
isPhysPrim = particleMotherOfNeg.isPhysicalPrimary();
Expand Down
Loading