LHE ordering

Asked by Olivier Mattelaer

hi,

Do you have have the possibillity to order the particle at parton-level by the order in which they are written in the leshouches file?
Obviously the only interest is debugging to check if distribution that should be identical are indeed identical.

Cheers,

Olivier

Question information

Language:
English Edit question
Status:
Answered
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jack Y. Araz (jackaraz) said :
#1

Dear Olivier

The particles are already ordered as written in the LHE file you can use the following piece to access them;

```
for (MAuint32 i=0;i<event.mc()->particles().size();i++)
{
 INFO << "P " << i << " : " << event.mc()->particles()[i].pdgid() << ", " << event.mc()->particles()[i].px() << endmsg;
}
```

Hope it helps
Best regards


Jack Y. Araz

> On Mar 20, 2021, at 8:50 PM, Olivier Mattelaer <email address hidden> wrote:
>
> [EXTERNAL EMAIL]
>
> New question #696158 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/696158
>
> hi,
>
> Do you have have the possibillity to order the particle at parton-level by the order in which they are written in the leshouches file?
> Obviously the only interest is debugging to check if distribution that should be identical are indeed identical.
>
> Cheers,
>
> Olivier
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Can you help with this problem?

Provide an answer of your own, or ask Olivier Mattelaer for more information if necessary.

To post a message you must log in.