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
27 changes: 13 additions & 14 deletions PWGLF/TableProducer/Nuspex/lnnRecoTask.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 PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -19,8 +19,8 @@
#include "Common/Core/RecoDecay.h"
#include "Common/Core/trackUtilities.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/PIDResponseTOF.h"
#include "Common/DataModel/TrackSelectionTables.h"

Expand Down Expand Up @@ -67,7 +67,7 @@
using TracksFull = soa::Join<aod::TracksIU, aod::TracksExtra, o2::aod::TrackSelection, aod::TracksCovIU, aod::pidTOFFullTr, aod::pidTOFbeta, aod::pidTOFmass, aod::TracksDCA, aod::Tracks>;
using TracksFullMC = soa::Join<aod::TracksIU, aod::TracksExtra, o2::aod::TrackSelection, aod::TracksCovIU, aod::pidTOFFullTr, aod::pidTOFbeta, aod::pidTOFmass, aod::McTrackLabels>;
using CollisionsFull = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0As, aod::CentFT0Cs, aod::CentFT0Ms, aod::CentFV0As, aod::MultsGlobal>;
using CollisionsFullMC = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels, aod::CentFT0As, aod::CentFT0Cs, aod::CentFT0Ms, aod::CentFV0As, aod::MultsGlobal >;
using CollisionsFullMC = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels, aod::CentFT0As, aod::CentFT0Cs, aod::CentFT0Ms, aod::CentFV0As, aod::MultsGlobal>;

using CollisionCandidates = o2::soa::Join<o2::aod::Collisions, o2::aod::EvSels, aod::CentFT0Cs>;
using CollisionCandidatesMC = o2::soa::Join<o2::aod::Collisions, o2::aod::EvSels, aod::CentFT0Cs, o2::aod::McCollisionLabels>;
Expand Down Expand Up @@ -132,7 +132,7 @@
std::shared_ptr<TH2> h2FT0CPtGenColGenCandMC;
std::shared_ptr<TH2> h2FT0CPtGenColGenTrStrMC;
std::shared_ptr<TH2> h2FT0CPtGenColGenPiStrMC;
// Event and signal loss
// Event and signal loss
std::shared_ptr<TH1> hEvtMC;
std::shared_ptr<TH1> hImpactParamGen;
std::shared_ptr<TH1> hImpactParamGenOneReco;
Expand Down Expand Up @@ -380,7 +380,6 @@
const AxisSpec multAxis = {binsMult, "Multiplicity #eta <0.5"};
const AxisSpec globalTrackMultAxis = {binsglobalTrackMult, "N_{global track mult.}"};


hNsigma3HSel = qaRegistry.add<TH2>("PID/hNsigma3HSel", ";#it{p}^{TPC}/z (GeV/#it{c}); n_{#sigma} ({}^{3}H)", HistType::kTH2F, {rigidityAxis, nSigma3HtpcAxis});
hNsigma3HSelTOF = qaRegistry.add<TH2>("PID/hNsigma3HSelTOF", ";#it{p}_{T} (GeV/#it{c}); n_{#sigma} ({}^{3}H)", HistType::kTH2F, {tPtAxis, nSigma3HtpcAxis});
h2Nsigma3HSelTPCTOF = qaRegistry.add<TH2>("PID/h2Nsigma3HSelTPCTOF", ";n_{#sigma TPC} ({}^{3}H); n_{#sigma TOF} ({}^{3}H)", HistType::kTH2F, {nSigma3HtpcAxis, nSigma3HtofAxis});
Expand All @@ -399,7 +398,7 @@
hCentFT0C = qaRegistry.add<TH1>("hCentFT0C", ";Centrality; ", HistType::kTH1D, {{100, 0, 100}});
hCentFT0M = qaRegistry.add<TH1>("hCentFT0M", ";Centrality; ", HistType::kTH1D, {{100, 0, 100}});
hCentFV0A = qaRegistry.add<TH1>("hCentFV0A", ";Centrality; ", HistType::kTH1D, {{100, 0, 100}});

hLnnCandLoss = qaRegistry.add<TH1>("CandCounts/hLnnCandLoss", ";CandLoss; ", HistType::kTH1D, {{7, -0.5, 6.5}});
hEvents->GetXaxis()->SetBinLabel(1, "All");
hEvents->GetXaxis()->SetBinLabel(2, "sel8");
Expand Down Expand Up @@ -760,8 +759,9 @@
if (lnnCand.isMatter) {
hdEdx3HPosTrack->Fill(lnnCand.mom3HTPC, h3track.tpcSignal());
} else {
hdEdx3HNegTrack->Fill(-lnnCand.mom3HTPC, h3track.tpcSignal());}

hdEdx3HNegTrack->Fill(-lnnCand.mom3HTPC, h3track.tpcSignal());
}

hNsigma3HSel->Fill(chargeFactor * lnnCand.mom3HTPC, lnnCand.nSigma3H);
if (h3track.hasTOF()) {
h3HSignalPtTOF->Fill(chargeFactor * h3track.pt(), beta);
Expand Down Expand Up @@ -1010,7 +1010,7 @@
}

// Fill only tracks producing to the current reconstructed collision
auto tracksThisCollision = tracksMC.sliceBy( tracksPerCollision, collIdx);
auto tracksThisCollision = tracksMC.sliceBy(tracksPerCollision, collIdx);
for (const auto& trackMC : tracksThisCollision) {
if (!trackMC.has_mcParticle()) {
continue;
Expand All @@ -1020,7 +1020,7 @@
if (!isLnnDecay(mc)) {
continue;
}
fillMcHistograms(trackMC, mc,collision);
fillMcHistograms(trackMC, mc, collision);
}

for (const auto& lnnCand : lnnCandidates) {
Expand Down Expand Up @@ -1111,7 +1111,7 @@
LnnCandidate lnnCand;
lnnCand.pdgCode = mcPart.pdgCode();
lnnCand.survEvSelection = isGoodCollision[mcPart.mcCollisionId()];

int chargeFactor = -1 + 2 * (lnnCand.pdgCode > 0);

int kDimGen = 3;
Expand Down Expand Up @@ -1236,9 +1236,8 @@
trSign = daughter.pdgCode() > 0 ? 1 : -1;

daugh1 = ROOT::Math::PxPyPzMVector(daughter.px(), daughter.py(), daughter.pz(), h3Mass);

}
else if (std::abs(daughter.pdgCode()) == piDauPdg) {

} else if (std::abs(daughter.pdgCode()) == piDauPdg) {

dauPi = true;
piSign = daughter.pdgCode() > 0 ? 1 : -1;
Expand All @@ -1248,7 +1247,7 @@
}

if (!dauTr || !dauPi || (trSign * piSign) > 0) {
continue;
continue;
}

mother = daugh1 + daugh2;
Expand Down
Loading