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

PrescaleEvent_module.cc prescaling algorithm #1208

Open
kutschke opened this issue Mar 5, 2024 · 0 comments
Open

PrescaleEvent_module.cc prescaling algorithm #1208

kutschke opened this issue Mar 5, 2024 · 0 comments

Comments

@kutschke
Copy link
Collaborator

kutschke commented Mar 5, 2024

Trigger/src/PrescaleEvent_module.cc , at line:

bool condition = e.event() % ps == 0;

prescales events based on (( e.event() % ps ) == 0), where ps is the prescale factor. This works fine for MC eventsi for which events are are in order and there are no missing event numbers; that is the environment in which it has been tested so far.

In the trigger farm most process will see about 1/800 of the events. Moreover the distribution of event numbers across processes will have short term structure. This could lead to unbalance rates of prescalled events coming out of each processes. It's possible that the structure is so short term that the imbalances will be short lived enough that we don't care. Be we don't know that with any certainty.

Does it make more sense instead to prescale on )( _nevt % ps ) ==0 ) where _nevt is declared at:

unsigned _nevt, _npass;

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

No branches or pull requests

1 participant