ROOT
tags/v6-34-10
Reference Guide
Loading...
Searching...
No Matches
RooUnblindUniform.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitModels *
4
* @(#)root/roofit:$Id$
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
17
/** \class RooUnblindUniform
18
\ingroup Roofit
19
20
Implementation of BlindTools' offset blinding method.
21
A RooUnblindUniform object is a real-valued function
22
object, constructed from a parameter to be blinded and a
23
set of config parameters to change the blinding method.
24
When supplied to a PDF in lieu of the regular parameter,
25
a transformation will be applied such that the likelihood is computed with the actual
26
value of the parameter, but RooFit (, the user, MINUIT) see only
27
the transformed (blinded) value. The transformation is chosen such that
28
the error of the blind parameter is identical to that
29
of the original parameter.
30
**/
31
32
#include "
RooArgSet.h
"
33
#include "
RooUnblindUniform.h
"
34
35
ClassImp
(
RooUnblindUniform
);
36
37
////////////////////////////////////////////////////////////////////////////////
38
/// Constructor from a given RooAbsReal (to hold the blinded value) and a set
39
/// of blinding parameters.
40
/// \param name Name of this transformation
41
/// \param title Title (for plotting)
42
/// \param blindString String to initialise the random generator
43
/// \param scale Scale the offset. High values make the blinding more violent.
44
/// \param blindValue The parameter to be blinded. After the fit, this parameter will
45
/// only hold the blinded values.
46
47
RooUnblindUniform::RooUnblindUniform
(
const
char
*
name
,
const
char
*title,
48
const
char
*
blindString
,
double
scale
,
RooAbsReal
&
blindValue
)
49
:
RooAbsHiddenReal
(
name
,title),
50
_value(
"value"
,
"Uniform blinded value"
,
this
,
blindValue
),
51
_blindEngine(
blindString
,
RooBlindTools
::full,0.,
scale
)
52
{
53
}
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Copy constructor
57
58
RooUnblindUniform::RooUnblindUniform
(
const
RooUnblindUniform
&
other
,
const
char
*
name
) :
59
RooAbsHiddenReal
(
other
,
name
),
60
_value(
"asym"
,
this
,
other
._value),
61
_blindEngine(
other
._blindEngine)
62
{
63
}
64
65
////////////////////////////////////////////////////////////////////////////////
66
/// Evaluate RooBlindTools unhide-offset method on blind value
67
68
double
RooUnblindUniform::evaluate
()
const
69
{
70
return
_blindEngine
.
UnHideUniform
(
_value
);
71
}
RooArgSet.h
RooUnblindUniform.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
name
char name[80]
Definition
TGX11.cxx:110
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
RooAbsHiddenReal
Base class for objects that want to hide their return value from interactive use, e....
Definition
RooAbsHiddenReal.h:25
RooAbsReal
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition
RooAbsReal.h:59
RooBlindTools
Definition
RooBlindTools.h:26
RooBlindTools::UnHideUniform
double UnHideUniform(double PrecisionBlind) const
Definition
RooBlindTools.cxx:256
RooUnblindUniform
Implementation of BlindTools' offset blinding method.
Definition
RooUnblindUniform.h:23
RooUnblindUniform::_blindEngine
RooBlindTools _blindEngine
Definition
RooUnblindUniform.h:38
RooUnblindUniform::RooUnblindUniform
RooUnblindUniform()=default
RooUnblindUniform::_value
RooRealProxy _value
Definition
RooUnblindUniform.h:37
RooUnblindUniform::evaluate
double evaluate() const override
Evaluate RooBlindTools unhide-offset method on blind value.
Definition
RooUnblindUniform.cxx:68
roofit
roofit
src
RooUnblindUniform.cxx
ROOT tags/v6-34-10 - Reference Guide Generated on Mon Jun 30 2025 10:56:28 (GVA Time) using Doxygen 1.10.0