Skip to content

Commit fbe8c14

Browse files
committed
Revert workflow/file rename; keep original Lambdacascadecorrelation.cxx and rename main struct to match (fixes o2-linter name/workflow-file)
1 parent ab6a9e7 commit fbe8c14

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ o2physics_add_dpl_workflow(nuclei-balance
9898
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
9999
COMPONENT_NAME Analysis)
100100

101-
o2physics_add_dpl_workflow(lambda-cascade-correlation
102-
SOURCES lambdaCascadeCorrelation.cxx
101+
o2physics_add_dpl_workflow(lambdacascadecorrelation
102+
SOURCES Lambdacascadecorrelation.cxx
103103
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::AnalysisCCDB
104104
COMPONENT_NAME Analysis)
105105

PWGCF/TwoParticleCorrelations/Tasks/lambdaCascadeCorrelation.cxx renamed to PWGCF/TwoParticleCorrelations/Tasks/Lambdacascadecorrelation.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ constexpr uint8_t kItsIBMask = 0x07;
401401

402402
// Cascade species-selection flag values written into the
403403
// cascadeflags::IsSelected column. Promoted to namespace scope so both
404-
// LambdaCascadeProducer (sets them) and LambdaCascadeCorrelation (consumes
404+
// LambdaCascadeProducer (sets them) and Lambdacascadecorrelation (consumes
405405
// them) can refer to the same names.
406406
constexpr int kFlagRejected = 0; // rejected by processCandidate cut chain
407407
constexpr int kFlagXiOnly = 1; // bachelor passes pion-PID only → Ξ-eligible
@@ -654,7 +654,7 @@ inline void logEventCuts(const char* tag, EventCuts const& cuts)
654654
//
655655
// Why merged: event selection used to run twice (once in LTP, once in CSEL),
656656
// with subtly different defaults, producing inconsistent collision populations
657-
// in the downstream LambdaCascadeCorrelation. The merge guarantees a single
657+
// in the downstream Lambdacascadecorrelation. The merge guarantees a single
658658
// `selCollision()` call per event drives BOTH the Lambda table production
659659
// and the cascade flagging — they can no longer disagree.
660660
//
@@ -3214,7 +3214,7 @@ inline void connectLambdaGenBranches(TTree* t, LambdaGenBranches* b)
32143214
}
32153215
} // namespace lxicorr
32163216

3217-
struct LambdaCascadeCorrelation {
3217+
struct Lambdacascadecorrelation {
32183218

32193219
// --- Configurables ---
32203220
Configurable<float> maxY{"maxY", 0.5, "Max |y| for Lambda, Xi and Omega"};
@@ -4530,7 +4530,7 @@ struct LambdaCascadeCorrelation {
45304530
lambdasInThisEvent.size(),
45314531
countSpeciesEligible<false>(cascadesInThisEvent, flagsStart));
45324532
}
4533-
PROCESS_SWITCH(LambdaCascadeCorrelation, processXi, "Λ–Ξ correlation", true);
4533+
PROCESS_SWITCH(Lambdacascadecorrelation, processXi, "Λ–Ξ correlation", true);
45344534

45354535
void processOmega(LambdaCollisionsExt::iterator const& lambdacoll,
45364536
GoodLambdas const& /*lambdas*/,
@@ -4562,7 +4562,7 @@ struct LambdaCascadeCorrelation {
45624562
lambdasInThisEvent.size(),
45634563
countSpeciesEligible<true>(cascadesInThisEvent, flagsStart));
45644564
}
4565-
PROCESS_SWITCH(LambdaCascadeCorrelation, processOmega, "Λ–Ω correlation", false);
4565+
PROCESS_SWITCH(Lambdacascadecorrelation, processOmega, "Λ–Ω correlation", false);
45664566

45674567
// ---------------------------------------------------------------------------
45684568
// MC Reco-level with truth matching: Λ–Ξ
@@ -4598,7 +4598,7 @@ struct LambdaCascadeCorrelation {
45984598
lambdasInThisEvent.size(),
45994599
countSpeciesEligible<false>(cascadesInThisEvent, flagsStart));
46004600
}
4601-
PROCESS_SWITCH(LambdaCascadeCorrelation, processMCRecoXi, "MC reco Λ–Ξ (truth-tagged tree)", false);
4601+
PROCESS_SWITCH(Lambdacascadecorrelation, processMCRecoXi, "MC reco Λ–Ξ (truth-tagged tree)", false);
46024602

46034603
// ---------------------------------------------------------------------------
46044604
// MC Reco-level with truth matching: Λ–Ω
@@ -4634,7 +4634,7 @@ struct LambdaCascadeCorrelation {
46344634
lambdasInThisEvent.size(),
46354635
countSpeciesEligible<true>(cascadesInThisEvent, flagsStart));
46364636
}
4637-
PROCESS_SWITCH(LambdaCascadeCorrelation, processMCRecoOmega, "MC reco Λ–Ω (truth-tagged tree)", false);
4637+
PROCESS_SWITCH(Lambdacascadecorrelation, processMCRecoOmega, "MC reco Λ–Ω (truth-tagged tree)", false);
46384638

46394639
// ===========================================================================
46404640
// Same-species and cross-species pair loops (Λ-Λ, Ξ-Ξ, Ω-Ω, Ξ-Ω)
@@ -4845,7 +4845,7 @@ struct LambdaCascadeCorrelation {
48454845
analyzeOmegaOmegaPairs(cascadesInThisEvent, flagsStart, centVal);
48464846
analyzeXiOmegaPairs(cascadesInThisEvent, flagsStart, centVal);
48474847
}
4848-
PROCESS_SWITCH(LambdaCascadeCorrelation, processAllPairs, "All same-/cross-species pair loops (Λ-Λ, Ξ-Ξ, Ω-Ω, Ξ-Ω)", false);
4848+
PROCESS_SWITCH(Lambdacascadecorrelation, processAllPairs, "All same-/cross-species pair loops (Λ-Λ, Ξ-Ξ, Ω-Ω, Ξ-Ω)", false);
48494849

48504850
// ---------------------------------------------------------------------------
48514851
// processYields — fills the per-event multiplicity + ⟨pT⟩
@@ -4967,7 +4967,7 @@ struct LambdaCascadeCorrelation {
49674967
HIST("Yields/OmegaPlus/hNvsPt2D"),
49684968
nOmP, sOmP);
49694969
}
4970-
PROCESS_SWITCH(LambdaCascadeCorrelation, processYields, "Per-event multiplicity + ⟨pT⟩ for each species", true);
4970+
PROCESS_SWITCH(Lambdacascadecorrelation, processYields, "Per-event multiplicity + ⟨pT⟩ for each species", true);
49714971

49724972
// ---------------------------------------------------------------------------
49734973
// MC Gen-level: Λ–Ξ truth correlation (closure test)
@@ -5111,7 +5111,7 @@ struct LambdaCascadeCorrelation {
51115111
}
51125112
}
51135113
}
5114-
PROCESS_SWITCH(LambdaCascadeCorrelation, processMCGenXi, "MC gen-level Λ–Ξ closure", false);
5114+
PROCESS_SWITCH(Lambdacascadecorrelation, processMCGenXi, "MC gen-level Λ–Ξ closure", false);
51155115

51165116
// ---------------------------------------------------------------------------
51175117
// MC Gen-level: Λ–Ω truth correlation (closure test)
@@ -5223,7 +5223,7 @@ struct LambdaCascadeCorrelation {
52235223
}
52245224
}
52255225
}
5226-
PROCESS_SWITCH(LambdaCascadeCorrelation, processMCGenOmega, "MC gen-level Λ–Ω closure", false);
5226+
PROCESS_SWITCH(Lambdacascadecorrelation, processMCGenOmega, "MC gen-level Λ–Ω closure", false);
52275227
};
52285228

52295229
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
@@ -5236,7 +5236,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
52365236
// CascadeCorrelations were removed entirely from this file.
52375237
adaptAnalysisTask<LambdaCascadeProducer>(cfgc),
52385238
adaptAnalysisTask<LambdaTracksExtProducer>(cfgc),
5239-
adaptAnalysisTask<LambdaCascadeCorrelation>(cfgc)
5239+
adaptAnalysisTask<Lambdacascadecorrelation>(cfgc)
52405240

52415241
};
52425242
}

0 commit comments

Comments
 (0)