From 337dd6aee542a211803aff7774b8e1f1d9754898 Mon Sep 17 00:00:00 2001 From: Hyungjun Lee Date: Fri, 14 Nov 2025 18:23:40 +0900 Subject: [PATCH 1/2] * make swiches for SV Tree and Track Tree. --- PWGJE/Tasks/bjetTreeCreator.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PWGJE/Tasks/bjetTreeCreator.cxx b/PWGJE/Tasks/bjetTreeCreator.cxx index ee059aa9626..884a73d0833 100644 --- a/PWGJE/Tasks/bjetTreeCreator.cxx +++ b/PWGJE/Tasks/bjetTreeCreator.cxx @@ -245,6 +245,7 @@ struct BJetTreeCreator { Configurable> jetRadii{"jetRadii", std::vector{0.4}, "jet resolution parameters"}; + Configurable produceSVTree{"produceSVTree", true, "produce the SV-correlated jet TTreeā€"}; Configurable produceTree{"produceTree", true, "produce the jet TTree"}; Configurable vtxRes{"vtxRes", 0.01, "Vertex position resolution (cluster size) for GNN vertex predictions (cm)"}; @@ -415,7 +416,7 @@ struct BJetTreeCreator { double energySV = candSV.e(); if (svIndices.size() < (svReductionFactor * myJet.template tracks_as().size()) && svIndices.size() < maxConstSV) { - if (produceTree) { + if (produceSVTree) { bjetSVParamsTable(bjetParamsTable.lastIndex() + 1, candSV.pt(), deltaRJetSV, massSV, energySV / myJet.energy(), candSV.impactParameterXY(), candSV.cpa(), candSV.chi2PCA(), candSV.dispersion(), candSV.decayLengthXY(), candSV.errorDecayLengthXY(), candSV.decayLength(), candSV.errorDecayLength()); } svIndices.push_back(bjetSVParamsTable.lastIndex()); @@ -755,6 +756,7 @@ struct BJetTreeCreator { } std::vector indicesTracks; + std::vector indicesSVs; int16_t jetFlavor = analysisJet.origin(); @@ -791,7 +793,6 @@ struct BJetTreeCreator { } if (produceTree) { - std::vector indicesSVs; bjetConstituentsTable(bjetParamsTable.lastIndex() + 1, indicesTracks, indicesSVs); bjetParamsTable(analysisJet.pt(), analysisJet.eta(), analysisJet.phi(), indicesTracks.size(), nVertices, analysisJet.mass(), jetFlavor, analysisJet.r()); } From 24325ef837bb5c7190a9f6acb2c69cc37431f26f Mon Sep 17 00:00:00 2001 From: Hyungjun Lee Date: Fri, 19 Dec 2025 00:27:11 +0900 Subject: [PATCH 2/2] Add timestamp configuration for IP tagging method --- PWGJE/TableProducer/jetTaggerHF.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGJE/TableProducer/jetTaggerHF.cxx b/PWGJE/TableProducer/jetTaggerHF.cxx index b648929de89..76ad6147df3 100644 --- a/PWGJE/TableProducer/jetTaggerHF.cxx +++ b/PWGJE/TableProducer/jetTaggerHF.cxx @@ -94,6 +94,7 @@ struct JetTaggerHFTask { Configurable minSignImpXYSig{"minSignImpXYSig", -40.0, "minimum of signed impact parameter significance"}; Configurable tagPointForIP{"tagPointForIP", 2.5, "tagging working point for IP"}; Configurable tagPointForIPxyz{"tagPointForIPxyz", 2.5, "tagging working point for IP xyz"}; + Configurable timestampCCDBForIP{"timestampCCDBForIP", -1, "timestamp of the resolution function file for IP method used to query in CCDB"}; // configuration about SV method Configurable tagPointForSV{"tagPointForSV", 40, "tagging working point for SV"}; Configurable tagPointForSVxyz{"tagPointForSVxyz", 40, "tagging working point for SV xyz"}; @@ -341,7 +342,7 @@ struct JetTaggerHFTask { return; } for (int i = 0; i < mIPmethodResolutionFunctionSize; i++) { - targetVec.push_back(ccdbApi.retrieveFromTFileAny(paths[i], metadata, -1)); + targetVec.push_back(ccdbApi.retrieveFromTFileAny(paths[i], metadata, timestampCCDBForIP)); } };