Skip to content

Commit ab6a9e7

Browse files
committed
[PWGCF] Lambda-Cascade correlation: fix MegaLinter (cpplint, cppcheck, clang-format, O2 linter)
1 parent 1865dc3 commit ab6a9e7

1 file changed

Lines changed: 23 additions & 25 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/lambdaCascadeCorrelation.cxx

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file Lambdacascadecorrelation.cxx
12+
/// \file lambdaCascadeCorrelation.cxx
1313
/// \brief Correlation-balance functions of multistrange baryons
1414
/// \author Oveis Sheibani <oveis.sheibani@cern.ch>
15-
16-
1715
#include "PWGLF/DataModel/LFStrangenessTables.h"
1816
#include "PWGLF/Utils/inelGt.h"
1917

@@ -312,7 +310,7 @@ using MyCascades = soa::Filtered<aod::CascDataExtSelected>;
312310
using LabeledCascades = soa::Join<aod::CascDataExt, aod::McCascLabels>;
313311

314312
// All Λ-side data-model declarations live in
315-
// Lambdacascadecorrelation_DataModel.h, included above.
313+
// lambdaCascadeCorrelation_DataModel.h, included above.
316314

317315
enum CollisionLabels {
318316
kTotColBeforeHasMcCollision = 1,
@@ -3030,13 +3028,13 @@ struct LambdaTracksExtProducer {
30303028
namespace lxicorr
30313029
{
30323030
struct CascBranches {
3033-
float pt, rap, mass;
3034-
int sign;
3035-
float cascCosPA, v0CosPA;
3036-
float cascRadius, v0Radius;
3037-
float dcaV0Dau, dcaCascDau;
3038-
float dcaV0ToPV, dcaPosToPV, dcaNegToPV, dcaBachToPV;
3039-
float cent, pvZ;
3031+
float pt{}, rap{}, mass{};
3032+
int sign{};
3033+
float cascCosPA{}, v0CosPA{};
3034+
float cascRadius{}, v0Radius{};
3035+
float dcaV0Dau{}, dcaCascDau{};
3036+
float dcaV0ToPV{}, dcaPosToPV{}, dcaNegToPV{}, dcaBachToPV{};
3037+
float cent{}, pvZ{};
30403038
// MC truth-matching (filled only in MC mode; default = no match)
30413039
int pdgCode{0}; // PDG of matched McParticle (0 = no match = background)
30423040
bool isPhysPrim{false};
@@ -3053,23 +3051,23 @@ struct CascBranches {
30533051
// Holds branch data for both Xi and Omega — one raw pointer covers both.
30543052
// Gen-level branches — kinematics + truth only, no topology
30553053
struct GenBranches {
3056-
float pt, rap, cent, pvZ;
3057-
int pdgCode;
3058-
bool isPhysPrim;
3054+
float pt{}, rap{}, cent{}, pvZ{};
3055+
int pdgCode{};
3056+
bool isPhysPrim{};
30593057
};
30603058

30613059
// Λ TTree branches. Both reco-level (with topo + truth fields)
30623060
// and gen-level. The motherPdg field lets the user filter feed-down sources
30633061
// post-hoc (e.g., motherPdg==±3312 → Ξ-feeddown). isPhysPrim duplicates the
30643062
// primary/secondary tag from lambdatrack::V0PrmScd for convenience.
30653063
struct LambdaBranches {
3066-
float pt, eta, rap, phi, mass;
3067-
float cosPA, dcaDau;
3068-
int v0Type; // 0=Λ, 1=Λ̄ (matches enum ParticleType)
3069-
int v0PrmScd; // 0=primary, 1=secondary (only meaningful in MC)
3070-
bool trueLambdaFlag;
3071-
float corrFact;
3072-
float cent, pvZ;
3064+
float pt{}, eta{}, rap{}, phi{}, mass{};
3065+
float cosPA{}, dcaDau{};
3066+
int v0Type{}; // 0=Λ, 1=Λ̄ (matches enum ParticleType)
3067+
int v0PrmScd{}; // 0=primary, 1=secondary (only meaningful in MC)
3068+
bool trueLambdaFlag{};
3069+
float corrFact{};
3070+
float cent{}, pvZ{};
30733071
// MC-only
30743072
int pdgCode{0};
30753073
bool isPhysPrim{false};
@@ -3103,10 +3101,10 @@ struct LambdaBranches {
31033101
};
31043102

31053103
struct LambdaGenBranches {
3106-
float pt, eta, rap, phi;
3107-
int v0Type;
3108-
int v0PrmScd;
3109-
float cent, pvZ;
3104+
float pt{}, eta{}, rap{}, phi{};
3105+
int v0Type{};
3106+
int v0PrmScd{};
3107+
float cent{}, pvZ{};
31103108
};
31113109

31123110
// Single pointer covers all six branch sets — 1 StructToTuple slot

0 commit comments

Comments
 (0)