Hello,
I am working on an analysis to measure how much energy is deposited for each process inside the sensitive volume. I can access this information iterating over the hits of the event.
I have done this analysis using Python and for each event I can store information of the processes+track_particle that deposits energy inside the sensitive volume. I store this information in a dataframe/dictionary.
Example one event information (energy of hits in sensitive vol normalized to sensitive energy)
{'ionIoni': 0.7512570874090487,
'eIoni': 0.15449390579821592,
'e-Step': 0.0291899424502861,
'msc': 0.0015273534828027515,
'hIoni_proton': 0.06346100303596942,
'TRansportation_proton': 6.354713290923283e-05,
'TRansportation_e-': 7.1606907678093594e-06}
I think it would be useful to have this analysis inside REST however I see some problems that I would like to discuss.
In my opinion its useful to have (at least have an option to) process+particle information instead of just process, sometimes you want this combined, sometimes you don’t.
However I cannot know with anticipation how many “labels” there are (items like ‘TRansportation_e-’) so I cannot have N observables (double) that take values between 0 and 1 (like the ones we use to check if there is a photoelectric process etc.). For example there could be a process+particle like ‘TRansportation_pi+’ which is rare but possible.
Maybe we should store this information using a map (or something similar), but I think it would be very annoying to deal with too. Also we could have one process that “scans” all events to get a list of all possible labels, set those to 0 in the analysis tree and then iterate again over all events to fill those.
I think it would be useful to have this analysis in REST, what do you think?