45 _PrecisionOffsetScale(sigmaOffset),
46 _PrecisionCentralValue(centralValue),
57 _PrecisionOffsetScale(blindTool.getPrecisionOffsetScale()),
58 _PrecisionCentralValue(blindTool.getPrecisionCentralValue()),
59 _mode(blindTool.mode()),
60 _s2bMode(blindTool._s2bMode)
242 return PrecisionPrime;
280 Int_t Seed = EventNumber % 7997 + 2;
287 STagPrime = -1.0 * STag ;
297 char lowerseed[1024] ;
298 strlcpy(lowerseed,
_stSeed,1024) ;
300 Int_t lengthSeed = strlen(lowerseed);
302 for (
Int_t j=0; j<lengthSeed; j++){
303 lowerseed[j] =tolower(
_stSeed[j]);
306 for (
Int_t i=0; i<lengthSeed; i++){
307 for (
Int_t iAlphabet=0; iAlphabet<26; iAlphabet++){
308 if ( lowerseed[i] == StringAlphabet[iAlphabet] ){
310 sumSeed = (iAlphabet<<(5*(i%3)))^sumSeed;
312 sumSeed = sumSeed + iAlphabet ;
318 if (lengthSeed<5 || ((sumSeed<1 || sumSeed>8000)&&!
_s2bMode)) {
319 cout<<
"RooBlindTools::Randomizer: Your String Seed is Bad: '" <<
_stSeed <<
"'" << endl ;
326 UInt_t jRan = (sumSeed*ia + ic) % im;
328 jRan = (jRan*ia + ic) % im;
329 jRan = (jRan*ia + ic) % im;
330 jRan = (jRan*ia + ic) % im;
332 Double_t theRan = (float) jRan / (
float) im;
341 if (Seed<1 || Seed>8000 ) {
342 cout<<
"RooBlindTools::PseudoRandom: Your integer Seed is Bad" <<endl;
348 UInt_t jRan = (Seed*ia + ic) % im;
350 jRan = (jRan*ia + ic) % im;
351 jRan = (jRan*ia + ic) % im;
352 jRan = (jRan*ia + ic) % im;
354 Double_t theRan = (float) jRan / (
float) im;
365 Double_t theOffset = (2.0)*theRan - (1.0);
376 if (theRan1==0.0 || theRan1==1.0){
379 if (theRan2==0.0 || theRan2==1.0){
383 Double_t theOffset = sin(2.0*3.14159*theRan1)*sqrt(-2.0*log(theRan2));
410 else if (STag > 0.0) {