Make the sampler independent of the digiloader and payload types
Add template parameter (DigiLoader) to the sampler