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
12 changes: 6 additions & 6 deletions PWGHF/TableProducer/candidateCreatorXic0Omegac0.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 warning on line 1 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.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 @@ -16,7 +16,7 @@
/// \author Yunfan Liu <yunfan.liu@cern.ch>, China University of Geosciences

#ifndef HomogeneousField
#define HomogeneousField

Check warning on line 19 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.
#endif

#include <iterator>
Expand Down Expand Up @@ -326,7 +326,6 @@
registry.add("hKFcosPaV0ToCasc", "hKFcosPaV0ToCasc", kTH1D, {{5000, 0.8f, 1.1f}});
registry.add("hKFcosPaCascToOmegac", "hKFcosPaCascToOmegac", kTH1D, {{5000, 0.8f, 1.1f}});


hfEvSel.addHistograms(registry); // collision monitoring

df.setPropagateToPCA(propagateToPCA);
Expand Down Expand Up @@ -798,7 +797,7 @@
// mass window cut on lambda before mass constraint
float massLam, sigLam;
kfV0.GetMass(massLam, sigLam);
if (TMath::Abs(massLam - MassLambda0) > lambdaMassWindow)

Check warning on line 800 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue;
// err_mass>0 of Lambda
if (sigLam <= 0)
Expand Down Expand Up @@ -853,7 +852,7 @@
}
registry.fill(HIST("hInvMassOmegaMinus"), massCasc);
kfOmega.TransportToDecayVertex();
//rej: Add competing rejection to minimize misidentified Xi impact. Reject if kfBachPionRej is Pion and the constructed cascade has Xi's invariant mass.
// rej: Add competing rejection to minimize misidentified Xi impact. Reject if kfBachPionRej is Pion and the constructed cascade has Xi's invariant mass.

//__________________________________________
//*>~<* step 3 : reconstruc Omegac0 with KF
Expand Down Expand Up @@ -1090,11 +1089,11 @@
registry.fill(HIST("hKFParticleV0TopoChi2"), kfOmegac0Candidate.chi2NdfTopoV0ToCasc);
registry.fill(HIST("hKFParticleCascTopoChi2"), kfOmegac0Candidate.chi2NdfTopoCascToOmegac);
registry.fill(HIST("hKFParticlechi2TopoOmegacToPv"), kfOmegac0Candidate.chi2NdfTopoOmegacToPv);
registry.fill(HIST("hKFParticlechi2TopoCascToPv"), kfOmegac0Candidate.chi2NdfTopoCascToPv);
registry.fill(HIST("hKFParticlechi2TopoCascToPv"), kfOmegac0Candidate.chi2NdfTopoCascToPv);
registry.fill(HIST("hKFParticleDcaCharmBaryonDau"), kfOmegac0Candidate.kfDcaOmegacDau);
registry.fill(HIST("hKFParticleDcaXYCascBachToPv"), dcaxyCascBachelor);
registry.fill(HIST("hKFParticleDcaXYV0DauPosToPv"), dcaxyV0Dau0);
registry.fill(HIST("hKFParticleDcaXYV0DauNegToPv"), dcaxyV0Dau1);
registry.fill(HIST("hKFParticleDcaXYV0DauPosToPv"), dcaxyV0Dau0);
registry.fill(HIST("hKFParticleDcaXYV0DauNegToPv"), dcaxyV0Dau1);
registry.fill(HIST("hKfLambda_ldl"), kfOmegac0Candidate.ldlV0);
registry.fill(HIST("hKfOmega_ldl"), kfOmegac0Candidate.ldlCasc);
registry.fill(HIST("hKfOmegaC0_ldl"), kfOmegac0Candidate.ldlOmegac);
Expand Down Expand Up @@ -1265,7 +1264,7 @@
// mass window cut on lambda before mass constraint
float massLam, sigLam;
kfV0.GetMass(massLam, sigLam);
if (TMath::Abs(massLam - MassLambda0) > lambdaMassWindow)

Check warning on line 1267 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue;

// err_mass>0 of Lambda
Expand Down Expand Up @@ -1827,10 +1826,10 @@
using McCollisionsFT0Cs = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Cs>;
using McCollisionsFT0Ms = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Ms>;
using McCollisionsCentFT0Ms = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
PresliceUnsorted<McCollisionsNoCents> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;

Check warning on line 1829 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfCandidateCreatorXic0Omegac0Mc: PresliceUnsorted< appears too early (before end of Preslice<).
PresliceUnsorted<McCollisionsFT0Cs> colPerMcCollisionFT0C = aod::mccollisionlabel::mcCollisionId;
PresliceUnsorted<McCollisionsFT0Ms> colPerMcCollisionFT0M = aod::mccollisionlabel::mcCollisionId;
Preslice<aod::McParticles> mcParticlesPerMcCollision = aod::mcparticle::mcCollisionId;

Check warning on line 1832 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pwghf/struct-member-order]

HfCandidateCreatorXic0Omegac0Mc: Preslice< appears too early (before end of using).

HfEventSelectionMc hfEvSelMc; // mc event selection and monitoring
using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
Expand Down Expand Up @@ -2502,4 +2501,5 @@
return WorkflowSpec{
adaptAnalysisTask<HfCandidateCreatorXic0Omegac0>(cfgc),
adaptAnalysisTask<HfCandidateCreatorXic0Omegac0Mc>(cfgc)};
}
}

Check failure on line 2505 in PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
7 changes: 3 additions & 4 deletions PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.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 warning on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.

Check warning on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.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 @@ -12,7 +12,7 @@
/// \file candidateSelectorToOmegaPi.cxx
/// \brief Omegac0 → Omega Pi selection task
/// \author Federica Zanone <federica.zanone@cern.ch>, Heidelberg University
/// \author Ruiqi Yin <ruiqi.yin@cern.ch>, Fudan University

Check warning on line 15 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#include "CommonConstants/PhysicsConstants.h"
#include "Framework/AnalysisTask.h"
Expand All @@ -30,7 +30,7 @@
using namespace o2::framework;
using namespace o2::analysis;

enum pidInfoStored {

Check warning on line 33 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/enum]

Use UpperCamelCase for names of enumerators and their values.
kPiFromLam = 0,
kPrFromLam,
kKaFromCasc,
Expand Down Expand Up @@ -230,8 +230,7 @@
TracksSel const& tracks,
TracksSelLf const& lfTracks)
{
if constexpr (std::is_same_v<CandidateType, aod::HfOmegacKf>)
{
if constexpr (std::is_same_v<CandidateType, aod::HfOmegacKf>) {
// looping over charm baryon candidates
for (const auto& candidate : candidates) {

Expand Down Expand Up @@ -626,8 +625,8 @@
}

hfSelToOmegaPi(statusPidLambda, statusPidCascade, statusPidCharmBaryon, statusInvMassLambda, statusInvMassCascade, statusInvMassCharmBaryon, resultSelections, infoTpcStored, infoTofStored,
trackPiFromCharm.tpcNSigmaPi(), trackKaFromCasc.tpcNSigmaKa(), trackPiFromLam.tpcNSigmaPi(), trackPrFromLam.tpcNSigmaPr(),
trackPiFromCharm.tofNSigmaPi(), trackKaFromCasc.tofNSigmaKa(), trackPiFromLam.tofNSigmaPi(), trackPrFromLam.tofNSigmaPr());
trackPiFromCharm.tpcNSigmaPi(), trackKaFromCasc.tpcNSigmaKa(), trackPiFromLam.tpcNSigmaPi(), trackPrFromLam.tpcNSigmaPr(),
trackPiFromCharm.tofNSigmaPi(), trackKaFromCasc.tofNSigmaKa(), trackPiFromLam.tofNSigmaPi(), trackPrFromLam.tofNSigmaPr());

if (resultSelections) {
if (!statusPidLambda) {
Expand Down
Loading