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
2 changes: 1 addition & 1 deletion PWGJE/Tasks/jetSubstructureHFOutput.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 failure on line 1 in PWGJE/Tasks/jetSubstructureHFOutput.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 11 in PWGJE/Tasks/jetSubstructureHFOutput.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

Check failure on line 11 in PWGJE/Tasks/jetSubstructureHFOutput.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 11 in PWGJE/Tasks/jetSubstructureHFOutput.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
// heavy-flavour jet substructure tree filling task (subscribing to jet finder hf and jet substructure hf tasks)
//
/// \author Nima Zardoshti <nima.zardoshti@cern.ch>
Expand Down Expand Up @@ -75,7 +75,7 @@
} products;

Produces<aod::StoredHfDstarGenMcs> storedDstarGenMcsTable;

struct : ConfigurableGroup {
Configurable<float> jetPtMinData{"jetPtMinData", 0.0, "minimum jet pT cut for data jets"};
Configurable<float> jetPtMinDataSub{"jetPtMinDataSub", 0.0, "minimum jet pT cut for eventwise constituent subtracted data jets"};
Expand Down Expand Up @@ -128,7 +128,7 @@
}

struct : PresliceGroup {
PresliceUnsorted<soa::Join<aod::JetCollisions, aod::JMcCollisionLbs>> CollisionsPerMcCollision = aod::jmccollisionlb::mcCollisionId;

Check failure on line 131 in PWGJE/Tasks/jetSubstructureHFOutput.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
PresliceOptional<CandidateCollisionTable> CandidateCollisionsPerCollision = aod::jcandidateindices::collisionId;
PresliceOptional<CandidateMcCollisionTable> CandidateMcCollisionsPerMcCollision = aod::jcandidateindices::mcCollisionId;
PresliceOptional<CandidateMcOnlyCollisionTable> CandidateMcCollisionsPerMcCollisionMCPOnly = aod::jcandidateindices::mcCollisionId;
Expand Down Expand Up @@ -425,7 +425,7 @@
std::vector<int> ptMatching;
std::vector<int> candMatching;
if (jet.has_matchedJetGeo()) {
for (auto& jetTagId : jet.matchedJetGeoIds()) {

Check failure on line 428 in PWGJE/Tasks/jetSubstructureHFOutput.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.
auto jetTagIndex = jetTagMapping.find(jetTagId);
if (jetTagIndex != jetTagMapping.end()) {
geoMatching.push_back(jetTagIndex->second);
Expand All @@ -433,7 +433,7 @@
}
}
if (jet.has_matchedJetPt()) {
for (auto& jetTagId : jet.matchedJetPtIds()) {

Check failure on line 436 in PWGJE/Tasks/jetSubstructureHFOutput.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.
auto jetTagIndex = jetTagMapping.find(jetTagId);
if (jetTagIndex != jetTagMapping.end()) {
ptMatching.push_back(jetTagIndex->second);
Expand All @@ -441,7 +441,7 @@
}
}
if (jet.has_matchedJetCand()) {
for (auto& jetTagId : jet.matchedJetCandIds()) {

Check failure on line 444 in PWGJE/Tasks/jetSubstructureHFOutput.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.
auto jetTagIndex = jetTagMapping.find(jetTagId);
if (jetTagIndex != jetTagMapping.end()) {
candMatching.push_back(jetTagIndex->second);
Expand Down Expand Up @@ -505,7 +505,7 @@
mcCollisionFlag[jetMCP.mcCollisionId()] = true;
if constexpr (!isMCPOnly) {
const auto collisionsPerMcCollision = collisions.sliceBy(preslices.CollisionsPerMcCollision, jetMCP.mcCollisionId());
for (auto collision : collisionsPerMcCollision) {

Check failure on line 508 in PWGJE/Tasks/jetSubstructureHFOutput.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.
collisionFlag[collision.globalIndex()] = true;
}
}
Expand Down Expand Up @@ -570,7 +570,7 @@
candidateMappingMCP.clear();
jetMappingMCP.clear();
candidateMcCollisionMapping.clear();
for (auto mcCollision : mcCollisions) {

Check failure on line 573 in PWGJE/Tasks/jetSubstructureHFOutput.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.
products.hfMcOnlyCollisionsTable(mcCollision.posZ(), mcCollision.accepted(), mcCollision.attempted(), mcCollision.xsectGen(), mcCollision.xsectErr(), mcCollision.weight());
}
}
Expand Down
Loading