Adding PID features to a .config file currently causes a significant slow-down as multiple histogram projections are being performed on every parameter evaluation.
Factoring the code out into a RapidPID class and caching the TH1D probNN distributions as well as the minimum and maximum values of p and eta offers a 10x speed-up.
Adding PID features to a
.config
file currently causes a significant slow-down as multiple histogram projections are being performed on every parameter evaluation.Factoring the code out into a
RapidPID
class and caching theTH1D
probNN distributions as well as the minimum and maximum values of p and eta offers a 10x speed-up.