Skip to content

Commit 32c2003

Browse files
authored
Please consider the following formatting changes (#447)
1 parent 89dcda5 commit 32c2003

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

PWGLF/DataModel/LFStrangenessTables.h

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -709,38 +709,38 @@ DECLARE_SOA_DYNAMIC_COLUMN(PFracNeg, pfracneg,
709709

710710
// Calculated on the fly with mass assumption + dynamic tables
711711
DECLARE_SOA_DYNAMIC_COLUMN(MLambda, mLambda, //! mass under lambda hypothesis
712-
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
713-
if(v0type==1){
714-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
715-
};
716-
return 0.0f; // do not provide valid mass if TPC-only
717-
});
712+
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
713+
if (v0type == 1) {
714+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
715+
};
716+
return 0.0f; // do not provide valid mass if TPC-only
717+
});
718718
DECLARE_SOA_DYNAMIC_COLUMN(MAntiLambda, mAntiLambda, //! mass under antilambda hypothesis
719-
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
720-
if(v0type==1){
721-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
722-
};
723-
return 0.0f; // do not provide valid mass if TPC-only
724-
});
719+
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
720+
if (v0type == 1) {
721+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
722+
};
723+
return 0.0f; // do not provide valid mass if TPC-only
724+
});
725725
DECLARE_SOA_DYNAMIC_COLUMN(MK0Short, mK0Short, //! mass under K0short hypothesis
726-
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
727-
if(v0type==1){
728-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
729-
};
730-
return 0.0f; // do not provide valid mass if TPC-only
731-
});
726+
[](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
727+
if (v0type == 1) {
728+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
729+
};
730+
return 0.0f; // do not provide valid mass if TPC-only
731+
});
732732
DECLARE_SOA_DYNAMIC_COLUMN(MLambda_unchecked, mLambda_unchecked, //! mass under lambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
733733
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
734-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
735-
});
734+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
735+
});
736736
DECLARE_SOA_DYNAMIC_COLUMN(MAntiLambda_unchecked, mAntiLambda_unchecked, //! mass under antilambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
737-
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
738-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
739-
});
737+
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
738+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
739+
});
740740
DECLARE_SOA_DYNAMIC_COLUMN(MK0Short_unchecked, mK0Short_unchecked, //! mass under K0short hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
741-
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
742-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
743-
});
741+
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
742+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
743+
});
744744
DECLARE_SOA_DYNAMIC_COLUMN(MGamma, mGamma, //! mass under gamma hypothesis
745745
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float { return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron}); });
746746
// Account for rigidity in case of hypertriton
@@ -824,20 +824,21 @@ DECLARE_SOA_DYNAMIC_COLUMN(PtMC, ptMC, //! V0 pT
824824

825825
// declare legacy mass getters in v0data legacy name space
826826
// caution: these do not have intrinsic protection against photon candidates
827-
namespace legacy{
827+
namespace legacy
828+
{
828829
DECLARE_SOA_DYNAMIC_COLUMN(MLambda, mLambda, //! mass under lambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
829830
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
830-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
831-
});
831+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
832+
});
832833
DECLARE_SOA_DYNAMIC_COLUMN(MAntiLambda, mAntiLambda, //! mass under antilambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
833-
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
834-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
835-
});
834+
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
835+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton});
836+
});
836837
DECLARE_SOA_DYNAMIC_COLUMN(MK0Short, mK0Short, //! mass under K0short hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
837-
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
838-
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
839-
});
840-
} // namespace v0data::legacy
838+
[](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
839+
return RecoDecay::m(std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged});
840+
});
841+
} // namespace legacy
841842
} // namespace v0data
842843

843844
DECLARE_SOA_TABLE(V0Indices, "AOD", "V0INDEX", //! index table when using AO2Ds

0 commit comments

Comments
 (0)