21 Double_t asym=0.0, mean=0.0, sigma=0.0;
22 Double_t amplitude=0.0, phase=0.0, frequency=0.0;
25 if (paramfile.
GetLine().find(
"drift")!=std::string::npos){
40 std::cout <<
"#################### \n";
41 std::cout <<
"asym, mean, sigma \n" << std::endl;
42 std::cout << asym <<
" / "
89 Double_t random_variable;
96 return random_variable;
Parameter file parsing and management.
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.
static std::function< double()> fNormalRandomVariable
Internal 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.
static std::normal_distribution< double > fNormalDistribution
Internal normal probability distribution.
static std::mt19937 fRandomnessGenerator
Internal randomness generator.
void SetRandomEventDriftParameters(Double_t amplitude, Double_t phase, Double_t frequency)
Set a single set of harmonic drift parameters.
Double_t fMockGaussianMean
Mean of normal distribution.
std::vector< Double_t > fMockDriftPhase
Harmonic drift phase.
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()
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.