uboone / xsec_analyzer

0 stars 11 forks source link

Implement Registry for Selection Factory #3

Open calcuttj opened 3 weeks ago

calcuttj commented 3 weeks ago

I have a plan to add a registry. For example like this

https://github.com/DUNE/protoduneana/blob/develop/protoduneana/Utilities/FitUtils/ThinSliceDriverRegistry.cxx

Then a new selection can be easily/more cleanly added as in https://github.com/DUNE/protoduneana/blob/develop/protoduneana/Utilities/FitUtils/AbsCexDriver.cxx#L26

DECLARE_THINSLICEDRIVER_FACTORY_NS(protoana::AbsCexDriver, protoana, AbsCexDriver)
sjgardiner commented 3 weeks ago

Neat @calcuttj, looking forward to the PR!