Update tupling example including LoKi and now ThOr functors
This MR depends of Analysis!792 (merged) and Rec!2420 (merged) and Phys!930 (merged).
FYI: @mamartin
Relates to DPA task https://gitlab.cern.ch/lhcb-dpa/project/-/issues/113.
Merge request reports
Activity
mentioned in merge request Analysis!792 (merged)
mentioned in merge request !542 (merged)
For @pkoppenb @erodrigu. This should be merged before !542 (merged).
- Resolved by Abhijit Mathad
Great. I was just fixing the corresponding test and this file as it breaks with the new PrintDecaytree in Analysis!791 (merged) . How do we proceed? Are the tests running for you? Should I issue a ci-test?
I could merge and fix the tests in !538 (merged) (that depends on Analysis!791 (merged))?
added lhcb-run3-cleanup label
- Resolved by Abhijit Mathad
- Resolved by Abhijit Mathad
- Resolved by Eduardo Rodrigues
53 54 #FunTuple: Jpsi info 55 ParticleJpsi = ParticleTupleProp( 56 branch_name_prefix="Jpsi", 57 decay_descriptor="[J/psi(1S) -> mu+ mu-]CC", 58 #Dict -> {name:functor} 59 particle_code_loki={ 60 'LOKI_P': 'P', 61 'LOKI_PT': 'PT', 62 'LOKI_Muonp_PT': 'CHILD(PT, 1)', 63 'LOKI_Muonm_PT': 'CHILD(PT, 2)', 64 'LOKI_MAXPT': 'TRACK_MAX_PT', 65 'LOKI_N_HIHGPT_TRCKS': 'NINTREE(ISBASIC & HASTRACK & (PT > 1500*MeV))' 66 }, 67 particle_code_thor={ 68 'THOR_P': P, It was planned (here), but Alex told me that this was dropped.
Thanks for the pointer. To me also this is something relevant. Maybe you @amathad can talk to Niklas and Martina to see if something can be "uplifted" as it would benefit us all?
changed this line in version 6 of the diff
@apearce Yes sorry thats what you conveyed, I was just lazy to type that
. @erodrigu A fix without "touching" DumpContainer might be to have some sort of ThOr wrappers for LoKi functors and adapting the ThOr factory to invoke LoKi factory when we hit a LoKi functor. This could be helpful for us too. I can talk to Niklas about it, but can't see a straight forward "uplifting" of this code to DumpContainer. Is DumpContainer being used anywhere at the moment? Or I guess it will be used soon? (@apearce )
Edited by Abhijit MathadYou successfully nerd-sniped me with the LoKi adapter; see Rec!2429 (closed) and Phys!935 (closed) for an example implementation.
With those, these two filters produce identical results (code embedded within Moore!821 (merged)):
ParticleFilter(Input=pions, Cut=F.FILTER(F.PT > 250 * MeV)) ParticleFilter(Input=pions, Cut=F.FILTER(F.LOKI("PT") > 250 * MeV))
I'm not sure I'll have time to push this through to something polished; hopefully it serves as inspiration at least.