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

Add a built-in implementation of default MC smearing functions #288

Merged
merged 5 commits into from
Apr 4, 2023

Conversation

alekgajos
Copy link
Member

The present implementation of MC smearing functions is very generic and allows for smearing with any arbitrary resolution model PDF provided by the user. The cost, however, is that the smearing procedure is computationally expensive as internally the resolution model is constructed anew for every event.

This PR adds the default smearing functions (which so far are the only resolutions models in our use) which can be applied much faster thanks to their Gaussian nature.

Relevant GeantParser parameters:

"GeantParser_UseDefaultZSmearing_bool": true,
"GeantParser_UseDefaultTimeSmearing_bool": true,
"GeantParser_UseDefaultEnergySmearing_bool": true,
"GeantParser_DefaultZSmearingSigma_float" : 3.0,
"GeantParser_DefaultTimeSmearingSigma_float": 80.0,
"GeantParser_DefaultTimeSmearingThresholdEnergy_float": 200.0,
"GeantParser_DefaultTimeSmearingReferenceEnergy_float": 270.0,
"GeantParser_DefaultEnergySmearingFraction_float": 0.044

@alekgajos alekgajos changed the title [WIP] Add a built-in implementation of default MC smearing functions Add a built-in implementation of default MC smearing functions Feb 27, 2023
Copy link
Member

@wkrzemien wkrzemien left a comment

Choose a reason for hiding this comment

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

It looks good to me!

@kkacprzak kkacprzak merged commit 522a7ef into JPETTomography:develop Apr 4, 2023
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