X Tutup
Skip to content

Initial version of gaus_hit_finder example#5

Open
wddgit wants to merge 1 commit intoFramework-R-D:mainfrom
wddgit:migrateGausHitFinder
Open

Initial version of gaus_hit_finder example#5
wddgit wants to merge 1 commit intoFramework-R-D:mainfrom
wddgit:migrateGausHitFinder

Conversation

@wddgit
Copy link

@wddgit wddgit commented Mar 6, 2026

This is an initial version of the result of the migration of the module defined in GausHitFinder_module.cc in the larreco repository of LArSoft from the existing version designed to run under the art framework to a version that will run under the phlex framework. The purpose of this code is to serve as an example for future migrations and also to be used in prototype testing. It is not intended to be used for reconstruction of data for use in physics analysis. That code should be placed in some other repository and maintained by other groups.

See the README.md (best viewed in GitHub) for more information.

@wddgit
Copy link
Author

wddgit commented Mar 6, 2026

This was from Beojan on SLACK.

What level of review are you looking for here?

For instance while the file you're printing has a CSV-style header, it isn't a CSV because it has a newline after each field. Is that to match a file produced by the existing GausHitFinder?

and

I'd suggest using fmt::print instead of iostreams, which can really clean up that code.

@wddgit
Copy link
Author

wddgit commented Mar 6, 2026

And my reply. Thanks. Beojan. I will change it to .txt and use fmt::print.

@wddgit wddgit force-pushed the migrateGausHitFinder branch from 9f38888 to b83228e Compare March 9, 2026 16:03
@wddgit
Copy link
Author

wddgit commented Mar 9, 2026

I force pushed a modification. The most significant part of implements Beojan's suggestions. It changes from using ofstream to fmt::print to print out the hits to be used in a comparison with the output of the existing LArSoft version of GausHitFinder. Also changes the suffix of that file to ".txt". There is some additional cleanup of some minor things also (making sure there is a newline at the end of files, fix some files with omitted header guards, improve a few comments, shorten some excessively long lines, order of includes improved).

@wddgit
Copy link
Author

wddgit commented Mar 9, 2026

FYI @beojan Just to make sure you are receiving comments on this PR.

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.

1 participant

X Tutup