Option to specify types for LoKi hybrid tuple tool
There are two merge requests that should close this issue
In the context of the W mass measurement (cc @olupton) we added a feature that allows the user to specify a list of bool, int and float branches, in addition to the default list of doubles.
This only requires a few lines of C++ to be added in Phys/LoKiArrayFunctors
(Analysis
project) and (to get the same feature for MCDecayTreeTuples
) Phys/LoKiPhysMC
(Phys
project).
After the changes the usage would be like
atool=branch.addTupleTool("LoKi::Hybrid::TupleTool")
atool.BoolVariables = {"ISMUON" : "switch(ISMUON,1,0)"}
atool.IntVariables = {"Q" : "Q"}
atool.FloatVariables = {"TRCHI2DOF":"TRCHI2DOF"}
# etc...
while the treatment of atool.Variables
would be unchanged.
I see this as a suggested change for run-2-patches
since something much better is presumably planned for Run-3 but @pkoppenb @nskidmor @erodrigu please add your thoughts.
General thoughts welcome from @masmith @ibelyaev @jonrob, and please add anybody else that might want to comment.
If there is support for the proposed changes then I can prepare merge requests for Phys
and Analysis
.