20boost::variate_generator < boost::mt19937, boost::normal_distribution<double> >
26 Double_t asym=0.0, mean=0.0, sigma=0.0;
27 Double_t amplitude=0.0, phase=0.0, frequency=0.0;
30 if (paramfile.
GetLine().find(
"drift")!=std::string::npos){
45 std::cout <<
"#################### \n";
46 std::cout <<
"asym, mean, sigma \n" << std::endl;
47 std::cout << asym <<
" / "
94 Double_t random_variable;
101 return random_variable;
Parameter file parsing and management.
boost::mt19937 QwCombinedBCM< T >::fRandomnessGenerator
static const double Hz
Frequency units: base unit is kHz.
std::vector< Double_t > fMockDriftAmplitude
Harmonic drift amplitude.
double fExternalRandomVariable
Externally provided normal random variable.
std::vector< Double_t > fMockDriftFrequency
Harmonic drift frequency.
Double_t fMockAsymmetry
Helicity asymmetry.
bool fUseExternalRandomVariable
Flag to use an externally provided normal random variable.
void AddRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Add drift parameters to the internal set.
Double_t fMockGaussianSigma
Sigma of normal distribution.
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Set a single set of harmonic drift parameters.
static boost::variate_generator< boost::mt19937, boost::normal_distribution< double > > fNormalRandomVariable
Internal normal random variable.
Double_t fMockGaussianMean
Mean of normal distribution.
std::vector< Double_t > fMockDriftPhase
Harmonic drift phase.
static boost::normal_distribution< double > fNormalDistribution
Internal normal probability distribution.
void SetRandomEventAsymmetry(Double_t asymmetry)
Set the helicity asymmetry.
void SetRandomEventParameters(Double_t mean, Double_t sigma)
Set the normal random event parameters.
virtual void LoadMockDataParameters(QwParameterFile ¶mfile)
Load the mock data parameters from the current line in the param file.
Double_t GetRandomValue()
static boost::mt19937 fRandomnessGenerator
Internal randomness generator.
Configuration file parser with flexible tokenization and search capabilities.
T GetTypedNextToken()
Get next token into specific type.
std::string GetNextToken(const std::string &separatorchars)
Get next token as a string.