Extracting the cross section error from gridpack generated sample

Asked by Gilberto Tetlalmatzi

Dear administrator
I am currently generating event samples using a gridpack. The events are in the format lhe.gz. I am using a python script to extract the cross section through the command

 lhe_this = lhe_parser.EventFile(f)
 xs= lhe_this.cross

where f is the lhe.gz file containing the events, is there also simple way of determining extracting the corresponding error?

Thanks in advance!
Gilberto

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

You need to be very careful about error since they are not a unique definition of statistical uncertainty.
For example do you want the error on the cross-section or the statistical error on the sample of the lhe file (which will not be the same).

What you can do is the following:

banner = lhe_this.get_banner()
cross, error = banner.get_cross(witherror=True)

The error is here the error on the estimation of the cross-section.

Cheers,

Olivier

> On 11 Aug 2020, at 15:45, Gilberto Tetlalmatzi <email address hidden> wrote:
>
> New question #692336 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/692336
>
> Dear administrator
> I am currently generating event samples using a gridpack. The events are in the format lhe.gz. I am using a python script to extract the cross section through the command
>
> lhe_this = lhe_parser.EventFile(f)
> xs= lhe_this.cross
>
> where f is the lhe.gz file containing the events, is there also simple way of determining extracting the corresponding error?
>
> Thanks in advance!
> Gilberto
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Gilberto Tetlalmatzi (gtx83) said :
#2

Hi Oliver

Thank you very much!. The solution proposed works nicely :).

Cheers

Gilberto

________________________________
From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
Sent: 11 August 2020 17:55:49
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #692336]: Extracting the cross section error from gridpack generated sample

Your question #692336 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/692336

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
Hi,

You need to be very careful about error since they are not a unique definition of statistical uncertainty.
For example do you want the error on the cross-section or the statistical error on the sample of the lhe file (which will not be the same).

What you can do is the following:

banner = lhe_this.get_banner()
cross, error = banner.get_cross(witherror=True)

The error is here the error on the estimation of the cross-section.

Cheers,

Olivier

> On 11 Aug 2020, at 15:45, Gilberto Tetlalmatzi <email address hidden> wrote:
>
> New question #692336 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/692336
>
> Dear administrator
> I am currently generating event samples using a gridpack. The events are in the format lhe.gz. I am using a python script to extract the cross section through the command
>
> lhe_this = lhe_parser.EventFile(f)
> xs= lhe_this.cross
>
> where f is the lhe.gz file containing the events, is there also simple way of determining extracting the corresponding error?
>
> Thanks in advance!
> Gilberto
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/mg5amcnlo/+question/692336/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/mg5amcnlo/+question/692336

You received this question notification because you asked the question.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3