Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,6 @@ void fillNSigmaHistos(TrackObject const& track)
fhNSigmaCombo[kIdBfProton]->Fill(sqrtf(track.tofNSigmaPr() * track.tofNSigmaPr() + actualTPCNSigmaPr * actualTPCNSigmaPr), track.tpcInnerParam());
}


/// \brief Identifies the passed track with TPC and TOF data
/// \param track the track of interest
/// \return the internal track id, -1 if not accepted
Expand Down
97 changes: 47 additions & 50 deletions PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
Expand All @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.
///\file identifiedbf.cxx
///\brief Fills histograms with particles and tracks to calculate the Balance Function
///\author bghanley1995@gmail.com

Check warning on line 13 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Documentation for \author is missing, incorrect or misplaced.

Check warning on line 13 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 13 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Documentation for \file is missing, incorrect or misplaced.
#include <CCDB/BasicCCDBManager.h>
#include <TDirectory.h>
#include <TFolder.h>
Expand Down Expand Up @@ -87,22 +87,22 @@
//============================================================================================
/* histograms */
TH1F* fhVertexZA; //!<! the z vertex distribution for the current multiplicity/centrality class
std::vector<TH1F*> fhN1VsPt{nch, nullptr}; //!<! weighted single particle distribution vs \f$p_T\f$, for the different species
std::vector<TH2F*> fhN1VsEtaPhi{nch, nullptr}; //!<! weighted single particle distribution vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH2F*> fhSum1PtVsEtaPhi{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtPrimary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtSecondary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhSum1PtVsZEtaPhiPt{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3*> fhNuaNueVsZEtaPhiPt{nch, nullptr}; //!<! NUA+NUE correction vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the differents species
std::vector<TH2*> fhPtAvgVsEtaPhi{nch, nullptr}; //!<! average \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
std::vector<std::vector<TH2F*>> fhN2VsPtPt{nch, {nch, nullptr}}; //!<! weighted two particle distribution vs \f${p_T}_1, {p_T}_2\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhN2VsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhN2ContVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle distribution continuous vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSum2PtPtVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle \f$\sum {p_T}_1 {p_T}_2\f$ distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSum2DptDptVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle \f$\sum ({p_T}_1- <{p_T}_1>) ({p_T}_2 - <{p_T}_2>) \f$ distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSupN1N1VsDEtaDPhi{nch, {nch, nullptr}}; //!<! suppressed n1n1 two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSupPt1Pt1VsDEtaDPhi{nch, {nch, nullptr}}; //!<! suppressed \f${p_T}_1 {p_T}_2\f$ two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<TH1F*> fhN1VsPt{nch, nullptr}; //!<! weighted single particle distribution vs \f$p_T\f$, for the different species
std::vector<TH2F*> fhN1VsEtaPhi{nch, nullptr}; //!<! weighted single particle distribution vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH2F*> fhSum1PtVsEtaPhi{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtPrimary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhN1VsZEtaPhiPtSecondary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3F*> fhSum1PtVsZEtaPhiPt{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
std::vector<TH3*> fhNuaNueVsZEtaPhiPt{nch, nullptr}; //!<! NUA+NUE correction vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the differents species
std::vector<TH2*> fhPtAvgVsEtaPhi{nch, nullptr}; //!<! average \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
std::vector<std::vector<TH2F*>> fhN2VsPtPt{nch, {nch, nullptr}}; //!<! weighted two particle distribution vs \f${p_T}_1, {p_T}_2\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhN2VsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhN2ContVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle distribution continuous vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSum2PtPtVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle \f$\sum {p_T}_1 {p_T}_2\f$ distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSum2DptDptVsDEtaDPhi{nch, {nch, nullptr}}; //!<! two-particle \f$\sum ({p_T}_1- <{p_T}_1>) ({p_T}_2 - <{p_T}_2>) \f$ distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSupN1N1VsDEtaDPhi{nch, {nch, nullptr}}; //!<! suppressed n1n1 two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
std::vector<std::vector<TH2F*>> fhSupPt1Pt1VsDEtaDPhi{nch, {nch, nullptr}}; //!<! suppressed \f${p_T}_1 {p_T}_2\f$ two-particle distribution vs \f$\Delta\eta,\;\Delta\phi\f$ for the different species combinations
/* versus centrality/multiplicity profiles */
std::vector<TProfile*> fhN1VsC{nch, nullptr}; //!<! weighted single particle distribution vs event centrality/multiplicity, track 1 and 2
std::vector<TProfile*> fhSum1PtVsC{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs event centrality/multiplicity, track 1 and 2
Expand Down Expand Up @@ -139,7 +139,7 @@
using namespace correlationstask;
using namespace o2::analysis::identifiedbffilter;
if (!(phi < phiup)) {
return phi - constants::math::TwoPI;

Check warning on line 142 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Use RecoDecay::constrainAngle to restrict angle to a given range.
} else {
return phi;
}
Expand Down Expand Up @@ -265,17 +265,15 @@
return ptavg;
}


/// \brief checks whether MC track is a physical primary or secondary
/// \param track passed MC track converted to MCParticle
template <typename TrackObject>
void trackPrimaryCheck(TrackObject const& track, float zvtx, float corr)
{
if constexpr (framework::has_type_v<aod::mctracklabel::McParticleId, typename TrackObject::all_columns>) {
if(isPrimaryCheck(track.template mcParticle_as<aod::McParticles>())){
if (isPrimaryCheck(track.template mcParticle_as<aod::McParticles>())) {
fhN1VsZEtaPhiPtPrimary[track.trackacceptedid()]->Fill(zvtx, getEtaPhiIndex(track) + 0.5, track.pt(), corr);
}
else{
} else {
fhN1VsZEtaPhiPtSecondary[track.trackacceptedid()]->Fill(zvtx, getEtaPhiIndex(track) + 0.5, track.pt(), corr);
}
}
Expand All @@ -289,7 +287,6 @@
return particle.isPhysicalPrimary();
}


/// \brief fills the singles histograms in singles execution mode
/// \param passedtracks filtered table with the tracks associated to the passed index
/// \param tix index, in the singles histogram bank, for the passed filetered track table
Expand Down Expand Up @@ -394,10 +391,10 @@
float deltaeta = track1.eta() - track2.eta();
float deltaphi = track1.phi() - track2.phi();
while (deltaphi >= deltaphiup) {
deltaphi -= constants::math::TwoPI;

Check warning on line 394 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Use RecoDecay::constrainAngle to restrict angle to a given range.
}
while (deltaphi < deltaphilow) {
deltaphi += constants::math::TwoPI;

Check warning on line 397 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Use RecoDecay::constrainAngle to restrict angle to a given range.
}
if ((fUseConversionCuts && fPairCuts.conversionCuts(track1, track2)) || (fUseTwoTrackCut && fPairCuts.twoTrackCut(track1, track2, bfield))) {
/* suppress the pair */
Expand Down Expand Up @@ -514,19 +511,19 @@
for (uint i = 0; i < nch; ++i) {
/* histograms for each track, one and two */
fhN1VsPt[i] = new TH1F(TString::Format("n1_%s_vsPt", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} #GT;p_{t,%s} (GeV/c);#LT n_{1} #GT", tname[i].c_str()).Data(),
ptbins, ptlow, ptup);
TString::Format("#LT n_{1} #GT;p_{t,%s} (GeV/c);#LT n_{1} #GT", tname[i].c_str()).Data(),
ptbins, ptlow, ptup);
/* we don't want the Sumw2 structure being created here */
bool defSumw2 = TH1::GetDefaultSumw2();
if constexpr (smallsingles) {
fhN1VsEtaPhi[i] = new TH2F(TString::Format("n1_%s_vsEtaPhi", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} #GT;#eta_{%s};#varphi_{%s} (radian);#LT n_{1} #GT", tname[i].c_str(), tname[i].c_str()).Data(),
etabins, etalow, etaup, phibins, philow, phiup);
TString::Format("#LT n_{1} #GT;#eta_{%s};#varphi_{%s} (radian);#LT n_{1} #GT", tname[i].c_str(), tname[i].c_str()).Data(),
etabins, etalow, etaup, phibins, philow, phiup);
fhSum1PtVsEtaPhi[i] = new TH2F(TString::Format("sumPt_%s_vsEtaPhi", tname[i].c_str()).Data(),
TString::Format("#LT #Sigma p_{t,%s} #GT;#eta_{%s};#varphi_{%s} (radian);#LT #Sigma p_{t,%s} #GT (GeV/c)",
tname[i].c_str(), tname[i].c_str(), tname[i].c_str(), tname[i].c_str())
.Data(),
etabins, etalow, etaup, phibins, philow, phiup);
TString::Format("#LT #Sigma p_{t,%s} #GT;#eta_{%s};#varphi_{%s} (radian);#LT #Sigma p_{t,%s} #GT (GeV/c)",
tname[i].c_str(), tname[i].c_str(), tname[i].c_str(), tname[i].c_str())
.Data(),
etabins, etalow, etaup, phibins, philow, phiup);
} else {
TH1::SetDefaultSumw2(false);
fhN1VsZEtaPhiPt[i] = new TH3F(
Expand All @@ -545,7 +542,7 @@
ptbins,
ptlow,
ptup);

fhN1VsZEtaPhiPtPrimary[i] = new TH3F(
TString::Format("n1_%s_Primary_vsZ_vsEtaPhi_vsPt", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} Primary #GT;vtx_{z};#eta_{%s}#times#varphi_{%s};p_{t,%s} (GeV/c)",
Expand Down Expand Up @@ -636,24 +633,24 @@
for (uint i = 0; i < nch; ++i) {
/* histograms for each track species */
fhN1VsEtaPhi[i] = new TH2F(TString::Format("n1_%s_vsEtaPhi", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} #GT;#eta_{%s};#varphi_{%s} (radian);#LT n_{1} #GT", tname[i].c_str(), tname[i].c_str()).Data(),
etabins, etalow, etaup, phibins, philow, phiup);
TString::Format("#LT n_{1} #GT;#eta_{%s};#varphi_{%s} (radian);#LT n_{1} #GT", tname[i].c_str(), tname[i].c_str()).Data(),
etabins, etalow, etaup, phibins, philow, phiup);
fhSum1PtVsEtaPhi[i] = new TH2F(TString::Format("sumPt_%s_vsEtaPhi", tname[i].c_str()).Data(),
TString::Format("#LT #Sigma p_{t,%s} #GT;#eta_{%s};#varphi_{%s} (radian);#LT #Sigma p_{t,%s} #GT (GeV/c)",
tname[i].c_str(), tname[i].c_str(), tname[i].c_str(), tname[i].c_str())
.Data(),
etabins, etalow, etaup, phibins, philow, phiup);
TString::Format("#LT #Sigma p_{t,%s} #GT;#eta_{%s};#varphi_{%s} (radian);#LT #Sigma p_{t,%s} #GT (GeV/c)",
tname[i].c_str(), tname[i].c_str(), tname[i].c_str(), tname[i].c_str())
.Data(),
etabins, etalow, etaup, phibins, philow, phiup);
fhN1VsC[i] = new TProfile(TString::Format("n1_%s_vsM", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} #GT (weighted);Centrality/Multiplicity (%%);#LT n_{1} #GT").Data(),
100, 0.0, 100.0);
TString::Format("#LT n_{1} #GT (weighted);Centrality/Multiplicity (%%);#LT n_{1} #GT").Data(),
100, 0.0, 100.0);
fhSum1PtVsC[i] = new TProfile(TString::Format("sumPt_%s_vsM", tname[i].c_str()),
TString::Format("#LT #Sigma p_{t,%s} #GT (weighted);Centrality/Multiplicity (%%);#LT #Sigma p_{t,%s} #GT (GeV/c)", tname[i].c_str(), tname[i].c_str()).Data(),
100, 0.0, 100.0);
TString::Format("#LT #Sigma p_{t,%s} #GT (weighted);Centrality/Multiplicity (%%);#LT #Sigma p_{t,%s} #GT (GeV/c)", tname[i].c_str(), tname[i].c_str()).Data(),
100, 0.0, 100.0);
fhN1NWVsC[i] = new TProfile(TString::Format("n1Nw_%s_vsM", tname[i].c_str()).Data(),
TString::Format("#LT n_{1} #GT;Centrality/Multiplicity (%%);#LT n_{1} #GT").Data(),
100, 0.0, 100.0);
TString::Format("#LT n_{1} #GT;Centrality/Multiplicity (%%);#LT n_{1} #GT").Data(),
100, 0.0, 100.0);
fhSum1PtNWVsC[i] = new TProfile(TString::Format("sumPtNw_%s_vsM", tname[i].c_str()).Data(),
TString::Format("#LT #Sigma p_{t,%s} #GT;Centrality/Multiplicity (%%);#LT #Sigma p_{t,%s} #GT (GeV/c)", tname[i].c_str(), tname[i].c_str()).Data(), 100, 0.0, 100.0);
TString::Format("#LT #Sigma p_{t,%s} #GT;Centrality/Multiplicity (%%);#LT #Sigma p_{t,%s} #GT (GeV/c)", tname[i].c_str(), tname[i].c_str()).Data(), 100, 0.0, 100.0);
fhNuaNueVsZEtaPhiPt[i] = nullptr;
fhPtAvgVsEtaPhi[i] = nullptr;
fOutputList->Add(fhN1VsEtaPhi[i]);
Expand All @@ -672,22 +669,22 @@
// const char* pname = chargePairsNames[i][j].c_str();
const char* pname = speciesPairNames[i][j].c_str();
fhN2VsDEtaDPhi[i][j] = new TH2F(TString::Format("n2_12_vsDEtaDPhi_%s", pname), TString::Format("#LT n_{2} #GT (%s);#Delta#eta;#Delta#varphi;#LT n_{2} #GT", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
fhN2ContVsDEtaDPhi[i][j] = new TH2F(TString::Format("n2_12cont_vsDEtaDPhi_%s", pname), TString::Format("#LT n_{2} #GT (%s);#Delta#eta;#Delta#varphi;#LT n_{2} #GT", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
fhSum2PtPtVsDEtaDPhi[i][j] = new TH2F(TString::Format("sumPtPt_12_vsDEtaDPhi_%s", pname), TString::Format("#LT #Sigma p_{t,1}p_{t,2} #GT (%s);#Delta#eta;#Delta#varphi;#LT #Sigma p_{t,1}p_{t,2} #GT (GeV^{2})", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
fhSum2DptDptVsDEtaDPhi[i][j] = new TH2F(TString::Format("sumDptDpt_12_vsDEtaDPhi_%s", pname), TString::Format("#LT #Sigma (p_{t,1} - #LT p_{t,1} #GT)(p_{t,2} - #LT p_{t,2} #GT) #GT (%s);#Delta#eta;#Delta#varphi;#LT #Sigma (p_{t,1} - #LT p_{t,1} #GT)(p_{t,2} - #LT p_{t,2} #GT) #GT (GeV^{2})", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
fhSupN1N1VsDEtaDPhi[i][j] = new TH2F(TString::Format("suppn1n1_12_vsDEtaDPhi_%s", pname), TString::Format("Suppressed #LT n_{1} #GT#LT n_{1} #GT (%s);#Delta#eta;#Delta#varphi;#LT n_{1} #GT#LT n_{1} #GT", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
fhSupPt1Pt1VsDEtaDPhi[i][j] = new TH2F(TString::Format("suppPtPt_12_vsDEtaDPhi_%s", pname), TString::Format("Suppressed #LT p_{t,1} #GT#LT p_{t,2} #GT (%s);#Delta#eta;#Delta#varphi;#LT p_{t,1} #GT#LT p_{t,2} #GT (GeV^{2})", pname),
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
deltaetabins, deltaetalow, deltaetaup, deltaphibins, deltaphilow, deltaphiup);
/* we return it back to previuos state */
TH1::SetDefaultSumw2(defSumw2);

fhN2VsPtPt[i][j] = new TH2F(TString::Format("n2_12_vsPtVsPt_%s", pname), TString::Format("#LT n_{2} #GT (%s);p_{t,1} (GeV/c);p_{t,2} (GeV/c);#LT n_{2} #GT", pname),
ptbins, ptlow, ptup, ptbins, ptlow, ptup);
ptbins, ptlow, ptup, ptbins, ptlow, ptup);

fhN2VsC[i][j] = new TProfile(TString::Format("n2_12_vsM_%s", pname), TString::Format("#LT n_{2} #GT (%s) (weighted);Centrality/Multiplicity (%%);#LT n_{2} #GT", pname), 100, 0.0, 100.0);
fhSum2PtPtVsC[i][j] = new TProfile(TString::Format("sumPtPt_12_vsM_%s", pname), TString::Format("#LT #Sigma p_{t,1}p_{t,2} #GT (%s) (weighted);Centrality/Multiplicity (%%);#LT #Sigma p_{t,1}p_{t,2} #GT (GeV^{2})", pname), 100, 0.0, 100.0);
Expand Down Expand Up @@ -1143,7 +1140,7 @@
int64_t firstNotAssignedIndex = -1;
int64_t lastNotAssignedIndex = -1;

for (auto track : tracks) {

Check warning on line 1143 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Use constant references for non-modified iterators in range-based for loops.
if (track.has_collision()) {
nAssignedTracks++;
} else {
Expand All @@ -1170,7 +1167,7 @@
int64_t firstNotAssignedIndex = -1;
int64_t lastNotAssignedIndex = -1;

for (auto particle : particles) {

Check warning on line 1170 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Use constant references for non-modified iterators in range-based for loops.
if (particle.has_mcCollision()) {
nAssignedParticles++;
} else {
Expand Down Expand Up @@ -1404,7 +1401,7 @@
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
WorkflowSpec workflow{
adaptAnalysisTask<IdentifiedBfCorrelationsTask>(cfgc, TaskName{"IdentifiedBfCorrelationsTaskRec"}, SetDefaultProcesses{{{"processRecLevel", true}, {"processRecLevelMixed", false}, {"processCleaner", false}}}),

Check warning on line 1404 in PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

Device name identified-bf-correlations-task-rec from the specified task name IdentifiedBfCorrelationsTaskRec is an extension of the device name identified-bf-correlations-task from the struct name IdentifiedBfCorrelationsTask but the struct is not templated. Is it adapted multiple times?
adaptAnalysisTask<IdentifiedBfCorrelationsTask>(cfgc, TaskName{"IdentifiedBfCorrelationsTaskGen"}, SetDefaultProcesses{{{"processGenLevel", false}, {"processGenLevelMixed", false}, {"processCleaner", true}}})};
return workflow;
}
Loading