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
4 changes: 2 additions & 2 deletions PWGCF/FemtoDream/Core/femtoDreamContainer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2025 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -14,7 +14,7 @@
/// \author Andi Mathis, TU München, andreas.mathis@ph.tum.de
/// \author Valentina Mantovani Sarti, valentina.mantovani-sarti@tum.de
/// \author Georgios Mantzaridis, TU München, georgios.mantzaridis@tum.de
/// \author Anton Riedel, TU München, anton.riedel@tum.de

Check failure on line 17 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#ifndef PWGCF_FEMTODREAM_CORE_FEMTODREAMCONTAINER_H_
#define PWGCF_FEMTODREAM_CORE_FEMTODREAMCONTAINER_H_
Expand All @@ -31,7 +31,7 @@
#include "Math/Vector4D.h"
#include "TMath.h"

using namespace o2::framework;

Check failure on line 34 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.

namespace o2::analysis::femtoDream
{
Expand Down Expand Up @@ -71,7 +71,7 @@
/// \param mTAxis axis object for the mT axis

template <bool isHF = false, typename T>
void init_base(std::string folderName, std::string femtoObs,

Check failure on line 74 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
T& femtoObsAxis, T& pTAxis, T& kTAxis, T& mTAxis, T& multAxis, T& multPercentileAxis,
T& /*kstarAxis4D*/, T& mTAxis4D, T& multAxis4D, T& multPercentileAxis4D,
bool use4dplots, bool extendedplots, T& mP2Axis)
Expand Down Expand Up @@ -108,7 +108,7 @@
/// \param folderName Name of the directory in the output file (no suffix for reconstructed data/ Monte Carlo; "_MC" for Monte Carlo Truth)
/// \param femtoObsAxis axis object for the femto observable axis
template <typename T>
void init_MC(std::string folderName, std::string femtoObs, T femtoObsAxis, T multAxis, T mTAxis, bool smearingByOrigin)

Check failure on line 111 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
{
mHistogramRegistry->add((folderName + "/relPairDist_ReconNoFake").c_str(), ("; " + femtoObs + "; Entries").c_str(), kTH1F, {femtoObsAxis});
mHistogramRegistry->add((folderName + "/relPairkstarmT_ReconNoFake").c_str(), ("; " + femtoObs + "; #it{m}_{T} (GeV/#it{c}^{2})").c_str(), kTH2F, {femtoObsAxis, mTAxis});
Expand Down Expand Up @@ -198,14 +198,14 @@
/// \param part2 Particle two
/// \param mult Multiplicity of the event
template <o2::aod::femtodreamMCparticle::MCType mc, bool isHF = false, typename T1, typename T2>
void setPair_base(const float femtoObs, const float mT, T1 const& part1, T2 const& part2, const int mult, const float multPercentile, bool use4dplots, bool extendedplots)

Check failure on line 201 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
{
const float kT = FemtoDreamMath::getkT(part1, mMassOne, part2, mMassTwo);
if constexpr (isHF) {
float mP2;
if (candidateSelFlag() == o2::aod::fdhf::dplusToPiKPi){
if (candidateSelFlag() == o2::aod::fdhf::dplusToPiKPi) {
mP2 = part2.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
}else if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPKPi) {
} else if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPKPi) {
mP2 = part2.m(std::array{o2::constants::physics::MassProton, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
} else if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPiKP) {
mP2 = part2.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassProton});
Expand Down Expand Up @@ -241,7 +241,7 @@
/// \param part1 Particle one
/// \param part2 Particle two
/// \param mult Multiplicity of the event
void setPair_MC(const float femtoObsMC, const float femtoObs, const float mT, const int mult, const int originPart1, const int originPart2, bool smearingByOrigin)

Check failure on line 244 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
{
if (mHistogramRegistry) {
// Fill the kstar distributions with the reconstructed information but only for particles with the right PDG code
Expand Down Expand Up @@ -289,7 +289,7 @@
}
const float mTMC = FemtoDreamMath::getmT(part1.fdMCParticle(), mMassOne, part2, mMassTwo);

if (abs(part1.fdMCParticle().pdgMCTruth()) == mPDGOne) { // Note: all pair-histogramms are filled with MC truth information ONLY in case of non-fake candidates

Check failure on line 292 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
setPair_base<o2::aod::femtodreamMCparticle::MCType::kTruth, isHF>(femtoObsMC, mTMC, part1.fdMCParticle(), part2, mult, multPercentile, use4dplots, extendedplots);
setPair_MC(femtoObsMC, femtoObs, mT, mult, part1.fdMCParticle().partOriginMCTruth(), part2.flagMc(), smearingByOrigin);
} else {
Expand All @@ -303,7 +303,7 @@
}
const float mTMC = FemtoDreamMath::getmT(part1.fdMCParticle(), mMassOne, part2.fdMCParticle(), mMassTwo);

if (abs(part1.fdMCParticle().pdgMCTruth()) == mPDGOne && abs(part2.fdMCParticle().pdgMCTruth()) == mPDGTwo) { // Note: all pair-histogramms are filled with MC truth information ONLY in case of non-fake candidates

Check failure on line 306 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
setPair_base<o2::aod::femtodreamMCparticle::MCType::kTruth, isHF>(femtoObsMC, mTMC, part1.fdMCParticle(), part2.fdMCParticle(), mult, multPercentile, use4dplots, extendedplots);
setPair_MC(femtoObsMC, femtoObs, mT, mult, part1.fdMCParticle().partOriginMCTruth(), part2.fdMCParticle().partOriginMCTruth(), smearingByOrigin);
} else {
Expand All @@ -319,7 +319,7 @@

protected:
HistogramRegistry* mHistogramRegistry = nullptr; ///< For QA output
static constexpr std::string_view mFolderSuffix[2] = {"SameEvent", "MixedEvent"}; ///< Folder naming for the output according to mEventType

Check failure on line 322 in PWGCF/FemtoDream/Core/femtoDreamContainer.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/constexpr-constant]

Use UpperCamelCase for names of constexpr constants. Names of special constants may be prefixed with "k".
static constexpr femtoDreamContainer::Observable mFemtoObs = obs; ///< Femtoscopic observable to be computed (according to femtoDreamContainer::Observable)
static constexpr int mEventType = eventType; ///< Type of the event (same/mixed, according to femtoDreamContainer::EventType)
float mMassOne = 0.f; ///< PDG mass of particle 1
Expand Down
Loading