gcowan / RapidSim

Phase space generation of b hadron decays
MIT License
18 stars 29 forks source link

Implement caching of PID distributions and p,eta ranges #33

Closed dcraik closed 6 years ago

dcraik commented 6 years ago

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.