Logo ROOT   6.07/09
Reference Guide
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 \file RooUnblindUniform.cxx
18 \class RooUnblindUniform
19 \ingroup Roofit
20 
21 Implementation of BlindTools' offset blinding method
22 A RooUnblindUniform object is a real valued function
23 object, constructed from a blind value holder and a
24 set of unblinding parameters. When supplied to a PDF
25 in lieu of a regular parameter, the blind value holder
26 supplied to the unblinder objects will in a fit be minimized
27 to blind value corresponding to the actual minimum of the
28 parameter. The transformation is chosen such that the
29 the error on the blind parameters is indentical to that
30 of the unblind parameter
31 **/
32 
33 #include "RooFit.h"
34 
35 #include "RooArgSet.h"
36 #include "RooArgSet.h"
37 #include "RooUnblindUniform.h"
38 
39 
40 using namespace std;
41 
43 ;
44 
45 
46 
47 ////////////////////////////////////////////////////////////////////////////////
48 /// Default constructor
49 
51 {
52 }
53 
54 
55 
56 ////////////////////////////////////////////////////////////////////////////////
57 /// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
58 
59 RooUnblindUniform::RooUnblindUniform(const char *name, const char *title,
60  const char *blindString, Double_t scale, RooAbsReal& cpasym)
61  : RooAbsHiddenReal(name,title),
62  _value("value","Uniform blinded value",this,cpasym),
63  _blindEngine(blindString,RooBlindTools::full,0.,scale)
64 {
65 }
66 
67 
68 
69 ////////////////////////////////////////////////////////////////////////////////
70 /// Copy constructor
71 
73  RooAbsHiddenReal(other, name),
74  _value("asym",this,other._value),
76 {
77 }
78 
79 
80 
81 ////////////////////////////////////////////////////////////////////////////////
82 /// Destructor
83 
85 {
86 }
87 
88 
89 
90 ////////////////////////////////////////////////////////////////////////////////
91 /// Evaluate RooBlindTools unhide-offset method on blind value
92 
94 {
96 }
97 
98 
99 
100 
101 
STL namespace.
RooBlindTools _blindEngine
Double_t UnHideUniform(Double_t PrecisionBlind) const
Implementation of BlindTools' offset blinding method A RooUnblindUniform object is a real valued func...
virtual Double_t evaluate() const
Evaluate RooBlindTools unhide-offset method on blind value.
RooUnblindUniform()
Default constructor.
virtual ~RooUnblindUniform()
Destructor.
#define ClassImp(name)
Definition: Rtypes.h:279
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooAbsHiddenReal is a base class for objects that want to hide their return value from interactive us...
char name[80]
Definition: TGX11.cxx:109