ROOT
git-r3/HEAD
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
20
Implementation of BlindTools' CP asymmetry blinding method
21
A RooUnblindCPAsymVar object is a real valued function
22
object, constructed from a blind value holder and a
23
set of unblinding parameters. When supplied to a PDF
24
in lieu of a regular parameter, the blind value holder
25
supplied to the unblinded objects will in a fit be minimized
26
to blind value corresponding to the actual minimum of the
27
parameter. The transformation is chosen such that the
28
the error on the blind parameters is identical to that
29
of the unblind parameter
30
**/
31
32
#include "
RooArgSet.h
"
33
#include "
RooUnblindCPAsymVar.h
"
34
35
36
////////////////////////////////////////////////////////////////////////////////
37
/// Default constructor
38
39
RooUnblindCPAsymVar::RooUnblindCPAsymVar
()
40
{
41
}
42
43
////////////////////////////////////////////////////////////////////////////////
44
/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
45
46
RooUnblindCPAsymVar::RooUnblindCPAsymVar
(
const
char
*
name
,
const
char
*title,
47
const
char
*blindString,
RooAbsReal
& cpasym)
48
:
RooAbsHiddenReal
(
name
,title),
49
_asym
(
"asym"
,
"CP Asymmetry"
,this,cpasym),
50
_blindEngine
(blindString)
51
{
52
}
53
54
////////////////////////////////////////////////////////////////////////////////
55
/// Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters
56
57
RooUnblindCPAsymVar::RooUnblindCPAsymVar
(
const
char
*
name
,
const
char
*title,
58
const
char
*blindString,
RooAbsReal
& cpasym,
RooAbsCategory
& blindState)
59
:
RooAbsHiddenReal
(
name
,title,blindState),
60
_asym
(
"asym"
,
"CP Asymmetry"
,this,cpasym),
61
_blindEngine
(blindString)
62
{
63
}
64
65
////////////////////////////////////////////////////////////////////////////////
66
/// Copy constructor
67
68
RooUnblindCPAsymVar::RooUnblindCPAsymVar
(
const
RooUnblindCPAsymVar
& other,
const
char
*
name
) :
69
RooAbsHiddenReal
(other,
name
),
70
_asym
(
"asym"
,this,other.
_asym
),
71
_blindEngine
(other.
_blindEngine
)
72
{
73
}
74
75
////////////////////////////////////////////////////////////////////////////////
76
/// Copy constructor
77
78
RooUnblindCPAsymVar::~RooUnblindCPAsymVar
()
79
{
80
}
81
82
////////////////////////////////////////////////////////////////////////////////
83
84
double
RooUnblindCPAsymVar::evaluate
()
const
85
{
86
if
(
isHidden
()) {
87
// Blinding active for this event
88
return
_blindEngine
.UnHideAsym(
_asym
);
89
}
else
{
90
// Blinding not active for this event
91
return
_asym
;
92
}
93
}
RooArgSet.h
RooUnblindCPAsymVar.h
name
char name[80]
Definition
TGX11.cxx:148
RooAbsCategory
A space to attach TBranches.
Definition
RooAbsCategory.h:34
RooAbsHiddenReal::RooAbsHiddenReal
RooAbsHiddenReal()
Definition
RooAbsHiddenReal.h:28
RooAbsHiddenReal::isHidden
bool isHidden() const
Definition
RooAbsHiddenReal.h:42
RooAbsReal::RooAbsReal
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
Definition
RooAbsReal.cxx:196
RooUnblindCPAsymVar::_blindEngine
RooBlindTools _blindEngine
Definition
RooUnblindCPAsymVar.h:45
RooUnblindCPAsymVar::~RooUnblindCPAsymVar
~RooUnblindCPAsymVar() override
Copy constructor.
Definition
RooUnblindCPAsymVar.cxx:78
RooUnblindCPAsymVar::evaluate
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooUnblindCPAsymVar.cxx:84
RooUnblindCPAsymVar::RooUnblindCPAsymVar
RooUnblindCPAsymVar()
Default constructor.
Definition
RooUnblindCPAsymVar.cxx:39
RooUnblindCPAsymVar::_asym
RooRealProxy _asym
Definition
RooUnblindCPAsymVar.h:44
roofit
roofit
src
RooUnblindCPAsymVar.cxx
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1