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
9 changes: 9 additions & 0 deletions PWGCF/FemtoDream/Core/femtoDreamUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,18 @@
case o2::constants::physics::Pdg::kPhi:
mass = o2::constants::physics::MassPhi;
break;
case o2::constants::physics::Pdg::kD0:
mass = o2::constants::physics::MassD0;
break;
case o2::constants::physics::Pdg::kDStar:
mass = o2::constants::physics::MassDStar;
break;
case o2::constants::physics::Pdg::kDPlus:
mass = o2::constants::physics::MassDPlus;
break;
case o2::constants::physics::Pdg::kDS:
mass = o2::constants::physics::MassDS;
break;
case o2::constants::physics::Pdg::kLambdaCPlus:
mass = o2::constants::physics::MassLambdaCPlus;
break;
Expand Down Expand Up @@ -116,7 +125,7 @@
}

} else if (partType == o2::aod::femtodreamparticle::ParticleType::kV0Child) {
switch (abs(motherPDG)) {

Check failure on line 128 in PWGCF/FemtoDream/Core/femtoDreamUtils.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
case kLambda0:
partOrigin = aod::femtodreamMCparticle::ParticleOriginMCTruth::kSecondaryDaughterLambda;
break;
Expand All @@ -140,7 +149,7 @@
{
for (const auto& obj : myVector) {
if (obj.name == name) {
if (std::abs(static_cast<float>((obj.defaultValue.template get<R>() - value))) < 1e-2) {

Check failure on line 152 in PWGCF/FemtoDream/Core/femtoDreamUtils.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return true; // Found a match
}
}
Expand Down
Loading