From 08452787632d1bbbd711eac5e0045cd24dc8a86d Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 21 Feb 2024 11:59:44 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/TableProducer/SGCandProducer.cxx | 43 +++++++++++++------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/PWGUD/TableProducer/SGCandProducer.cxx b/PWGUD/TableProducer/SGCandProducer.cxx index e86c3909513..8e6bb8719e2 100644 --- a/PWGUD/TableProducer/SGCandProducer.cxx +++ b/PWGUD/TableProducer/SGCandProducer.cxx @@ -35,7 +35,7 @@ struct SGCandProducer { // data tables Produces outputSGCollisions; -// Produces outputZDCCollisions; + // Produces outputZDCCollisions; Produces outputCollisions; Produces outputCollisionsSels; Produces outputCollsLabels; @@ -59,7 +59,7 @@ struct SGCandProducer { // data inputs using CCs = soa::Join; using CC = CCs::iterator; -// using BCs = soa::Join; + // using BCs = soa::Join; using BCs = soa::Join; using BC = BCs::iterator; using TCs = soa::Join collision %d", collision.globalIndex()); @@ -158,8 +158,8 @@ struct SGCandProducer { return; } auto bc = collision.foundBC_as(); -// LOGF(info, " BC id %d", bc.globalBC()); -// uint64_t globalBC = bc.globalBC(); + // LOGF(info, " BC id %d", bc.globalBC()); + // uint64_t globalBC = bc.globalBC(); float timeZNA = -999; float timeZNC = -999; float eComZNA = -999; @@ -167,7 +167,7 @@ struct SGCandProducer { // obtain slice of compatible BCs auto bcRange = udhelpers::compatibleBCs(collision, sameCuts.NDtcoll(), bcs, sameCuts.minNBCs()); -// LOGF(info, " Size of bcRange %d", bcRange.size()); + // LOGF(info, " Size of bcRange %d", bcRange.size()); // apply SG selection // auto isSGEvent = sgSelector.IsSelected(sameCuts, collision, bcRange, tracks, fwdtracks); @@ -182,9 +182,9 @@ struct SGCandProducer { // fill FITInfo upchelpers::FITInfo fitInfo{}; udhelpers::getFITinfo(fitInfo, bc.globalBC(), bcs, ft0s, fv0as, fdds); - // upchelpers::ZDCInfo zdcInfo{}; - //udhelpers::getZDCinfo(zdcInfo, bc.globalBC(), bcs, zdcs); - //udhelpers::getZDCinfo(zdcInfo, bc.globalBC(), zdcs); + // upchelpers::ZDCInfo zdcInfo{}; + // udhelpers::getZDCinfo(zdcInfo, bc.globalBC(), bcs, zdcs); + // udhelpers::getZDCinfo(zdcInfo, bc.globalBC(), zdcs); // update SG candidates tables auto rtrwTOF = udhelpers::rPVtrwTOF(tracks, collision.numContrib()); @@ -211,19 +211,18 @@ struct SGCandProducer { for (auto& fwdtrack : fwdtracks) { updateUDFwdTrackTables(fwdtrack, bc.globalBC()); } -// LOGF(info, " Collision id %i", outputCollisions.lastIndex()); - if (bc.has_zdc()) { - auto zdc = bc.zdc(); - timeZNA = zdc.timeZNA(); - timeZNC = zdc.timeZNC(); - eComZNA = zdc.energyCommonZNA(); - eComZNC = zdc.energyCommonZNC(); - udZdcsReduced(outputCollisions.lastIndex(), timeZNA, timeZNC, eComZNA, eComZNC); -// LOGF(info, " %i %d %f %f %f %f", outputCollisions.lastIndex(), bc.globalBC(), timeZNA, timeZNC, eComZNA, eComZNC); - } - else{ - udZdcsReduced(outputCollisions.lastIndex(), -999, -999, -999, -999); - } + // LOGF(info, " Collision id %i", outputCollisions.lastIndex()); + if (bc.has_zdc()) { + auto zdc = bc.zdc(); + timeZNA = zdc.timeZNA(); + timeZNC = zdc.timeZNC(); + eComZNA = zdc.energyCommonZNA(); + eComZNC = zdc.energyCommonZNC(); + udZdcsReduced(outputCollisions.lastIndex(), timeZNA, timeZNC, eComZNA, eComZNC); + // LOGF(info, " %i %d %f %f %f %f", outputCollisions.lastIndex(), bc.globalBC(), timeZNA, timeZNC, eComZNA, eComZNC); + } else { + udZdcsReduced(outputCollisions.lastIndex(), -999, -999, -999, -999); + } // produce TPC signal histograms for 2-track events LOGF(debug, "SG candidate: number of PV tracks %d", collision.numContrib()); if (collision.numContrib() == 2) {