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: 0 additions & 2 deletions PWGHF/D2H/Tasks/taskD0.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 PWGHF/D2H/Tasks/taskD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

Declare struct members in the conventional order. See the PWGHF coding guidelines.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -105,7 +105,6 @@
HfUpcGapThresholds upcThresholds; // UPC gap determination thresholds
ctpRateFetcher mRateFetcher;


SliceCache cache;
Service<o2::ccdb::BasicCCDBManager> ccdb{};

Expand All @@ -130,7 +129,7 @@
Filter filterD0Flag = (o2::aod::hf_track_index::hfflag & static_cast<uint8_t>(BIT(aod::hf_cand_2prong::DecayType::D0ToPiK))) != static_cast<uint8_t>(0);

Preslice<aod::HfCand2Prong> candD0PerCollision = aod::hf_cand::collisionId;
PresliceUnsorted<CollisionsWithMcLabels> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;

Check failure on line 132 in PWGHF/D2H/Tasks/taskD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfTaskD0: PresliceUnsorted< appears too early (before end of Preslice<).
PresliceUnsorted<CollisionsWithMcLabelsCent> colPerMcCollisionCent = aod::mccollisionlabel::mcCollisionId;

Partition<D0Candidates> selectedD0Candidates = aod::hf_sel_candidate_d0::isSelD0 >= selectionFlagD0 || aod::hf_sel_candidate_d0::isSelD0bar >= selectionFlagD0bar;
Expand Down Expand Up @@ -478,7 +477,6 @@
registry.add("QAtracks/hDCAxy_GapC", "Gap C; DCA xy", {HistType::kTH1F, {{400, -2, 2.}}});
registry.add("QAtracks/hDCAz_GapC", "Gap C; DCA z", {HistType::kTH1F, {{400, -4, 4.}}});


hfEvSel.addHistograms(registry);

ccdb->setURL(ccdbUrl);
Expand Down Expand Up @@ -866,7 +864,7 @@
valuesToFill.push_back(static_cast<double>(ptCandidate));
if constexpr (FillMl) {
auto const& mlScores = candidate.mlProbD0();
if (mlScores.size() == 3) {

Check failure on line 867 in PWGHF/D2H/Tasks/taskD0.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.
valuesToFill.push_back(mlScores[0]);
valuesToFill.push_back(mlScores[1]);
valuesToFill.push_back(mlScores[2]);
Expand Down
Loading