Skip to content
Snippets Groups Projects

modified hasRich in TupleToolPid to store more info

Merged Maurizio Martinelli requested to merge mamartin/Analysis:master into master

Modified hasRich variable produced from TupleToolPID to store information on the RICH response on the given track. It substantially saves in binary form information from

richPID->usedAerogel() + // i = 0
            2*richPID->usedRich1Gas() + // i = 1
            4*richPID->usedRich2Gas() + // i = 2
            8*richPID->electronHypoAboveThres() + // i = 3
           16*richPID->muonHypoAboveThres() + // i = 4
           32*richPID->pionHypoAboveThres() + // i = 5
           64*richPID->kaonHypoAboveThres() + // i = 6
         128*richPID->protonHypoAboveThres(); // i = 7

Such that it can be accessed by

(hasRich >> i ) & 1

where i is the index corresponding to the hypothesis to be tested.

Backward compatibility is guaranteed since it returns 0 when richPID cannot be accessed.

This change was driven by the opportunity of having information of particles passing Rich threshold such that the peak at 0 in CombDLLK could be removed.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading