TPC: add ITS-TPC combined-momentum sampling trigger#15599
Conversation
Add a third sampling trigger bit for tracks with matched ITS-TPC combined momentum. The new trigger uses the Tsallis sampling function on the combined-track pT instead of the TPC-only pT and stores the corresponding weight as weight_ITSTPC. This extends the existing trigger mask scheme: 0x1: minimum-bias sampling 0x2: Tsallis sampling using TPC-only track pT 0x4: Tsallis sampling using ITS-TPC combined-track pT The output condition is updated so tracks selected by the new ITS-TPC sampling path are written even when they are not selected by the existing TPC-only or minimum-bias triggers. Motivation: sampling only on TPC-only momentum can bias correlated observables such as qpt_TPC - qpt_Comb. The new trigger provides a dedicated sampled stream for combined-track performance studies while preserving the existing TPC-only and minimum-bias sampling streams.
PHASE_13_11_DF v2.5 — TPCTimeSeries combined-momentum Tsallis triggerSubproject: samplingAI / O2 TPC skimmed time-series sampling interface 1. MotivationCurrent skimmed unbinned output has two trigger-mask bits relevant for sampling:
The current bias investigation needs a third stream: a Tsallis sampling decision based on the combined ITS-TPC track momentum. This provides a direct comparison channel for the correlated-observable problem: where sampling only on the TPC-only quantity can bias the observed joint distribution and residual structure. 2. Proposed changeAdd trigger-mask bit tracksITSTPC[idxITSTPC.front()].getPt()The patch keeps the existing New trigger-mask contract:
3. Output schema changeThe existing branch remains the correction weight associated with the TPC-only Tsallis decision ( The patch adds a new branch: This is the correction weight associated with the combined ITS-TPC Tsallis decision ( For analyses using 4. Selection behaviorBefore the patch, a track was written when: writeData || minBiasOkAfter the patch, a track is written when: writeData || writeDataITSTPC || minBiasOkwhere:
The new combined trigger is evaluated only if 5. Backward-compatibility notes
6. Validation requested before productionMinimum checks:
triggerMask & 0x1 // MB stream
triggerMask & 0x2 // TPC-only Tsallis stream
triggerMask & 0x4 // combined ITS-TPC Tsallis stream
for:
7. Known limitation / deliberate non-changeThis patch uses the same A separate factor can be added later if the validation shows that the combined stream needs an independent rate. 8. Approval question - answered by the teamApprove this as the first C++-side test patch for the sampling-bias study? Suggested approval scope: |
Hello @matthias-kleiner and @shahor02,
Here is a pull request I discussed last week in the TPC distortion meeting. @matthias-kleiner, are you on holidays now, or could you run one small test at GSI?
===
Add a third sampling trigger bit for tracks with matched ITS–TPC combined momentum. The new trigger applies the Tsallis sampling function to the combined-track pT instead of the TPC-only pT and stores the corresponding weight as weight_ITSTPC.
This extends the existing trigger mask scheme:
0x1: minimum-bias sampling
0x2: Tsallis sampling using TPC-only track pT
0x4: Tsallis sampling using ITS–TPC combined-track pT
The output condition is updated so that tracks selected by the new ITS–TPC sampling path are written even when they are not selected by the existing TPC-only or minimum-bias triggers.
Motivation:
Sampling only on TPC-only momentum can bias correlated observables such as qpt_TPC - qpt_Comb. The new trigger provides a dedicated sampled stream for combined-track performance studies while preserving the existing TPC-only and minimum-bias sampling streams.