Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooUnblindCPAsymVar.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 RooUnblindCPAsymVar
18 \ingroup Roofit
19
20Implementation of BlindTools' CP asymmetry blinding method
21A RooUnblindCPAsymVar 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 "RooArgSet.h"
33#include "RooUnblindCPAsymVar.h"
34
36
37////////////////////////////////////////////////////////////////////////////////
38/// Default constructor
39
41{
42}
43
44////////////////////////////////////////////////////////////////////////////////
45/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
46
47RooUnblindCPAsymVar::RooUnblindCPAsymVar(const char *name, const char *title,
48 const char *blindString, RooAbsReal& cpasym)
49 : RooAbsHiddenReal(name,title),
50 _asym("asym","CP Asymmetry",this,cpasym),
51 _blindEngine(blindString)
52{
53}
54
55////////////////////////////////////////////////////////////////////////////////
56/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
57
58RooUnblindCPAsymVar::RooUnblindCPAsymVar(const char *name, const char *title,
59 const char *blindString, RooAbsReal& cpasym, RooAbsCategory& blindState)
60 : RooAbsHiddenReal(name,title,blindState),
61 _asym("asym","CP Asymmetry",this,cpasym),
62 _blindEngine(blindString)
63{
64}
65
66////////////////////////////////////////////////////////////////////////////////
67/// Copy constructor
68
70 RooAbsHiddenReal(other, name),
71 _asym("asym",this,other._asym),
72 _blindEngine(other._blindEngine)
73{
74}
75
76////////////////////////////////////////////////////////////////////////////////
77/// Copy constructor
78
80{
81}
82
83////////////////////////////////////////////////////////////////////////////////
84
86{
87 if (isHidden()) {
88 // Blinding active for this event
90 } else {
91 // Blinding not active for this event
92 return _asym ;
93 }
94}
#define ClassImp(name)
Definition Rtypes.h:377
char name[80]
Definition TGX11.cxx:110
A space to attach TBranches.
Base class for objects that want to hide their return value from interactive use, e....
bool isHidden() const
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
double UnHideAsym(double AsymPrime) const
Implementation of BlindTools' CP asymmetry blinding method A RooUnblindCPAsymVar object is a real val...
~RooUnblindCPAsymVar() override
Copy constructor.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooUnblindCPAsymVar()
Default constructor.