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

Migration to the Refactored LArG4 #134

Merged
merged 47 commits into from
Aug 17, 2021
Merged

Conversation

marcodeltutto
Copy link
Member

@marcodeltutto marcodeltutto commented Aug 4, 2021

This PR contains all the necessary fcls and code to migrate to the new LArG4.
Changes are presented on docdb 22944.

Note that with this PR, the standard_g4_sbnd.fcl will run the new LArG4. To run the legacy larg4, fcl legacy_g4_sbnd.fcl should be used. All the g4_*.fcl files run the new LArG4. To run the legacy LArG4, replace g4_*.fcl with legacy_g4_*.fcl.
All the legacy g4 fcl files are in JobConfigurations/standard/g4/legacy/*

A new folder called LArG4 is added. This contains all the g4-related fcl configuration, as well as the physics list to be used in LArG4/PhysicsLists/. In this LArG4 folder:

  • larg4_sbnd.fcl: Configuration of the LArG4 module
  • larg4_services_sbnd.fcl: Configurations needed for the new LArG4
  • ionandscint_sbnd.fcl: Configuration for the ionization and scintillation part
  • simdrift_sbnd.fcl: Configuration for the electron drifting module
  • mcreco_sbnd.fcl: Configuration for MC reconstruction
  • PhysicsListLoader: a dummy module to load the physics list, needed before running LArG4

To run with the optical hybrid mode, fcl file g4_ophybrid_sbnd.fcl can be used in place of standard_g4_sbnd.fcl.

Open Items

  • Use correlated light model? -> Yes, as PR Adding QL-correlated G4 script #127 was merged.
  • Use optical hybrid mode? -> Added to default g4 workflow.
  • CRT part. -> Waiting for PR to be opened.

FHICL files

Suggested reviewer: @jzennamo
Standard fcls now run the new larg4. All the legacy fcls are in sbndcode/JobConfigurations/standard/g4/legacy/, and similar for detsim.

Optical

Suggested reviewer: @ggamezdiego

  • sbndcode/JobConfigurations/standard/standard_g4_sbnd.fcl: Runs in optical hybrid mode by default.
  • sbndcode/LArSoftConfigurations/photpropservices_sbnd.fcl: Adds optical library for light outside the active volume.
  • sbndcode/LArSoftConfigurations/PDFastSim_sbnd.fcl: Configuration for semi-analytical and optical library.
  • sbndcode/LArG4/larg4_services_sbnd.fcl: Specifies the LArG4 detector to use for the optical hybrid mode.
  • sbndcode/JobConfigurations/standard/g4/g4_noophybrid_sbnd.fcl: Same as standard_g4_sbnd.fcl, but without the optical hybrid part.

CRT

CRT will be included next. Right now, this PR excludes the CRT from the detsim stage. Issue #143 has been opened to track this.

Known Issues

  • All the MCParticles are saved, not only the ones in the cryostat and CRT. LArSoft issue 26106. For now, I produced GENIE+cosmic files and verified that the file size, although larger with the new LArG4, is still manageable.
  • There are many warning messages from SimDriftElectrons of type [...] unable to drift electrons from point [...] when electrons are drifted from points outside the active volume. LArSoft issue 26107.
  • The g4_simphotontime_filter.fcl will have to be reviewed to make sure the in-time and out-time paths are both running correctly. Issue Check Gen and G4 InTime FHiCLs with Refactored LArG4 #147 was opened to keep track of this issue.

Renames the current standard_g4_sbnd.fcl to legacy_g4_sbnd.fcl, as well as the simulationservices_sbnd.fcl and largeantmodules_sbnd.fcl.
Renames the current standard_detsim_sbnd.fcl to legacy_detsim_sbnd.fcl, and adds legacy configurations to detsimmodules_sbnd.fcl and opdetdigitizer_sbnd.fcl.
fcls added:
- standard_g4_sbnd.fcl: Standard G4 fcl that now runs the refactored larg4
- standard_detsim_sbnd.fcl: Standard detsim fcl compatible with the standard_g4_sbnd.fcl above
- larg4_sbnd.fcl: Configuration fcl for the new larg4
- larg4_services_sbnd.fcl: Services configuration for the new larg4
- ionandscint_sbnd.fcl: Configuration fcl for the IonizationAndScintillation module
- simdrift_sbnd.fcl: Configuration fcl for the electron drift simulation module
- simulationservices_sbnd.fcl: Updated simulation services for the new larg4
- Add a legacy folder inside the g4 one to store all the legacy g4 files
- Move legacy_detsim_sbnd.fcl and legacy_g4_sbnd.fcl to the legacy/ folder
- Create a legacy/others/ folder for all the others g4 legacy fcls
This directory contains:
- PhysicsLists/: which contains physics lists for SBND
- PhysListLoader_module.cc: a dummy module to load physics lists
- ionandscint_sbnd.fcl, larg4_sbnd.fcl, larg4_services_sbnd.fcl, legacy_largeantmodules_sbnd.fcl, legacy_simulationservices_sbnd.fcl, mcreco_sbnd.fcl, simdrift_sbnd.fcl: configuration fcl files
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.

I just had two little questions, otherwise I approve this!

@pgreen135
Copy link
Member

trigger build

@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 on slf7 for c7:prof is in progress -- 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 LArSoft Succeeded on slf7 for c7: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 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 SBND Failed at phase ci_tests SBND on slf7 for c7:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed 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 Failed at phase ci_tests SBND on slf7 for e20:prof - ignored warnings for build -- details available through the CI dashboard

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

parent CI build details are available through the CI dashboard

@pgreen135
Copy link
Member

trigger build

@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 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 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 SBND Failed at phase ci_tests SBND on slf7 for c7:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed 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 Failed at phase ci_tests SBND on slf7 for e20:prof - ignored warnings for build -- details available through the CI dashboard

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

parent CI build details are available through the CI dashboard

@pgreen135
Copy link
Member

@marcodeltutto can you have a look over the CI test results above, are these expected? there are two failures (the detsim stage for each test)

@wesketchum
Copy link
Contributor

I'm worried these are not expected errors:

60: %MSG-s ArtException:  PostEndJob 16-Aug-2021 12:36:13 CDT ModuleEndJob
61: ---- EventProcessorFailure BEGIN
62:   EventProcessor: an exception occurred during current event processing
63:   ---- ScheduleExecutionFailure BEGIN
64:     Path: ProcessingStopped.
65:     ---- ProductNotFound BEGIN
66:       getView: Found no products matching all criteria
67:       Looking for sequence of type: sim::SimChannel
68:       Looking for module label: simdrift
69:       Looking for productInstanceName: 
70:       The above exception was thrown while processing module SimWireSBND/daq run: 1 subRun: 0 event: 1
71:     ---- ProductNotFound END
72:     Exception going through path simulate
73:   ---- ScheduleExecutionFailure END
74: ---- EventProcessorFailure END
75: %MSG
76: Art has completed and will exit with status 1.

Looks like a bad fhicl?

@jzennamo
Copy link
Contributor

As far as I understand it the CI tests that are failing are doing so because they are trying to run DetSim over the reference files, but since G4 changed I don't think that this should work since there are data products missing. From my reading of these test outputs we should be OK.

Once this is merged we should update the reference files immediately.

@wesketchum
Copy link
Contributor

Issue #149 filed to capture this.

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.

None yet

8 participants