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

Error handling if solving eigenvalue equation fails #7

Open
ktht opened this issue Oct 22, 2023 · 1 comment
Open

Error handling if solving eigenvalue equation fails #7

ktht opened this issue Oct 22, 2023 · 1 comment

Comments

@ktht
Copy link
Member

ktht commented Oct 22, 2023

A handful of jobs failed because of this line:

EigenVectors = tmp.EigenVectors(EigenValues);

when calculating Rchsh. Although it's supposed to be caught whenever an exception is thrown, in practice it can trigger this line, which is delegated to signal handler. The only solution would be to ignore erros by setting gErrorAbortLevel to kBreak here:
gErrorAbortLevel = kError;

But then this line will cause issues:
return std::vector<std::pair<TVectorD, double>>();

which causes all results to be nans.

I've only noticed this error when running the jobs on a subset of events (1M). It's not clear yet if it'll persist when processing the full sample. Interestingly, the only jobs that failed with this particular error are pi_a1 in startPos mode when the cut on $\cos\theta^*$ is quite relaxed.

@ktht
Copy link
Member Author

ktht commented Oct 25, 2023

So the error still persisted even after processing the full sample (of 200M events). All jobs that failed are running in startPos mode and either in rho+a1 or pi+a1 decay mode (but the former happened four times as frequently). Half of the failed jobs ran ML fit while the other half ran the summation method. Fortunately, we don't necessarily need those results for the publication.

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