7#ifndef TOOLS_NOISEGENERATOR_H
8#define TOOLS_NOISEGENERATOR_H
21#include <boost/math/distributions/poisson.hpp>
26#include "Math/DistFunc.h"
67 std::unique_ptr<TRandom3>
random_{
nullptr};
std::unique_ptr< boost::math::poisson_distribution<> > poisson_dist_
pdf for poisson errors
std::vector< double > generateNoiseHits(int emptyChannels)
Generate noise hits.
double pedestal_
Pedestal or baseline.
double noiseThreshold_
The noise threshold.
std::unique_ptr< TRandom3 > random_
Random number generator.
void setPedestal(double pedestal)
Set the pedestal.
~NoiseGenerator()
Destructor.
bool useGaussianModel_
Gaussian flag.
void seedGenerator(uint64_t seed)
Seed the generator.
void setNoiseThreshold(double noiseThreshold)
Set the noise threshold.
bool hasSeed() const
Has been seeded?
void setNoise(double noise)
Set the mean noise.