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
28 changes: 14 additions & 14 deletions PWGHF/D2H/Tasks/taskNetCharmFluctuations.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/taskNetCharmFluctuations.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 All @@ -14,8 +14,8 @@
/// \author Biao Zhang <biao.zhang@cern.ch>, Heidelberg University
/// \author Fan Si <fsi@physi.uni-heidelberg.de>, Heidelberg University

#include "PWGHF/Core/HfHelper.h"
#include "PWGHF/Core/CentralityEstimation.h"
#include "PWGHF/Core/HfHelper.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
#include "PWGHF/DataModel/CandidateSelectionTables.h"
#include "PWGHF/Utils/utilsEvSelHf.h"
Expand Down Expand Up @@ -120,21 +120,21 @@
};

using CandD0Data = soa::Filtered<soa::Join<aod::HfCand2Prong,
aod::HfCand2Prong0PidPi,
aod::HfCand2Prong1PidPi,
aod::HfCand2Prong0PidKa,
aod::HfCand2Prong1PidKa,
aod::HfCand2ProngKF,
aod::HfSelD0>>;
aod::HfCand2Prong0PidPi,
aod::HfCand2Prong1PidPi,
aod::HfCand2Prong0PidKa,
aod::HfCand2Prong1PidKa,
aod::HfCand2ProngKF,
aod::HfSelD0>>;

using CandDplusData = soa::Filtered<soa::Join<aod::HfCand3Prong,
aod::HfCand3Prong0PidPi,
aod::HfCand3Prong1PidPi,
aod::HfCand3Prong2PidPi,
aod::HfCand3Prong0PidKa,
aod::HfCand3Prong1PidKa,
aod::HfCand3Prong2PidKa,
aod::HfSelDplusToPiKPi>>;
aod::HfCand3Prong0PidPi,
aod::HfCand3Prong1PidPi,
aod::HfCand3Prong2PidPi,
aod::HfCand3Prong0PidKa,
aod::HfCand3Prong1PidKa,
aod::HfCand3Prong2PidKa,
aod::HfSelDplusToPiKPi>>;

using CollData = soa::Join<aod::Collisions,
aod::EvSels,
Expand All @@ -154,7 +154,7 @@
Configurable<std::vector<float>> ptFitBins{"ptFitBins", std::vector<float>{1.f, 2.f, 3.f, 4.f, 6.f, 8.f, 12.f, 24.f}, "pT bins used to assign fitBinId"};
Configurable<bool> fillOmegaRaw{"fillOmegaRaw", true, "Fill omega sums with raw charm/anti-charm candidate counts"};

Filter filterSelectD0Candidates = aod::hf_sel_candidate_d0::isSelD0 >= selectionFlagD0 || aod::hf_sel_candidate_d0::isSelD0bar >= selectionFlagD0bar;

Check failure on line 157 in PWGHF/D2H/Tasks/taskNetCharmFluctuations.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfTaskNetCharmFluctuations: Filter appears too early (before end of Service<).
Filter filterSelectDplusCandidates = aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus;
Partition<CandD0Data> selectedD0ToPiK = aod::hf_sel_candidate_d0::isSelD0 >= selectionFlagD0;
Partition<CandD0Data> selectedD0ToKPi = aod::hf_sel_candidate_d0::isSelD0bar >= selectionFlagD0bar;
Expand All @@ -165,7 +165,7 @@

HistogramRegistry registry{"registry"};

struct CandInfo {

Check failure on line 168 in PWGHF/D2H/Tasks/taskNetCharmFluctuations.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/name/struct-class]

Names of PWGHF structs and classes must start with "Hf".
uint64_t uid = 0;
uint8_t family = 0;
int8_t sign = 0;
Expand Down Expand Up @@ -227,7 +227,7 @@
int16_t getFitBin(float pt) const
{
auto const& bins = ptFitBins.value;
if (bins.size() < 2) {

Check failure on line 230 in PWGHF/D2H/Tasks/taskNetCharmFluctuations.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 -1;
}
for (size_t iBin = 0; iBin + 1 < bins.size(); ++iBin) {
Expand Down
Loading