00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitModels * 00004 * @(#)root/roofit:$Id: RooUnblindUniform.cxx 24286 2008-06-16 15:47:04Z wouter $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 ////////////////////////////////////////////////////////////////////////////// 00017 // 00018 // BEGIN_HTML 00019 // Implementation of BlindTools' offset blinding method 00020 // A RooUnblindUniform object is a real valued function 00021 // object, constructed from a blind value holder and a 00022 // set of unblinding parameters. When supplied to a PDF 00023 // in lieu of a regular parameter, the blind value holder 00024 // supplied to the unblinder objects will in a fit be minimized 00025 // to blind value corresponding to the actual minimum of the 00026 // parameter. The transformation is chosen such that the 00027 // the error on the blind parameters is indentical to that 00028 // of the unblind parameter 00029 // END_HTML 00030 // 00031 00032 #include "RooFit.h" 00033 00034 #include "RooArgSet.h" 00035 #include "RooArgSet.h" 00036 #include "RooUnblindUniform.h" 00037 00038 00039 ClassImp(RooUnblindUniform) 00040 ; 00041 00042 00043 00044 //_____________________________________________________________________________ 00045 RooUnblindUniform::RooUnblindUniform() : _blindEngine("") 00046 { 00047 // Default constructor 00048 } 00049 00050 00051 00052 //_____________________________________________________________________________ 00053 RooUnblindUniform::RooUnblindUniform(const char *name, const char *title, 00054 const char *blindString, Double_t scale, RooAbsReal& cpasym) 00055 : RooAbsHiddenReal(name,title), 00056 _value("value","Uniform blinded value",this,cpasym), 00057 _blindEngine(blindString,RooBlindTools::full,0.,scale) 00058 { 00059 // Constructor from a given RooAbsReal (to hold the blind value) and a set of blinding parameters 00060 } 00061 00062 00063 00064 //_____________________________________________________________________________ 00065 RooUnblindUniform::RooUnblindUniform(const RooUnblindUniform& other, const char* name) : 00066 RooAbsHiddenReal(other, name), 00067 _value("asym",this,other._value), 00068 _blindEngine(other._blindEngine) 00069 { 00070 // Copy constructor 00071 00072 } 00073 00074 00075 00076 //_____________________________________________________________________________ 00077 RooUnblindUniform::~RooUnblindUniform() 00078 { 00079 // Destructor 00080 } 00081 00082 00083 00084 //_____________________________________________________________________________ 00085 Double_t RooUnblindUniform::evaluate() const 00086 { 00087 // Evaluate RooBlindTools unhide-offset method on blind value 00088 return _blindEngine.UnHideUniform(_value); 00089 } 00090 00091 00092 00093 00094