Jet substructure structs - do we need them? #136
Labels
interface change
Breaking changes to any public interfaces
question
Further information is requested
Milestone
Discussing with @m-fila he pointed out that the current scheme of calling
mass_drop
,soft_drop
,jet_filtering
andjet_trimming
with special structs is sub-optimal. These structs simply gather together a few parameters and pass them into the function. There's no great value in having them as structs, it seems a bit overkill for functions with a few parameters.A better option is to convert the functions to take named parameters, e.g.,
If the user wants to gather the parameters together, for consistency, then this can be done as Julia named tuple and an argument splat:
For soft drop, where there is a sensible default for the cluster radius then this can have the normal argument default:
N.B. I would propose that we rename the second parameter
beta
(β
is probably a bit too far...).Thoughts on this @m-fila @sattwamo?
The text was updated successfully, but these errors were encountered: