33using std::cout, std::endl;
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)
208 double Precision(0.);
226 double PrecisionPrime(0.);
235 return PrecisionPrime;
273 Int_t Seed = EventNumber % 7997 + 2;
275 double STagPrime(0.0);
280 STagPrime = -1.0 * STag ;
290 char lowerseed[1024] ;
291 strlcpy(lowerseed,
_stSeed,1024) ;
293 Int_t lengthSeed = strlen(lowerseed);
295 for (
Int_t j=0; j<lengthSeed; j++){
296 lowerseed[j] =tolower(
_stSeed[j]);
299 for (
Int_t i=0; i<lengthSeed; i++){
300 for (
Int_t iAlphabet=0; iAlphabet<26; iAlphabet++){
301 if ( lowerseed[i] == StringAlphabet[iAlphabet] ){
303 sumSeed = (iAlphabet<<(5*(i%3)))^sumSeed;
305 sumSeed = sumSeed + iAlphabet ;
311 if (lengthSeed<5 || ((sumSeed<1 || sumSeed>8000)&&!
_s2bMode)) {
312 cout<<
"RooBlindTools::Randomizer: Your String Seed is Bad: '" <<
_stSeed <<
"'" << endl ;
319 UInt_t jRan = (sumSeed*ia + ic) % im;
321 jRan = (jRan*ia + ic) % im;
322 jRan = (jRan*ia + ic) % im;
323 jRan = (jRan*ia + ic) % im;
325 double theRan = (float) jRan / (
float) im;
334 if (Seed<1 || Seed>8000 ) {
335 cout<<
"RooBlindTools::PseudoRandom: Your integer Seed is Bad" <<endl;
341 UInt_t jRan = (Seed*ia + ic) % im;
343 jRan = (jRan*ia + ic) % im;
344 jRan = (jRan*ia + ic) % im;
345 jRan = (jRan*ia + ic) % im;
347 double theRan = (float) jRan / (
float) im;
358 double theOffset = (2.0)*theRan - (1.0);
367 double theRan2 =
Randomizer(
"cdefghijklmnopqrstuvwxyzab");
369 if (theRan1==0.0 || theRan1==1.0){
372 if (theRan2==0.0 || theRan2==1.0){
376 double theOffset = sin(2.0*3.14159*theRan1)*sqrt(-2.0*log(theRan2));
386 double theSignFlip = 1.0;
403 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.