From 176be31bec4d7d4c4a02d006377f6f46d9a8a690 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Sat, 20 Apr 2024 23:00:15 +0200 Subject: [PATCH] lkasdll --- Detectors/GlobalTracking/src/MatchTPCITS.cxx | 11 +++++++++-- Detectors/Upgrades/ITS3/README.md | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Detectors/GlobalTracking/src/MatchTPCITS.cxx b/Detectors/GlobalTracking/src/MatchTPCITS.cxx index 04f2b9688b8da..e0f634ec1c70e 100644 --- a/Detectors/GlobalTracking/src/MatchTPCITS.cxx +++ b/Detectors/GlobalTracking/src/MatchTPCITS.cxx @@ -241,7 +241,7 @@ void MatchTPCITS::init() #endif if (mParams->runAfterBurner) { // only used in AfterBurner - mRGHelper.init(); // prepare helper for TPC track / ITS clusters matching + mRGHelper.init(); // prepare helper for TPC track / ITS clusters matching } clear(); @@ -1393,16 +1393,23 @@ void MatchTPCITS::refitWinners(pmr::vector& matche LOG(debug) << "Refitting winner matches"; mWinnerChi2Refit.resize(mITSWork.size(), -1.f); int nToFit = (int)tpcToFit.size(); + unsigned int nFailedRefit{0}; + #ifdef WITH_OPENMP -#pragma omp parallel for schedule(dynamic) num_threads(mNThreads) +#pragma omp parallel for schedule(dynamic) num_threads(mNThreads) \ + reduction(+ \ + : nFailedRefit) #endif for (int ifit = 0; ifit < nToFit; ifit++) { int iTPC = tpcToFit[ifit], iITS; const auto& tTPC = mTPCWork[iTPC]; if (refitTrackTPCITS(ifit, iTPC, iITS, matchedTracks, matchLabels, calib)) { mWinnerChi2Refit[iITS] = matchedTracks.back().getChi2Refit(); + } else { + ++nFailedRefit; } } + LOGP(info, "Failed {} TPC-ITS refits out of {}", nFailedRefit, nToFit); // suppress tracks failed on refit and fill calib/debug data (if needed) int last = nToFit; diff --git a/Detectors/Upgrades/ITS3/README.md b/Detectors/Upgrades/ITS3/README.md index fe38b1c091c09..059f3d1d68d7b 100644 --- a/Detectors/Upgrades/ITS3/README.md +++ b/Detectors/Upgrades/ITS3/README.md @@ -30,7 +30,7 @@ This just caches the ccdb object to reduce calls in case we are testing. ```bash export IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE=1 -export ALICEO2_CCDB_LOCALCACHE=$PWD/ccdb +export ALICEO2_CCDB_LOCALCACHE=${PWD}/ccdb ``` Simulate diamond @@ -88,7 +88,7 @@ o2-sim -g pythia8pp -j10 -m PIPE IT3 --run 303901 -n10 ```bash # Create Full Geometry -o2-sim --withIT3 --run 303901 -n0 +o2-sim --withIT3 --run 303901 -n0 --field ccdb cp o2sim_geometry.root ${ALICEO2_CCDB_LOCALCACHE}/GLO/Config/Geometry/snapshot.root o2-create-aligned-geometry-workflow -b --configKeyValues "HBFUtils.startTime=1547978230000" --condition-remap="file://${ALICEO2_CCDB_LOCALCACHE}=GLO/Config/Geometry" cp o2sim_geometry-aligned.root ${ALICEO2_CCDB_LOCALCACHE}/GLO/Config/GeometryAligned/snapshot.root