Skip to content

Updating the TICL offline NanoAOD - #51725

Merged
cmsbuild merged 3 commits into
cms-sw:masterfrom
Moanwar:offlineTICLNanoAOD
Aug 31, 2026
Merged

Updating the TICL offline NanoAOD#51725
cmsbuild merged 3 commits into
cms-sw:masterfrom
Moanwar:offlineTICLNanoAOD

Conversation

@Moanwar

@Moanwar Moanwar commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This PR adds more information to the offline TICL NanoAOD, with features aimed at improving TICL performance studies, especially for general tracks and GSF tracks for PF interpretation.
It also adds:

  • GEN information for SIM-vs-GEN validation.
  • The indices of the tracksters forming each TICLCandidate. This vector was already declared but not filled, so it is now properly filled and stored in the NanoAOD.
  • A flag indicating whether a SimCandidate originates from PU (1) or not (0). This is normally 0 unless SIM from PU is enabled, in which case the flag becomes useful.

The PR has been tested with the relevant workflows and runs smoothly for 34506.213 and 34706.213.

@cmsbuild

cmsbuild commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

cms-bot internal usage

@cmsbuild

Copy link
Copy Markdown
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51725/50651

@cmsbuild

Copy link
Copy Markdown
Contributor

A new Pull Request was created by @Moanwar for master.

It involves the following packages:

  • DPGAnalysis/HGCalNanoAOD (xpog)
  • RecoHGCal/TICL (reconstruction)

@Moanwar, @battibass, @cmsbuild, @ftorrresd, @jfernan2, @mandrenguyen, @srimanob can you please review it and eventually sign? Thanks.
@apsallid, @denizsun, @felicepantaleo, @hatakeyamak, @lecriste, @mmusich, @rovere, @salimcerci, @sameasy, @sobhatta this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@Moanwar

Moanwar commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

test parameters:

  • workflow_opts = -w upgrade
  • workflows = 34506.213,34706.213

@Moanwar

Moanwar commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

@cmsbuild please test

@mmusich

mmusich commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This PR adds more information to the offline TICL NanoAOD,

does it make sense to add this also in the HLT nano?

@Moanwar

Moanwar commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

This PR adds more information to the offline TICL NanoAOD,

does it make sense to add this also in the HLT nano?

Sure, that’s indeed the plan. I started with the offline workflow and will propagate these changes to HLT as well. The HLT NanoAOD already contains some of these branches, such as GEN information and general tracks, but I’ll make the corresponding updates there too.

@cmsbuild

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals-AMD_MI300X
Size: This PR adds an extra 60KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6003e5/55446/summary.html
COMMIT: c87ee4c
CMSSW: CMSSW_20_1_X_2026-08-18-1100/el9_amd64_gcc14
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/51725/55446/install.sh to create a dev area with all the needed externals and cmssw changes.

DAS Queries: The DAS query tests failed, see the summary page for details.

Failed RelVals-AMD_MI300X

  • 37634.40437634.404_TTbar_14TeV+Run4D127_Patatrack_PixelOnlyAlpaka_Profiling/step2_TTbar_14TeV+Run4D127_Patatrack_PixelOnlyAlpaka_Profiling.log
  • 37634.750337634.7503_TTbar_14TeV+Run4D127_HLTHeterogeneousValid/step2_TTbar_14TeV+Run4D127_HLTHeterogeneousValid.log

Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 47
  • DQMHistoTests: Total histograms compared: 3904949
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3904923
  • DQMHistoTests: Total skipped: 18
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.062 KiB( 46 files compared)
  • DQMHistoSizes: changed ( 34506.213,... ): 0.016 KiB MessageLogger/Errors
  • DQMHistoSizes: changed ( 34506.213,... ): 0.016 KiB MessageLogger/Warnings
  • Checked 204 log files, 173 edm output root files, 47 DQM output files
  • TriggerResults: found differences in 2 / 46 workflows

NVIDIA_H100 Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 98 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8737
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 165002
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_L4 Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 113 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 9521
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 164218
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_L40S Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 67 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 6833
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 166906
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_T4 Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 95 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 9125
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 164614
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

@Moanwar

Moanwar commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Well, the error is not related to this PR, but I’m wondering, for my understanding, why the GPU test is enabled. Maybe I missed something, and it will be enabled by default now? @smuzaffar

@mmusich

mmusich commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

for my understanding, why the GPU test is enabled. Maybe I missed something, and it will be enabled by default now?

I suspect it's coming from cms-sw/cms-bot#2825, but I am not sure if any of the packages touched here qualifies?

@Moanwar

Moanwar commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

for my understanding, why the GPU test is enabled. Maybe I missed something, and it will be enabled by default now?

I suspect it's coming from cms-sw/cms-bot#2825, but I am not sure if any of the packages touched here qualifies?

Okay, I see. Yeah, I wasn’t aware of that, thanks! All the packages here should be GPU-unrelated. Maybe @smuzaffar could cross-check?

@smuzaffar

Copy link
Copy Markdown
Contributor

@Moanwar @mmusich , bot decided to enable GPU tests as it found direct cuda/rocm/alpaka dependency in one of the packages touch by this PR e.g I see in Jenkins logs

16:33:13 MSG: cuda/rocm/alapka dependency found: /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_20_1_X_2026-08-18-1100/src/RecoHGCal/TICL/plugins/BuildFile.xml
16:33:13 Auto enabled GPU tests: NVIDIA_H100,NVIDIA_L40S,NVIDIA_T4,AMD_MI300X,AMD_W7900,NVIDIA_L4

and of course there is alpaka dependency https://github.com/cms-sw/cmssw/blob/master/RecoHGCal/TICL/plugins/BuildFile.xml#L44

@mmusich

mmusich commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

and of course there is alpaka dependency https://github.com/cms-sw/cmssw/blob/master/RecoHGCal/TICL/plugins/BuildFile.xml#L44

In my opinion this is a bit too open. Shouldn't the bot check before if the plugin touched is actually an alpaka one or not?

@smuzaffar

smuzaffar commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

In my opinion this is a bit too open. Shouldn't the bot check before if the plugin touched is actually an alpaka one or not?

this is too fine graind detail which bot does not know at the time it has to decide it GPU tests should be enabled or not

@Moanwar

Moanwar commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

and of course there is alpaka dependency https://github.com/cms-sw/cmssw/blob/master/RecoHGCal/TICL/plugins/BuildFile.xml#L44

In my opinion this is a bit too open. Shouldn't the bot check before if the plugin touched is actually an alpaka one or not?

In my opinion this is a bit too open. Shouldn't the bot check before if the plugin touched is actually an alpaka one or not?

this is too fine graind detail which bot does not know at the time it has to decide it GPU tests should be enabled or not

Thanks a lot @smuzaffar for checking. I see the point, but this would still lead to longer test times when the changes don’t actually need to be tested on the GPU, and could potentially trigger unrelated errors as well. Do you think there’s a way to adapt this?

@Moanwar

Moanwar commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

ignore tests-rejected with ib-failure

  • Again, the error is not related to this PR.

@Moanwar

Moanwar commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

+1

@Moanwar

Moanwar commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@cms-sw/xpog-l2 , can you please have a look ?

@Moanwar

Moanwar commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

@cms-sw/xpog-l2 , can you please have a look and sign ?

@ftorrresd

Copy link
Copy Markdown
Contributor

enable nano

@ftorrresd

Copy link
Copy Markdown
Contributor

please test

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6003e5/55593/summary.html
COMMIT: 9b64388
CMSSW: CMSSW_20_1_X_2026-08-28-1100/el9_amd64_gcc14
Additional Tests: NANO
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/51725/55593/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 47
  • DQMHistoTests: Total histograms compared: 3904949
  • DQMHistoTests: Total failures: 15
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3904915
  • DQMHistoTests: Total skipped: 18
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.062 KiB( 46 files compared)
  • DQMHistoSizes: changed ( 34506.213,... ): 0.016 KiB MessageLogger/Errors
  • DQMHistoSizes: changed ( 34506.213,... ): 0.016 KiB MessageLogger/Warnings
  • Checked 204 log files, 173 edm output root files, 47 DQM output files
  • TriggerResults: found differences in 2 / 46 workflows

Nano size comparison Summary:

workflow id kb/ev ref kb/ev diff kb/ev ev/s/thd ref ev/s/thd diff rate mem/thd ref mem/thd
ScoutingNANOdata124Xrun3 2500.1501 0.772 0.772 0.000 ( +0.0% ) 35.12 34.98 +0.4% 1.573 1.451
ScoutingNANOmonitordata124Xrun3 2500.1502 0.862 0.862 0.000 ( +0.0% ) 14.32 14.00 +2.3% 1.430 1.371
ScoutingNANOdata130Xrun3 2500.1503 1.251 1.251 0.000 ( +0.0% ) 25.67 25.52 +0.6% 1.560 1.438
ScoutingNANOmonitordata130Xrun3 2500.1504 1.297 1.297 0.000 ( +0.0% ) 10.91 10.84 +0.6% 1.427 1.369
ScoutingNANOdata140Xrun3 2500.2307 1.101 1.101 0.000 ( +0.0% ) 30.64 30.49 +0.5% 1.589 1.444
L1ScoutingSelectionNANOdata140Xrun3 2500.2311 0.081 0.081 0.000 ( +0.0% ) 50.95 51.18 -0.4% 0.850 0.709
L1ScoutingNANOdata140Xrun3 2500.231 0.082 0.082 0.000 ( +0.0% ) 4.37 4.39 -0.4% 0.948 0.870
muDPGNANOBkg140Xrun3 2500.2403 2.840 2.840 0.000 ( +0.0% ) 19.98 19.91 +0.4% 1.163 1.122
hcalDPGNANO140Xrun3 2500.2404 486.015 486.015 0.000 ( +0.0% ) 1.17 1.17 +0.5% 1.720 1.615
hcalDPGCalibNANO140Xrun3 2500.2405 826.418 826.418 0.000 ( +0.0% ) 1.53 1.56 -1.7% 1.676 1.593
ScoutingNANOdata150Xrun3 2500.3307 1.738 1.738 0.000 ( +0.0% ) 32.46 32.65 -0.6% 1.577 1.410
L1ScoutingNANOdata150Xrun3 2500.3312 0.078 0.078 0.000 ( +0.0% ) 3.78 3.79 -0.4% 0.946 0.925
L1ScoutingSelectionNANOdata150Xrun3 2500.3313 0.078 0.078 0.000 ( +0.0% ) 28.05 28.18 -0.5% 0.954 0.874
L1ScoutingNANOdata160Xrun3 2500.4301 0.110 0.110 0.000 ( +0.0% ) 2.25 2.24 +0.5% 0.935 0.866
L1ScoutingSelectionNANOdata160Xrun3 2500.4302 0.113 0.113 0.000 ( +0.0% ) 19.94 20.08 -0.7% 0.970 0.871
DYToLL_M-50_13TeV_pythia8 2500.9101 14.970 14.970 0.000 ( +0.0% ) 5.65 6.67 -15.3% 1.141 1.094
DYToll01234Jets_5f_LO_MLM_Madgraph_LHE_13TeV 2500.9102 0.240 0.310 -0.070 ( -22.6% ) 3.06 3.44 -11.2% 0.861 0.853
TTbar_Pow_LHE_13TeV 2500.9103 0.110 0.110 0.000 ( +0.0% ) 2.85 2.90 -1.7% 0.866 0.838
TTbar_14TeV+Run4D127_HLTPhase2WithNano 3000.0001 10.912 10.912 0.000 ( +0.0% ) 0.13 0.12 +3.4% 4.315 4.200
TTbar_14TeV+Run4D127_HLTPhase2WithNanoValid 3000.0002 204.316 203.602 0.714 ( +0.4% ) 0.12 0.12 +1.6% 4.829 4.658
TTbar_14TeV+Run4D127_NGTScoutingWithNano 3000.0003 11.261 11.261 0.000 ( +0.0% ) 0.13 0.13 +1.4% 4.137 4.055
TTbar_14TeV+Run4D127_NGTScoutingWithNanoValid 3000.0004 172.728 171.933 0.794 ( +0.5% ) 0.13 0.13 +0.4% 4.624 4.511
TTbar_14TeV+Run4D127_L1NGTScoutingWithNanoValid 3000.0005 130.854 130.288 0.566 ( +0.4% ) 0.11 0.11 +1.9% 5.302 5.104

AMD_MI300X Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 54 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8652
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 165087
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

AMD_W7900 Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 76 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8590
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 165149
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NANO Comparison Summary

Summary:

  • You potentially removed 1391 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 1
  • DQMHistoTests: Total histograms compared: 0
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 0
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0 KiB( 0 files compared)
  • Checked 43 log files, 29 edm output root files, 1 DQM output files
  • TriggerResults: WARNING - found zero valid hltDiff JSON outputs to summarise (no outputs produced)

NVIDIA_H100 Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 52 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8115
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 165624
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_L4 Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 79 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8910
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 164829
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_L40S Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 48 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 8359
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 165380
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

NVIDIA_T4 Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 95 differences found in the comparisons
  • DQMHistoTests: Total files compared: 7
  • DQMHistoTests: Total histograms compared: 173739
  • DQMHistoTests: Total failures: 9122
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 164617
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 6 files compared)
  • Checked 25 log files, 20 edm output root files, 7 DQM output files
  • TriggerResults: no differences found

Max Memory Comparisons exceeding threshold NVIDIA_T4

@cms-sw/core-l2 , I found 1 workflow step(s) with memory usage exceeding the error threshold:

Expand to see workflows ...
  • Error: Workflow 37634.7503_TTbar_14TeV+Run4D127_HLTHeterogeneousValid step2 max memory diff -38.1 exceeds +/- 30.0 MiB

@ftorrresd

Copy link
Copy Markdown
Contributor

+1

@cmsbuild

Copy link
Copy Markdown
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @ftenchini, @mandrenguyen, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen

Copy link
Copy Markdown
Contributor

+1

@cmsbuild
cmsbuild merged commit 1b9b94a into cms-sw:master Aug 31, 2026
31 checks passed
Comment thread DPGAnalysis/HGCalNanoAOD/plugins/TICLCandidateExtraTableProducer.cc
lambdaErr=Var("lambdaError()", "float", doc="track lambda error"),
qoverpErr=Var("qoverpError()", "float", doc="q/p error"),
),
externalVariables = cms.PSet(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Moanwar

when trying to port this in the HLT nano (as discussed at #51725 (comment)), @JanGerritSchulz made me realize that the encoding of this information is done perhaps in a memory-inefficient way. Because if I understand correctly, every track gets a bunch of muon-specific values. Most of which will be set to invalid -1. Instead, one could add the information to the muon and add the track index on top. This would effectively add the same information, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, so you propose saving the muon info separately instead, and having the same flags and track index stored for each muon, right?
I’m not sure yet how much memory this would actually save. I did it this way so that the muon info could be accessed directly from the track, and having -1 as the track index is also useful information to have. However, this could still be handled separately oustide.
I can run some tests to see how efficient this would be and whether it would complicate things. I’ll check and let you know.

@mmusich mmusich Sep 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering there are perhaps few hundreds (even thousands) of tracks per event and only some (<10) muons,I think that adding the track index to the few muon per event should save quite a bit of space.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, yes. I will test the change and follow up with a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants