8 #ifndef __MQWMOCKABLE__
9 #define __MQWMOCKABLE__
12 #include "boost/random.hpp"
83 static boost::variate_generator
void SetRandomEventParameters(Double_t mean, Double_t sigma)
Set the normal random event parameters.
std::vector< Double_t > fMockDriftPhase
Harmonic drift phase.
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Add drift parameters to the internal set.
std::vector< Double_t > fMockDriftFrequency
Harmonic drift frequency.
Double_t fMockGaussianSigma
Sigma of normal distribution.
static boost::mt19937 fRandomnessGenerator
Internal randomness generator.
static boost::normal_distribution< double > fNormalDistribution
Internal normal probability distribution.
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Set a single set of harmonic drift parameters.
bool fUseExternalRandomVariable
Flag to use an externally provided normal random variable.
double fExternalRandomVariable
Externally provided normal random variable.
Double_t GetRandomValue()
Double_t fMockGaussianMean
Mean of normal distribution.
std::vector< Double_t > fMockDriftAmplitude
Harmonic drift amplitude.
Double_t fMockAsymmetry
Helicity asymmetry.
static boost::variate_generator< boost::mt19937, boost::normal_distribution< double > > fNormalRandomVariable
Internal normal random variable.
virtual void RandomizeEventData(int helicity=0, double time=0.0)=0
Internally generate random event data.
void SetExternalRandomVariable(Double_t random_variable)
Set the externally provided random variable.
void UseExternalRandomVariable()
Set the flag to use an externally provided random variable.
void SetRandomEventAsymmetry(Double_t asymmetry)
Set the helicity asymmetry.
virtual void EncodeEventData(std::vector< UInt_t > &buffer)=0
Encode the event data into a CODA buffer.