diff --git a/PWGLF/TableProducer/lambdakzeropid.cxx b/PWGLF/TableProducer/lambdakzeropid.cxx index ec763f6fb3b..2dd4ecb79c7 100644 --- a/PWGLF/TableProducer/lambdakzeropid.cxx +++ b/PWGLF/TableProducer/lambdakzeropid.cxx @@ -75,7 +75,7 @@ using TaggedV0s = soa::Join; // For MC association in pre-selection using LabeledTracksExtra = soa::Join; -// Cores with references and TOF pid +// Cores with references and TOF pid using V0FullCores = soa::Join; struct lambdakzeropid { @@ -250,7 +250,7 @@ struct lambdakzeropid { ccdb->setFatalWhenNull(false); // per event - histos.add("hCandidateCounter", "hCandidateCounter", kTH1F, {{500,-0.5f,499.5f}}); + histos.add("hCandidateCounter", "hCandidateCounter", kTH1F, {{500, -0.5f, 499.5f}}); } void initCCDB(soa::Join::iterator const& collision) @@ -319,8 +319,8 @@ struct lambdakzeropid { float timeLambda = lengthV0 / velocityLambda; // in picoseconds // initialize from V0 position and momenta - o2::track::TrackPar posTrack = o2::track::TrackPar({v0.x(), v0.y(), v0.z()}, {v0.pxpos(), v0.pypos(), v0.pzpos()}, +1); - o2::track::TrackPar negTrack = o2::track::TrackPar({v0.x(), v0.y(), v0.z()}, {v0.pxneg(), v0.pyneg(), v0.pzneg()}, -1); + o2::track::TrackPar posTrack = o2::track::TrackPar({v0.x(), v0.y(), v0.z()}, {v0.pxpos(), v0.pypos(), v0.pzpos()}, +1); + o2::track::TrackPar negTrack = o2::track::TrackPar({v0.x(), v0.y(), v0.z()}, {v0.pxneg(), v0.pyneg(), v0.pzneg()}, -1); float deltaTimePositiveLambdaPi = -1e+6; float deltaTimeNegativeLambdaPi = -1e+6; diff --git a/PWGLF/Tasks/QC/strangepidqa.cxx b/PWGLF/Tasks/QC/strangepidqa.cxx index 9d18444412b..a27aa7df1d3 100644 --- a/PWGLF/Tasks/QC/strangepidqa.cxx +++ b/PWGLF/Tasks/QC/strangepidqa.cxx @@ -46,7 +46,7 @@ using std::array; using std::cout; using std::endl; -struct strangepidqa{ +struct strangepidqa { HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; ConfigurableAxis vertexZ{"vertexZ", {30, -15.0f, 15.0f}, ""}; @@ -62,7 +62,7 @@ struct strangepidqa{ // Length axis ConfigurableAxis axisLength{"axisLength", {600, 0.0f, +600.0f}, "track Length (cm)"}; - + void init(InitContext const&) { // Event counter @@ -88,17 +88,18 @@ struct strangepidqa{ histos.add("h2dPionDeltaTimeVsPt", "h2dPionDeltaTimeVsPt", {HistType::kTH2F, {axisPt, axisDeltaTime}}); histos.add("h2dPionDeltaTimeVsRadius", "h2dPionDeltaTimeVsRadius", {HistType::kTH2F, {axisRadius, axisDeltaTime}}); } - + void process(aod::StraCollision const& coll, soa::Join const& v0s) { histos.fill(HIST("hEventVertexZ"), coll.posZ()); - - for (auto& lambda: v0s) { // selecting photons from Sigma0 - if (lambda.pdgCode()!=3122) continue; - + + for (auto& lambda : v0s) { // selecting photons from Sigma0 + if (lambda.pdgCode() != 3122) + continue; + histos.fill(HIST("h2dLambdaRadiusVsPt"), lambda.pt(), lambda.v0radius()); histos.fill(HIST("h2dLambdaMassVsPt"), lambda.pt(), lambda.mLambda()); - + histos.fill(HIST("h2dProtonDeltaTimeVsPt"), lambda.pt(), lambda.posTOFDeltaTLaPr()); histos.fill(HIST("h2dProtonDeltaTimeVsRadius"), lambda.v0radius(), lambda.posTOFDeltaTLaPr()); histos.fill(HIST("h2dPionDeltaTimeVsPt"), lambda.pt(), lambda.negTOFDeltaTLaPi()); @@ -116,7 +117,4 @@ struct strangepidqa{ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{adaptAnalysisTask(cfgc)}; - } - -