// Implementation of BlindTools' CP asymmetry blinding method
// A RooUnblindCPAsymVar object is a real valued function
// object, constructed from a blind value holder and a
// set of unblinding parameters. When supplied to a PDF
// in lieu of a regular parameter, the blind value holder
// supplied to the unblinder objects will in a fit be minimized
// to blind value corresponding to the actual minimum of the
// parameter. The transformation is chosen such that the
// the error on the blind parameters is indentical to that
// of the unblind parameter
// END_HTML
#include "RooFit.h"
#include "RooArgSet.h"
#include "RooArgSet.h"
#include "RooUnblindCPAsymVar.h"
ClassImp(RooUnblindCPAsymVar)
;
RooUnblindCPAsymVar::RooUnblindCPAsymVar() : _blindEngine("")
{
}
RooUnblindCPAsymVar::RooUnblindCPAsymVar(const char *name, const char *title,
const char *blindString, RooAbsReal& cpasym)
: RooAbsHiddenReal(name,title),
_asym("asym","CP Asymmetry",this,cpasym),
_blindEngine(blindString)
{
}
RooUnblindCPAsymVar::RooUnblindCPAsymVar(const char *name, const char *title,
const char *blindString, RooAbsReal& cpasym, RooAbsCategory& blindState)
: RooAbsHiddenReal(name,title,blindState),
_asym("asym","CP Asymmetry",this,cpasym),
_blindEngine(blindString)
{
}
RooUnblindCPAsymVar::RooUnblindCPAsymVar(const RooUnblindCPAsymVar& other, const char* name) :
RooAbsHiddenReal(other, name),
_asym("asym",this,other._asym),
_blindEngine(other._blindEngine)
{
}
RooUnblindCPAsymVar::~RooUnblindCPAsymVar()
{
}
Double_t RooUnblindCPAsymVar::evaluate() const
{
if (isHidden()) {
return _blindEngine.UnHideAsym(_asym);
} else {
return _asym ;
}
}
Last change: Wed Jun 25 08:34:27 2008
Last generated: 2008-06-25 08:34
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.