Mu2e / Offline

Offline software for the Mu2e experiment
Apache License 2.0
8 stars 81 forks source link

constructTargetPS depends on geometry maker #1266

Open gaponenko opened 4 months ago

gaponenko commented 4 months ago

Mu2eG4/src/constructTargetPS.cc includes "Offline/GeometryService/inc/ProductionTargetMaker.hh"

While the maker happens to live in GeometryService, and it is OK to depend on the library, this breaks the separation between geometry parsing (the maker classes) and users of the parsed geometry. I think geometry makers are only supposed to be used by GeometryService itself.

There are many other cleanups that would be nice to do in the production target geometry code. Is it time to simplify it by removing the "tier 1" design?