Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooUnblindPrecision.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 RooUnblindPrecision
18 \ingroup Roofit
19
20Implementation of BlindTools' precision blinding method
21A RooUnblindPrecision object is a real valued function
22object, constructed from a blind value holder and a
23set of unblinding parameters. When supplied to a PDF
24in lieu of a regular parameter, the blind value holder
25supplied to the unblinded objects will in a fit be minimized
26to blind value corresponding to the actual minimum of the
27parameter. The transformation is chosen such that the
28the error on the blind parameters is identical to that
29of the unblind parameter
30**/
31
32#include "RooFit.h"
33
34#include "RooArgSet.h"
35#include "RooUnblindPrecision.h"
36
37
38using namespace std;
39
41
42////////////////////////////////////////////////////////////////////////////////
43/// Default constructor
44
46{
47}
48
49////////////////////////////////////////////////////////////////////////////////
50/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
51
52RooUnblindPrecision::RooUnblindPrecision(const char *name, const char *title,
53 const char *blindString, Double_t centralValue,
54 Double_t scale, RooAbsReal& value,
55 Bool_t sin2betaMode)
56 : RooAbsHiddenReal(name,title),
57 _value("value","Precision blinded value",this,value),
58 _blindEngine(blindString,RooBlindTools::full,centralValue,scale,sin2betaMode)
59{
60}
61
62////////////////////////////////////////////////////////////////////////////////
63/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
64
65RooUnblindPrecision::RooUnblindPrecision(const char *name, const char *title,
66 const char *blindString, Double_t centralValue,
67 Double_t scale, RooAbsReal& value, RooAbsCategory& blindState,
68 Bool_t sin2betaMode)
69 : RooAbsHiddenReal(name,title,blindState),
70 _value("value","Precision blinded value",this,value),
71 _blindEngine(blindString,RooBlindTools::full,centralValue,scale,sin2betaMode)
72{
73}
74
75////////////////////////////////////////////////////////////////////////////////
76/// Copy constructor
77
79 RooAbsHiddenReal(other, name),
80 _value("asym",this,other._value),
81 _blindEngine(other._blindEngine)
82{
83}
84
85////////////////////////////////////////////////////////////////////////////////
86/// Destructor
87
89{
90}
91
92////////////////////////////////////////////////////////////////////////////////
93/// Evaluate RooBlindTools unhide-precision method on blind value
94
96{
97 if (isHidden()) {
98 // Blinding active for this event
100 } else {
101 // Blinding not active for this event
102 return _value ;
103 }
104}
#define ClassImp(name)
Definition Rtypes.h:364
char name[80]
Definition TGX11.cxx:110
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
RooAbsHiddenReal is a base class for objects that want to hide their return value from interactive us...
Bool_t isHidden() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:61
Double_t UnHidePrecision(Double_t PrecisionPrime) const
Implementation of BlindTools' precision blinding method A RooUnblindPrecision object is a real valued...
RooUnblindPrecision()
Default constructor.
virtual Double_t evaluate() const
Evaluate RooBlindTools unhide-precision method on blind value.
virtual ~RooUnblindPrecision()
Destructor.