Skip to content

Conversation

@knoepfel
Copy link
Contributor

@knoepfel knoepfel commented Nov 1, 2023

Accommodate changes from:


N.B.: This PR should not be merged until the above PRs have been merged into a LArSoft release.

@PetrilloAtWork
Copy link
Member

This is related to SBNSoftware/icaruscode#642.

@PetrilloAtWork PetrilloAtWork self-requested a review February 1, 2025 22:29
@jzennamo jzennamo requested a review from gputnam February 4, 2025 23:47
@knoepfel knoepfel force-pushed the geom-separate branch 2 times, most recently from cafb1e9 to 37691b0 Compare February 5, 2025 14:24
Copy link
Member

@PetrilloAtWork PetrilloAtWork left a comment

Choose a reason for hiding this comment

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

PMT ordering needs to be fixed, and the geometry configuration FHiCL too.
Stand-alone geometry loading needs to be thought through again. I believe there is code here that compiles only because of uninstantiated templates (but I may be wrong).
There are comments spread in the code that are more about upstream design and maybe feature requests than stuff pertaining this specific PR (which is of course affected by that design).

In SBNSoftware there is a fork of this branch with some of the essential fixes already implemented.


// 1. we initialize it from the configuration in the environment,
geo::GeometryTestAlg Tester(TestEnvironment.TesterParameters());
// 1. we initialize it from the environment,
Copy link
Member

Choose a reason for hiding this comment

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

Not really... half the stuff is out of the environment now.

icarus_geometry_template: {
SurfaceY: 6.9e2 # in cm, vertical distance to the surface
Name: "icarus_v2" # see ICARUS wiki for a list
DisableWiresInG4: true
Copy link
Member

Choose a reason for hiding this comment

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

How is the special wireless GDML file served now?

Comment on lines 172 to 173
Name: "icarus_v4"
GDML: "icarus_refactored_nounderscore_20230918.gdml"
Copy link
Member

Choose a reason for hiding this comment

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

As mentioned above, I recommend this to be moved into the template configuration.

// by plane; the following is still correct, has fewer assumptions and it's
// easier to expand, but a bit more wordy.
GeometryCache_t::LimitsCache_t limits = geom.makePlaneData<TimeLimits_t>();
GeometryCache_t::LimitsCache_t limits{geom.Ncryostats(), geom.MaxTPCs(), wireReadout.MaxPlanes()};
Copy link
Member

Choose a reason for hiding this comment

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

I suppose makePlaneData() was removed to decouple GeometryCore and WireReadoutGeom from geo::GeoContainerData... I still think being able to create this data structure with a single call is a functionality worth having (there are plenty of places where this would be beneficial... most of them written earlier).

@knoepfel
Copy link
Contributor Author

@PetrilloAtWork, assuming you are a maintainer, you can commit changes directly to this PR—no need to wait for my approval. This PR was intended to provide a means of starting (if not fully effecting) the migration from LArSoft 9 to 10. It will be much more efficient for ICARUS to directly make the changes to the PR. Otherwise, you will be waiting from me to find spare cycles to implement your suggestions—and those spare cycles are much harder to come by now that almost all of my time is allocated toward framework development for DUNE.

@PetrilloAtWork
Copy link
Member

Thank you, @knoepfel. We'll proceed to the changes that we think clear or trivial, and come back to you to discuss the ones that may warrant some thought.

Copy link
Member

@PetrilloAtWork PetrilloAtWork left a comment

Choose a reason for hiding this comment

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

I have integrated the simple changes and bug fixes.
There are a couple of points remaining:

  1. how is the "nowire" geometry served now?
  2. service provider interface is maximally inconsistent

However, this PR is approved while those points are tackled.

@PetrilloAtWork PetrilloAtWork self-requested a review February 28, 2025 08:16
Copy link
Member

@PetrilloAtWork PetrilloAtWork left a comment

Choose a reason for hiding this comment

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

Finally rejecting this PR in favour of #92.

@kjplows kjplows moved this from Open pull requests to Needs revisiting in SBN software development Aug 9, 2025
@kjplows kjplows moved this from Needs revisiting to Open pull requests in SBN software development Aug 9, 2025
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.

4 participants