Mu2e / Offline

Offline software for the Mu2e experiment
Apache License 2.0
8 stars 82 forks source link

Offspill Crv and Calorimeter noise generation is very inefficient #1101

Open brownd1978 opened 1 year ago

brownd1978 commented 1 year ago

Generating noise in the calorimeter and crv for 100usec OffSpill events takes ~1 second. A faster algorithm is needed.

bechenard commented 1 year ago

I made modifications to speed up the calorimeter noise generation. The noise is generated under "large" energy deposits in each crystal, but the small "salt and pepper" noise is ignored for now (it was already disabled as it requires more work to be done properly, and the physics impact is minimal, especially for off-spill events). My tests indicate that the calo noise takes about 0.01s to generate without any change in the physics w.r.t. the previous code. Should be fine for the time being, and we will work to further improve the noise description (salt and pepper) in the future.