ROOT  6.06/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 //
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 
42 ;
43 
44 
45 
46 ////////////////////////////////////////////////////////////////////////////////
47 /// Default constructor
48 
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 
72  RooAbsHiddenReal(other, name),
73  _value("asym",this,other._value),
74  _blindEngine(other._blindEngine)
75 {
76 }
77 
78 
79 
80 ////////////////////////////////////////////////////////////////////////////////
81 /// Destructor
82 
84 {
85 }
86 
87 
88 
89 ////////////////////////////////////////////////////////////////////////////////
90 /// Evaluate RooBlindTools unhide-offset method on blind value
91 
93 {
95 }
96 
97 
98 
99 
100 
STL namespace.
RooBlindTools _blindEngine
Double_t UnHideUniform(Double_t PrecisionBlind) const
virtual Double_t evaluate() const
Evaluate RooBlindTools unhide-offset method on blind value.
RooUnblindUniform()
Default constructor.
virtual ~RooUnblindUniform()
Destructor.
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
ClassImp(RooUnblindUniform)
#define name(a, b)
Definition: linkTestLib0.cpp:5