ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
roofit
roofit
src
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
//
18
// BEGIN_HTML
19
// Implementation of BlindTools' offset blinding method
20
// A RooUnblindUniform object is a real valued function
21
// object, constructed from a blind value holder and a
22
// set of unblinding parameters. When supplied to a PDF
23
// in lieu of a regular parameter, the blind value holder
24
// supplied to the unblinder objects will in a fit be minimized
25
// to blind value corresponding to the actual minimum of the
26
// parameter. The transformation is chosen such that the
27
// the error on the blind parameters is indentical to that
28
// of the unblind parameter
29
// END_HTML
30
//
31
32
#include "
RooFit.h
"
33
34
#include "
RooArgSet.h
"
35
#include "
RooArgSet.h
"
36
#include "
RooUnblindUniform.h
"
37
38
39
using namespace
std
;
40
41
ClassImp
(
RooUnblindUniform
)
42
;
43
44
45
46
////////////////////////////////////////////////////////////////////////////////
47
/// Default constructor
48
49
RooUnblindUniform::RooUnblindUniform
()
50
{
51
}
52
53
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
57
58
RooUnblindUniform::RooUnblindUniform
(
const
char
*
name
,
const
char
*title,
59
const
char
*blindString,
Double_t
scale,
RooAbsReal
& cpasym)
60
:
RooAbsHiddenReal
(name,title),
61
_value(
"value"
,
"Uniform blinded value"
,this,cpasym),
62
_blindEngine(blindString,
RooBlindTools
::full,0.,scale)
63
{
64
}
65
66
67
68
////////////////////////////////////////////////////////////////////////////////
69
/// Copy constructor
70
71
RooUnblindUniform::RooUnblindUniform
(
const
RooUnblindUniform
& other,
const
char
*
name
) :
72
RooAbsHiddenReal
(other, name),
73
_value(
"asym"
,this,other._value),
74
_blindEngine(other._blindEngine)
75
{
76
}
77
78
79
80
////////////////////////////////////////////////////////////////////////////////
81
/// Destructor
82
83
RooUnblindUniform::~RooUnblindUniform
()
84
{
85
}
86
87
88
89
////////////////////////////////////////////////////////////////////////////////
90
/// Evaluate RooBlindTools unhide-offset method on blind value
91
92
Double_t
RooUnblindUniform::evaluate
()
const
93
{
94
return
_blindEngine
.
UnHideUniform
(
_value
);
95
}
96
97
98
99
100
RooUnblindUniform.h
RooUnblindUniform::_value
RooRealProxy _value
Definition:
RooUnblindUniform.h:38
RooArgSet.h
std
STL namespace.
RooUnblindUniform::_blindEngine
RooBlindTools _blindEngine
Definition:
RooUnblindUniform.h:39
RooBlindTools::UnHideUniform
Double_t UnHideUniform(Double_t PrecisionBlind) const
Definition:
RooBlindTools.cxx:296
RooUnblindUniform
Definition:
RooUnblindUniform.h:23
RooUnblindUniform::evaluate
virtual Double_t evaluate() const
Evaluate RooBlindTools unhide-offset method on blind value.
Definition:
RooUnblindUniform.cxx:92
RooUnblindUniform::RooUnblindUniform
RooUnblindUniform()
Default constructor.
Definition:
RooUnblindUniform.cxx:49
RooBlindTools
Definition:
RooBlindTools.h:26
RooUnblindUniform::~RooUnblindUniform
virtual ~RooUnblindUniform()
Destructor.
Definition:
RooUnblindUniform.cxx:83
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition:
RooAbsReal.h:53
ClassImp
ClassImp(RooUnblindUniform)
name
#define name(a, b)
Definition:
linkTestLib0.cpp:5
RooAbsHiddenReal
Definition:
RooAbsHiddenReal.h:25
RooFit.h