JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for NEUTRINO-MC-SUPPORT Archives


NEUTRINO-MC-SUPPORT Archives

NEUTRINO-MC-SUPPORT Archives


NEUTRINO-MC-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

NEUTRINO-MC-SUPPORT Home

NEUTRINO-MC-SUPPORT Home

NEUTRINO-MC-SUPPORT  February 2013

NEUTRINO-MC-SUPPORT February 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: How to weight genie events?

From:

Kotoyo Hoshina <[log in to unmask]>

Reply-To:

Kotoyo Hoshina <[log in to unmask]>

Date:

Wed, 20 Feb 2013 18:02:43 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (66 lines)

Dear Philip,

Thank you for your immediate response!

>With the total cross section given by the spline, along with your flux, you can calculate the expected total number of events as >flux*(cross section), and use it to scale your event histogram.

I see, I think now I start to understand how to treat my problem.
EventRecord holds cross section that the "selected" event. It also hold an interaction probability that the specific event make happen. 
So, when I pick up one event and ask "what is the probability that this event happens?", it's simply obtained with
prob = evt->Probability().
The sum of prob of all event will be how many neutrino actually interacted, when 2000 primary neutrino is injected
(since I generated 2000 events). In other words, this is the event weight.

Am I correct?
(It looks very simple, and I'm a bit ashamed that I didn't understand it earlier)

>This gets a little tricky when your detector contains multiple elements, because you have to get multiple splines, and weight >them correctly, so I wonder if any of the GENIE developers know an easier way (or some existing tools that do this)

Here I think you are trying to explain another way to weight event, which I'm using for our group's neutrino MC too.
weight = 1 - exp (-N * total cross section * path length)       (= N * total cross section * path length @ low E)
In this case ALL injected neutrino will make interaction.
Yes that would be nice if we have any good tools to do it easier! (I already wrote the code in my test program, though).

I hope now I understand how to weight genie event correctly, but weighting is always tricky and dangerous if users don't know how the events are generated.
So it would be nice if experts can add one short section "how to weight genie event" in genie user's manual in near future :).

Thank you again,
Kotoyo


On Feb 20, 2013, at 9:49 AM, Philip Rodrigues <[log in to unmask]> wrote:

Dear Kotoyo,
It sounds like you want to make cross section plots (or something that you can easily calculate given the cross section, like events in a given exposure in your detector). For that you'll need the cross section spline file. I found it easier to work with a ROOT version of the spline file, which you can create from the XML spline file using gspl2root. With the total cross section given by the spline, along with your flux, you can calculate the expected total number of events as flux*(cross section), and use it to scale your event histogram.

This gets a little tricky when your detector contains multiple elements, because you have to get multiple splines, and weight them correctly, so I wonder if any of the GENIE developers know an easier way (or some existing tools that do this)
Hope that helps,
Phil

On 02/19/2013 07:17 PM, Kotoyo Hoshina wrote:
Hello,

I'm a new beginner of genie neutrino generator, and have a question about how to weight genie events.
The "weight" I mean is NOT same thing as the field I can get from EventRecord with following function
evt->Weight();
which for now I set always 1.

I generated 2000 genie event with gevgen command, and converted result .root file to gst format root file.
When I draw 1D histogram of El parameter (energy of final-state lepton), the vertical axis will be number of generated events per energy bin. This is just unweighted MC histogram and can't be used for physics analysis.
Now I want to convert this number to physics plot, number of interactions actually happened per 2000 primary neutrinos. Due to the small cross section, the vertical axis should become very small (~1e-36).

According to Genie user manual, genie is using internal global probability scale which is chosen from highest input energy and longest path length. At first, I thought this number will be the constant event weight to get actual number of events :

event_weight = gmcj_driver->GlobProbScale()
...
gst->Draw("El", event_weight);

but after I read GMCJDriver carefully I noticed it won't work, because the event loop inside GMCJDriver actually loops much more than 2000. There is no way to know how many neutrinos are actually injected, thus no way to get normalization factor.
It is always simple to calculate event weight of a specific event : it's just the interaction probability (and easy to obtain from EventRecord), but weighting entire MC sets strongly depends on how these MC sets are generated...
and I couldn't find any document about weighting procedures, instead, I found re-weighting staff (which currently I don't need.)

Is there any document or example code?

thank you,
kotoyo

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
July 2023
June 2023
May 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
October 2018
July 2018
May 2018
February 2018
January 2018
October 2017
May 2017
April 2017
March 2017
January 2017
December 2016
October 2016
September 2016
August 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
July 2015
May 2015
April 2015
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
April 2014
February 2014
December 2013
November 2013
October 2013
September 2013
August 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
October 2012
April 2012
March 2012
September 2011
July 2011
June 2011
May 2011
December 2010
November 2010
October 2010
September 2010
June 2010
May 2010
April 2010
March 2010
February 2010
July 2009
June 2009
May 2009
April 2009
March 2009
January 2009
December 2008
June 2008
December 2007
August 2007
July 2007


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager