Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GENIE Rockbox Dirt Workflow #203

Merged
merged 13 commits into from
Nov 10, 2021
Merged

GENIE Rockbox Dirt Workflow #203

merged 13 commits into from
Nov 10, 2021

Conversation

etyley
Copy link
Member

@etyley etyley commented Oct 28, 2021

This PR adds fcls and filters required to generate dirt interactions using the GENIEHelper RockBox configuration, fixing #176.

The structure of the added code is as follows:

Gen:

  • Update genie_sbnd to contain the rockbox configuration
  • Add prodgenie_rockbox_sbnd as a base fcl for generating events. This saves any event with either a interaction in the TPC volume or a dirt interaction that deposits >100 MeV in the TPC during the beam window
  • Add prodgenie_rockbox_intrnue_sbnd version of this fcl for NuE only events
  • Add prodoverlay_corsika_cosmics_proton_genie_rockbox_(intrnue_)sbnd.fcl to add CORSIKA overlay to the GENIE fcls

G4:

  • Create a new sbnd_merge_overlay_sim_sources to manage the merging of the largeant instances
  • Add g4_dirt_filter.fcl to run G4 without largeant as that is run in the gen stage of the rockbox fcls
  • Add g4_dirt_overlay_filter.fcl to run largeant over CORSIKA and merge the collection with the GENIE largeant collection before running the remained of standard G4
  • Add sce versions of both of the above
  • Ideally both workflows would use the same G4 but that is not possible due to ongoing issues with the new larG4: https://cdcvs.fnal.gov/redmine/projects/larsoft/wiki/ReleaseNotes093500#Known-issues. Once this is addressed largeantCosmic and the merging should be moved to the prodoverlay_rockbox fcls so they can use the g4_dirt_filter rather than having their own fcl.

Filters:

  • Add new SimEnergyDepFakeTriggerFilter to utilise the SimEnergyDeposit produced by the refactored larG4 to check the amount of energy deposited in the detector during the beam spill time
  • Create a new sbnd_tpc_gennufilter filter to check if a neutrino interaction occurs inside the TPC volume
  • Add split_tpc_nu fcl to run over input files and split into two output streams for those with/without a TPC interation.

As of v09_35_01 the relevant LArSoft changes have been merged and the necessary addition to sbnd_data is done, so this PR is ready for review

@etyley etyley linked an issue Oct 28, 2021 that may be closed by this pull request
@etyley etyley marked this pull request as ready for review November 5, 2021 16:05
# Select the beam spill time to match that in sbnd_filtergenintime
BeamTimeMin: -0.2 # Minimum time of beam window [us]
BeamTimeMax: 1.9 # Maximum time of beam window [us]
EnergyDeposit: 100 # Minimum energy deposit in TPC for trigger [MeV]
Copy link
Contributor

Choose a reason for hiding this comment

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

In the future we should think if this is the best value for this, for now I am happy to proceed but we should open an issue to verify this is the optimal energy cut.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, I will do that once this has been merged.

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.

This is excellent! One question before I formally approve, has this been tested all the way through reco2 to make sure the full end-to-end workflows work with these events?

@etyley
Copy link
Member Author

etyley commented Nov 5, 2021

I have tested this end-to-end with an older release and am currently re-running through the validation now that everything has been updated to v09_35_01

@jzennamo
Copy link
Contributor

jzennamo commented Nov 5, 2021

awesome, that is sufficient for me, but let us know how the v09_35_01 test goes!

Copy link
Member

@marcodeltutto marcodeltutto left a comment

Choose a reason for hiding this comment

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

Thanks very much @etyley! Looks great

Comment on lines 22 to 25
outputs.out1.outputCommands: [ "keep *_*_*_*"
, "drop *_largeantnu_*_*"
, "drop *_largeantcosmic_*_*"
]
Copy link
Member

Choose a reason for hiding this comment

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

If PR #206 is approved, do you mind dropping the larg4 SimEnergyDeposits here too? Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

@etyley #206 has now been approved and merged, so you can now update this to also drop these products

Copy link
Member Author

Choose a reason for hiding this comment

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

@pgreen135 Done!

@pgreen135
Copy link
Member

trigger build

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for c7:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e20:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

Copy link
Member

@pgreen135 pgreen135 left a comment

Choose a reason for hiding this comment

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

CI's look good, differences are unrelated to this.

@pgreen135
Copy link
Member

trigger build

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for c7:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e20:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@pgreen135 pgreen135 merged commit 13e1d6d into develop Nov 10, 2021
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.

Dirt Workflow
5 participants