38 double centralValue,
double sigmaOffset,
bool s2bMode) :
205 double Precision(0.);
223 double PrecisionPrime(0.);
232 return PrecisionPrime;
270 Int_t Seed = EventNumber % 7997 + 2;
272 double STagPrime(0.0);
277 STagPrime = -1.0 * STag ;
287 char lowerseed[1024] ;
288 strlcpy(lowerseed,
_stSeed,1024) ;
290 Int_t lengthSeed = strlen(lowerseed);
292 for (
Int_t j=0; j<lengthSeed; j++){
293 lowerseed[j] =tolower(
_stSeed[j]);
296 for (
Int_t i=0; i<lengthSeed; i++){
297 for (
Int_t iAlphabet=0; iAlphabet<26; iAlphabet++){
298 if ( lowerseed[i] == StringAlphabet[iAlphabet] ){
300 sumSeed = (iAlphabet<<(5*(i%3)))^sumSeed;
302 sumSeed = sumSeed + iAlphabet ;
308 if (lengthSeed<5 || ((sumSeed<1 || sumSeed>8000)&&!
_s2bMode)) {
309 std::cout<<
"RooBlindTools::Randomizer: Your String Seed is Bad: '" <<
_stSeed <<
"'" << std::endl ;
316 UInt_t jRan = (sumSeed*ia + ic) % im;
318 jRan = (jRan*ia + ic) % im;
319 jRan = (jRan*ia + ic) % im;
320 jRan = (jRan*ia + ic) % im;
322 double theRan = (float) jRan / (
float) im;
331 if (Seed<1 || Seed>8000 ) {
332 std::cout<<
"RooBlindTools::PseudoRandom: Your integer Seed is Bad" << std::endl;
338 UInt_t jRan = (Seed*ia + ic) % im;
340 jRan = (jRan*ia + ic) % im;
341 jRan = (jRan*ia + ic) % im;
342 jRan = (jRan*ia + ic) % im;
344 double theRan = (float) jRan / (
float) im;
355 double theOffset = (2.0)*theRan - (1.0);
364 double theRan2 =
Randomizer(
"cdefghijklmnopqrstuvwxyzab");
366 if (theRan1==0.0 || theRan1==1.0){
369 if (theRan2==0.0 || theRan2==1.0){
373 double theOffset = sin(2.0*3.14159*theRan1)*sqrt(-2.0*log(theRan2));
383 double theSignFlip = 1.0;
400 else if (STag > 0.0) {
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
static void softAbort()
Soft abort function that interrupts macro execution but doesn't kill ROOT.