41 double centralValue,
double sigmaOffset,
bool s2bMode) :
43 _PrecisionOffsetScale(sigmaOffset),
44 _PrecisionCentralValue(centralValue),
55 _PrecisionOffsetScale(blindTool.getPrecisionOffsetScale()),
56 _PrecisionCentralValue(blindTool.getPrecisionCentralValue()),
57 _mode(blindTool.
mode()),
58 _s2bMode(blindTool._s2bMode)
213 double Precision(0.);
231 double PrecisionPrime(0.);
240 return PrecisionPrime;
278 Int_t Seed = EventNumber % 7997 + 2;
280 double STagPrime(0.0);
285 STagPrime = -1.0 * STag ;
295 char lowerseed[1024] ;
296 strlcpy(lowerseed,
_stSeed,1024) ;
298 Int_t lengthSeed = strlen(lowerseed);
300 for (
Int_t j=0; j<lengthSeed; j++){
301 lowerseed[j] =tolower(
_stSeed[j]);
304 for (
Int_t i=0; i<lengthSeed; i++){
305 for (
Int_t iAlphabet=0; iAlphabet<26; iAlphabet++){
306 if ( lowerseed[i] == StringAlphabet[iAlphabet] ){
308 sumSeed = (iAlphabet<<(5*(i%3)))^sumSeed;
310 sumSeed = sumSeed + iAlphabet ;
316 if (lengthSeed<5 || ((sumSeed<1 || sumSeed>8000)&&!
_s2bMode)) {
317 cout<<
"RooBlindTools::Randomizer: Your String Seed is Bad: '" <<
_stSeed <<
"'" << endl ;
324 UInt_t jRan = (sumSeed*ia + ic) % im;
326 jRan = (jRan*ia + ic) % im;
327 jRan = (jRan*ia + ic) % im;
328 jRan = (jRan*ia + ic) % im;
330 double theRan = (float) jRan / (
float) im;
339 if (Seed<1 || Seed>8000 ) {
340 cout<<
"RooBlindTools::PseudoRandom: Your integer Seed is Bad" <<endl;
346 UInt_t jRan = (Seed*ia + ic) % im;
348 jRan = (jRan*ia + ic) % im;
349 jRan = (jRan*ia + ic) % im;
350 jRan = (jRan*ia + ic) % im;
352 double theRan = (float) jRan / (
float) im;
363 double theOffset = (2.0)*theRan - (1.0);
372 double theRan2 =
Randomizer(
"cdefghijklmnopqrstuvwxyzab");
374 if (theRan1==0.0 || theRan1==1.0){
377 if (theRan2==0.0 || theRan2==1.0){
381 double theOffset = sin(2.0*3.14159*theRan1)*sqrt(-2.0*log(theRan2));
391 double theSignFlip = 1.0;
408 else if (STag > 0.0) {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char mode
static void softAbort()
Soft abort function that interrupts macro execution but doesn't kill ROOT.