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

Cosmic InTime Workflow with Refactored LArG4 #192

Merged
merged 8 commits into from
Nov 2, 2021
Merged

Conversation

marcodeltutto
Copy link
Member

@marcodeltutto marcodeltutto commented Oct 19, 2021

This PR adds a workflow for making intime samples with the new larg4 simulation. Fixes #147.

Depends on:

With the new larg4 we have a proliferation of modules that we need to run to get all the TPC, PDS, and CRT simulated products. It's much harder to bookkeep all of this when dealing with our intime workflow, where we first simulate in-time cosmics, then out-time ones, and then we merge them together. I made this flowchart to try and not forget anything, which I hope will be useful for the future as well.

InTime Workflow drawio

The fcls to run are:

  • prodcorsika_proton_intime_filter.fcl, or prodcorsika_proton_intime_filter_sce.fcl
  • g4_simphotontime_filter.fcl
  • standard_detsim_sbnd.fcl and the usuals...

@pgreen135
Copy link
Member

trigger build LArSoft/larg4#30,LArSoft/larsim#76

@FNALbuild
Copy link
Collaborator

CI build for LArSoft on slf7 for c7:prof is in progress -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

CI build for LArSoft on slf7 for e20:prof is in progress -- 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 on slf7 for c7:prof is in progress -- details available through the CI dashboard

parent CI build details are 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 on slf7 for e20:prof is in progress -- details available through the CI dashboard

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 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 Succeeded on slf7 for e20:prof -- details available through the CI dashboard

parent CI build details are available through the CI dashboard

@pgreen135
Copy link
Member

CI tests look good

@marcodeltutto marcodeltutto marked this pull request as ready for review October 28, 2021 11:18
@marcodeltutto
Copy link
Member Author

Hi @pgreen135, larsoft v09_35_00 should have all the needed ingredients for this PR to work. Feel free to merge, thanks!

@pgreen135
Copy link
Member

great, thanks @marcodeltutto; I saw there are some "known issues" mentioned in larsoft v09_35_00 release notes -- are these impacting this?

@marcodeltutto
Copy link
Member Author

@pgreen135 They are not impacting this PR or the InTime workflow in general, but they limit our ability to use larg4 if we want to have two larg4 instances in the same job (in this PR I have 2 instances, but in two separate fcls). For the dirt workflow PR #203 for example is annoying to have this issue, but it's ok to have it fixed later.

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.

Okay, in which case this looks good from my side. I'll wait for @jzennamo to also approve before merging.

@jzennamo
Copy link
Contributor

jzennamo commented Nov 1, 2021

This looks excellent! One quick question, does the CI test the in-time cosmic workflow laid out here? Have we tested that it does in fact run?

@pgreen135
Copy link
Member

pgreen135 commented Nov 1, 2021

@jzennamo no, the CI does not run this -- you/Marco should definitely test this is working locally before we merge it!

@jzennamo
Copy link
Contributor

jzennamo commented Nov 1, 2021

OK! I merged this branch into v09_35_00 and I'll see if I can complete the same workflows Marco laid out above

@jzennamo
Copy link
Contributor

jzennamo commented Nov 1, 2021

OK, my findings:
For the gen stage I ran prodcorsika_proton_intime_filter_sce.fcl and got:
Events total = 500 passed = 4 failed = 496 --> ~1% pass rate, this matches what we had for MCP2020

Then I ran g4_sce_simphotontime_filter.fcl, detsim_sce.fcl, reco1_sce.fcl, and reco2_sce.root

In 4 events there is on average ~11 tracks which seems reasonable and they are reasonably distributed across the TPC.

one comment, the gen stage creates a "hist file" with _hists appended to the end, while all other stages add hists_ to the front, could this be changed before it is merged?

Save this one very minor comment I am happy for this to move forward!

@marcodeltutto
Copy link
Member Author

Thanks @jzennamo! I fixed the hist file name with commit 9f057a4.

@jzennamo
Copy link
Contributor

jzennamo commented Nov 1, 2021

Approved! Thanks again!

@pgreen135 pgreen135 merged commit e79cf94 into develop Nov 2, 2021
@marcodeltutto marcodeltutto deleted the mdeltutt_issue147 branch April 8, 2022 18:07
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.

Check Gen and G4 InTime FHiCLs with Refactored LArG4
4 participants