Skip to content

Commit 523908e

Browse files
committed
Please consider the following formatting changes
1 parent b466e9b commit 523908e

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

Framework/Core/include/Framework/AnalysisDataModel.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,15 +1990,13 @@ namespace mcparticle_v2
19901990
// note: this has to be declared in a separate namespace so it does not conflict with existing
19911991
// derived data table declarations in O2Physics
19921992
DECLARE_SOA_DYNAMIC_COLUMN(IsPhysicalPrimary, isPhysicalPrimary, //! True if particle is considered a physical primary according to the ALICE definition
1993-
[](uint8_t input_flags, float vx, float vy) -> bool {
1994-
return (o2::aod::mcparticle::Tools::removeIsPhysicalPrimaryBit(input_flags, vx, vy) & o2::aod::mcparticle::enums::PhysicalPrimary) == o2::aod::mcparticle::enums::PhysicalPrimary; });
1993+
[](uint8_t input_flags, float vx, float vy) -> bool { return (o2::aod::mcparticle::Tools::removeIsPhysicalPrimaryBit(input_flags, vx, vy) & o2::aod::mcparticle::enums::PhysicalPrimary) == o2::aod::mcparticle::enums::PhysicalPrimary; });
19951994

19961995
// avoid that the stored flags are provided unprotected via
19971996
// the getter '.flags': analysers will get the correct bit map transparently
1998-
DECLARE_SOA_COLUMN(Flags, storedFlags, uint8_t); //! ALICE specific flags, see MCParticleFlags. Do not use directly. Use the dynamic columns, e.g. producedByGenerator()
1997+
DECLARE_SOA_COLUMN(Flags, storedFlags, uint8_t); //! ALICE specific flags, see MCParticleFlags. Do not use directly. Use the dynamic columns, e.g. producedByGenerator()
19991998
DECLARE_SOA_DYNAMIC_COLUMN(ProtectedFlags, flags, //! protected against
2000-
[](uint8_t input_flags, float vx, float vy) -> uint8_t {
2001-
return o2::aod::mcparticle::Tools::removeIsPhysicalPrimaryBit(input_flags, vx, vy); });
1999+
[](uint8_t input_flags, float vx, float vy) -> uint8_t { return o2::aod::mcparticle::Tools::removeIsPhysicalPrimaryBit(input_flags, vx, vy); });
20022000

20032001
} // namespace mcparticle_v2
20042002

Framework/Core/include/Framework/DataTypes.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,16 @@ namespace o2::aod::mcparticle
164164
constexpr float maxRadiusForPhysicalPrimary{5.f};
165165

166166
struct Tools {
167-
// trivial helper to remove Physical Primary bit
168-
static uint8_t removeIsPhysicalPrimaryBit(uint8_t input_flags, float vx, float vy){
169-
if((std::hypot(vx, vy) > o2::aod::mcparticle::maxRadiusForPhysicalPrimary) && ((input_flags & o2::aod::mcparticle::enums::PhysicalPrimary) == o2::aod::mcparticle::enums::PhysicalPrimary)){
167+
// trivial helper to remove Physical Primary bit
168+
static uint8_t removeIsPhysicalPrimaryBit(uint8_t input_flags, float vx, float vy)
169+
{
170+
if ((std::hypot(vx, vy) > o2::aod::mcparticle::maxRadiusForPhysicalPrimary) && ((input_flags & o2::aod::mcparticle::enums::PhysicalPrimary) == o2::aod::mcparticle::enums::PhysicalPrimary)) {
170171
input_flags = input_flags & ~enums::PhysicalPrimary; // remove physical primary bit, keep others
171172
}
172-
return input_flags;
173+
return input_flags;
173174
}
174175
};
175-
}
176+
} // namespace o2::aod::mcparticle
176177

177178
namespace o2::aod::run2
178179
{

0 commit comments

Comments
 (0)