*****************************************************************************/
#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 ;
}
}
ROOT page - Class index - Class Hierarchy - Top of the page
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.