DUNE / dune-tms

DUNE ND Temporary Muon Spectrometer
0 stars 1 forks source link

Lepton info not filling #83

Closed jdkio closed 4 months ago

jdkio commented 6 months ago

The lepton information in truth (LeptonPDG, LeptonP4, LeptonX4) is not filled about half the time. Not sure why. But Muon_TrueKE is filled more often

It is filled by TMS_Event::FillTrueLeptonInfo. That is called in ConvertToTMSTree here. Looking a the logic, it may be because no visible energy was deposited. But, I think, Tom said that he found event displays with tracks where LeptonP4 wasn't filled. So idk

jdkio commented 4 months ago

Yes, the original idea was that LeptonX4 would represent the "primary" lepton in a pileup event. So if there is more than one event due to pileup, the event that deposited the most energy in a particle slice has its info saved.

So the issue is that in some cases no info is saved. This is because no interaction produced energy in the TMS. The info is still present in the list that uses nTrueParticles so you can still recover it. This variable is supposed to be pileup-safe so we're not going to change anything