From ec087f98772f18854bfd14d980184e1e1aca3203 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 31 May 2026 11:21:09 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../TwoParticleCorrelations/Tasks/corrFit.cxx | 38 +++++++------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx b/PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx index b2ae177a382..3085e4b4897 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx @@ -77,7 +77,6 @@ struct CorrFit { O2_DEFINE_CONFIGURABLE(cfgMaxMultForCorrelations, int, 20, "maximum multiplicity for correlations") O2_DEFINE_CONFIGURABLE(cfgRefMultiplicity, bool, false, "Use multiplicity of reference tracks for multiplicity correlation cut instead of Nch") - struct : ConfigurableGroup{ O2_DEFINE_CONFIGURABLE(cfgPtCutMin, float, 0.2f, "minimum accepted track pT") O2_DEFINE_CONFIGURABLE(cfgPtCutMax, float, 10.0f, "maximum accepted track pT") @@ -699,7 +698,7 @@ struct CorrFit { } LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiency.value.c_str(), (void*)mEfficiency); } - if (cfgEfficiencyNch.value.empty() == false){ + if (cfgEfficiencyNch.value.empty() == false) { if (cfgLocalEfficiencyNch) { TFile* fEfficiencyTrigger = TFile::Open(cfgEfficiencyNch.value.c_str(), "READ"); mEfficiencyNch = reinterpret_cast(fEfficiencyTrigger->Get("ccdb_object")); @@ -708,11 +707,10 @@ struct CorrFit { } else { mEfficiencyNch = ccdb->getForTimeStamp(cfgEfficiencyNch, timestamp); } - if (!mEfficiencyNch ) { + if (!mEfficiencyNch) { LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiencyNch.value.c_str()); } LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiencyNch.value.c_str(), (void*)mEfficiencyNch); - } if (cfgCentralityWeight.value.empty() == false) { mCentralityWeight = ccdb->getForTimeStamp(cfgCentralityWeight, timestamp); @@ -782,9 +780,9 @@ struct CorrFit { float weight_Nch = 1.0f; for (auto const& track : tracks) { - if (cfgRefMultiplicity){ + if (cfgRefMultiplicity) { if (track.pt() < 0.2 || track.pt() > 3.0) - continue; + continue; } if (!getEfficiencyCorrection_Nch(weight_Nch, track.pt())) { @@ -792,10 +790,8 @@ struct CorrFit { } nTracksCorrected += weight_Nch; - } multiplicity = nTracksCorrected; - } template @@ -988,9 +984,9 @@ struct CorrFit { continue; if (cfgRefpTt) { - if (track2.pt() > cfgRefpTMax) { - continue; - } + if (track2.pt() > cfgRefpTMax) { + continue; + } } if (track1.pt() <= track2.pt()) continue; // skip if the trigger pt is less than the associate pt @@ -1084,7 +1080,6 @@ struct CorrFit { return; } - const auto& ft0 = collision.foundFT0(); fillCorrelationsTPCFT0(tracks, ft0, collision.posZ(), SameEvent, multiplicity, kFT0A, eventWeight); } @@ -1136,9 +1131,8 @@ struct CorrFit { } if (cfgQaCheck) { - registry.fill(HIST("Nch_corrected"), multiplicity); - } - + registry.fill(HIST("Nch_corrected"), multiplicity); + } const auto& ft0 = collision2.foundFT0(); fillCorrelationsTPCFT0(tracks1, ft0, collision1.posZ(), MixedEvent, multiplicity, kFT0A, eventWeight); @@ -1185,7 +1179,6 @@ struct CorrFit { registry.fill(HIST("Nch_corrected"), multiplicity); } - fillCorrelationsTPCFT0(tracks, ft0, collision.posZ(), SameEvent, multiplicity, kFT0C, 1.0f); } PROCESS_SWITCH(CorrFit, processSameTpcFt0c, "Process same event for TPC-FT0C correlation", false); @@ -1236,9 +1229,8 @@ struct CorrFit { } if (cfgQaCheck) { - registry.fill(HIST("Nch_corrected"), multiplicity); - } - + registry.fill(HIST("Nch_corrected"), multiplicity); + } fillCorrelationsTPCFT0(tracks1, ft0, collision1.posZ(), MixedEvent, multiplicity, kFT0C, eventWeight); } @@ -1287,7 +1279,6 @@ struct CorrFit { registry.fill(HIST("Nch_corrected"), multiplicity); } - fillCorrelationsFT0AFT0C(ft0, ft0, collision.posZ(), SameEvent, multiplicity, eventWeight); } PROCESS_SWITCH(CorrFit, processSameFt0aFt0c, "Process same event for FT0A-FT0C correlation", true); @@ -1340,8 +1331,8 @@ struct CorrFit { } if (cfgQaCheck) { - registry.fill(HIST("Nch_corrected"), multiplicity); - } + registry.fill(HIST("Nch_corrected"), multiplicity); + } registry.fill(HIST("eventcount"), MixedEvent); // fill the mixed event in the 3 bin fillCorrelationsFT0AFT0C(ft0Col1, ft0Col2, collision1.posZ(), MixedEvent, multiplicity, eventWeight); @@ -1368,9 +1359,8 @@ struct CorrFit { registry.fill(HIST("eventcount"), SameEvent); // because its same event i put it in the 1 bin loadCorrection(bc.timestamp()); - + fillYield(collision, tracks); - double multiplicity = tracks.size();