Skip to content

Propagate OriginID to leptons and photons

Francesco Giuseppe Gravili requested to merge fgravili/framework:origin into master

Currently, the OriginID information is only used for neutrinos, despite being available in truth container, as well as the function to retrieve it. This MR is to extend access to this variable for electrons, muons, taus and photons. It is also a complementary information to motherIDs, particularly useful when smeared layouts are used.

With this new addition, I modified the object functions giving an init value for the new variable (different from all possible origin IDs), in order to give the code a little bit more of flexibility, e.g. not altering the SlimReader class.

Finally, the originID is stored in the output ntuple, using the same structure as the one already in place for motherID.

As usual, please, let me know if it is fine or whether additional changes are needed from my side

Merge request reports