Skip to content

Conversation

@gputnam
Copy link
Contributor

@gputnam gputnam commented Oct 22, 2023

Gathers together a number of updates:

  • Includes update to GENIE Systematics (from Jaesung)
  • Includes build of Geant4Systematics
  • Fix to MeVPrtl
  • Updates to CAFMaker -- save hits from cathode crossers
  • Updates to beam spill accounting (from Joseph+Jacob L)
  • Updates to MCS (from Moon)

Depends on SBNSoftware/sbnanaobj#104.

Marking as a draft, for now.

jedori0228 and others added 28 commits June 2, 2023 12:25
Co-authored-by: Gianluca Petrillo <petrillo@slac.stanford.edu>
SBNEventWeight differences. Also make some adjustments to get it to build
against geant4reweight v01_00_03e -q e20:s117:prof
* Placeholder for sampled parameter storage, for CAF compatibility.
* Renamed fcl for consistency
@gputnam gputnam changed the title Feature/gputnam configs Configurations Enabling ICARUS NuMI Analysis Oct 22, 2023
@gputnam gputnam requested a review from jedori0228 October 22, 2023 02:11
@gputnam gputnam requested review from cfarnese and jzennamo October 22, 2023 02:11
@gputnam gputnam marked this pull request as draft October 22, 2023 02:12
@jzennamo
Copy link
Contributor

@gputnam it might help to base your branch off of my branch here:
#394

this has many similar changes as your PR

Copy link
Contributor

@jzennamo jzennamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I might base your PR off my other PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is probably best left for this PR:
#394

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is probably best left for this PR:
#394

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is probably best left for this PR:
#394

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is probably best left for this PR:
#394

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I might add a portion which corrects for the minbias gates directly to this accounting, something like this:

  if(evtCount != 0 && totalMinBias != 0)
    scale_factor = 1. - (evtCount/totalMinBias);

from https://github.com/SBNSoftware/sbncode/pull/394/files

//Get the weight from the G4ReweightTraj
w = theReweighter->GetWeight( &theTraj );
// Total weight is the product of track weights in the event
weight[j] *= std::max((float)0.0, w);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be the max between 1 and w?


// Do the same for elastic weight (should be 1 unless set to non-nominal )
el_w = theReweighter->GetElasticWeight( &theTraj );
weight[j] *= std::max((float)0.0,el_w);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be the max between 1 and w?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only comment is that maybe the random seeds should be a bit more....random ;)

Name: "fPiPlusReacLow"
Cut: "reac"
Range: [10., 200.]
Nominal: 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Nominal: 1
Nominal: 1.0

Name: "fProtonReac"
Cut: "reac"
Range: [10., 2005.]
Nominal: 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Nominal: 1
Nominal: 1.0

@gputnam
Copy link
Contributor Author

gputnam commented Feb 5, 2024

This PR has now been superseded by a combination of other PRs, most recently: #417, https://github.com/SBNSoftware/sbncode/pull/418/files, and #419. Closing this in favor of those.

@gputnam gputnam closed this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants