Create a simulated 1D counter
This MR introduce a OneDimSimulationCounter
in order to easily create simulated device with the right acquisition device.
It's a rework of a part of !3686 (merged) as an independent MR.
- Create
OneDimSimulationCounter
based onSamplingCounter
and the refactorization of theFixedShapeCounter
- Add few other options to the signal generator (
coef
,poissonian
,linear_up
)
This can be used the following way
controller = OneDimSimulationController(name="onedim")
c1 = OneDimSimulationCounter("c1", controller=controller, signal="gaussian", coef=10, size=5)
c2 = OneDimSimulationCounter("c2", controller=controller, signal="linear_up", coef=10, poissonian=True, size=20)
Edited by Valentin Valls