00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitModels * 00004 * File: $Id: RooUnblindUniform.h,v 1.5 2007/05/11 10:15:52 verkerke Exp $ 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 #ifndef ROO_UNBLIND_UNIFORM 00017 #define ROO_UNBLIND_UNIFORM 00018 00019 #include "RooAbsHiddenReal.h" 00020 #include "RooRealProxy.h" 00021 #include "RooBlindTools.h" 00022 00023 class RooUnblindUniform : public RooAbsHiddenReal { 00024 public: 00025 // Constructors, assignment etc 00026 RooUnblindUniform() ; 00027 RooUnblindUniform(const char *name, const char *title, 00028 const char *blindString, Double_t scale, RooAbsReal& blindValue); 00029 RooUnblindUniform(const RooUnblindUniform& other, const char* name=0); 00030 virtual TObject* clone(const char* newname) const { return new RooUnblindUniform(*this,newname); } 00031 virtual ~RooUnblindUniform(); 00032 00033 protected: 00034 00035 // Function evaluation 00036 virtual Double_t evaluate() const ; 00037 00038 RooRealProxy _value ; 00039 RooBlindTools _blindEngine ; 00040 00041 ClassDef(RooUnblindUniform,1) // Uniform unblinding transformation 00042 }; 00043 00044 #endif