Giter Club home page Giter Club logo

Comments (4)

eduardo-rodrigues avatar eduardo-rodrigues commented on June 14, 2024

Thanks for the comment/feedback, Adam. Let me post here what I exchanged in chat with you, as a starting point:

The dict representations can store "anything" (dec files are wild) but a DecayChain is in the present incantation a simple thing, only for a decay chain, not for n possible decay chains. If I understand quickly you rather want some splitting function that spits out a set/list of DecayChain instances?

This is very fair and something that has been on the list in my head since a while ... Actually for the same reason as you, meaning when I think in terms of searches of final states for some use-case ...

Let's try and get something worked out.

from decaylanguage.

admorris avatar admorris commented on June 14, 2024

Yes, that's what I'd like. I was thinking of the word "flattening" but this is used already in another context, so how about "expanding" the decay dicts to a list of unique decay chains.

Chris and I have written some similar logic already for the NTuple Wizard decays.py#L509-579 where it traverses down to the bottom of the tree (the final state) and works its way back up, collecting all combinations that arise from multiple decay modes (and PID substitutions, although that's not relevant here).

from decaylanguage.

admorris avatar admorris commented on June 14, 2024

I mean, they don't have to be DecayChain objects since I'm unsure if it can handle e.g. $B_s \to (\phi \to K^+ K^-) (\phi \to \pi^+ \pi^- \pi^0)$ without giving each $\phi$ a unique name. I'd be happy with just strings (decay descriptors) as the output.

from decaylanguage.

eduardo-rodrigues avatar eduardo-rodrigues commented on June 14, 2024

Yes "expanding" sounds good to me, and it is easiest in a first implementation to only provide the output as a string (or a DaughtersDict on which you call to_string, if you prefer) .

Indeed there are some limitations and right now your decay Bs -> phi phi with 2 different phi decays would need to have the phi's aliased to different names. This is not too crazy if one things that the decays are different, but it is for sure a limitation in certain contexts.

Let's sort in the immediate future your use-case. I guess you will need a release as soon as this is done. Just let me know.

Thanks again,

from decaylanguage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.