/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels                                                     *
 *    File: $Id: RooUnblindPrecision.h,v 1.7 2007/05/11 10:15:52 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_UNBLIND_PRECISION
#define ROO_UNBLIND_PRECISION

#include "RooAbsHiddenReal.h"
#include "RooRealProxy.h"
#include "RooCategoryProxy.h"
#include "RooBlindTools.h"

class RooCategory ;

class RooUnblindPrecision : public RooAbsHiddenReal {
public:
  // Constructors, assignment etc
  RooUnblindPrecision() ;
  RooUnblindPrecision(const char *name, const char *title, 
		      const char *blindString, Double_t centralValue, Double_t scale, RooAbsReal& blindValue, Bool_t sin2betaMode=kFALSE);
  RooUnblindPrecision(const char *name, const char *title, 
		      const char *blindString, Double_t centralValue, Double_t scale, 
		      RooAbsReal& blindValue, RooAbsCategory& blindState, Bool_t sin2betaMode=kFALSE);
  RooUnblindPrecision(const RooUnblindPrecision& other, const char* name=0);
  virtual TObject* clone(const char* newname) const { return new RooUnblindPrecision(*this,newname); }  
  virtual ~RooUnblindPrecision();

protected:

  // Function evaluation
  virtual Double_t evaluate() const ;

  RooRealProxy _value ;          // Holder of the blind value
  RooBlindTools _blindEngine ;   // Blinding engine

  ClassDef(RooUnblindPrecision,1) // Precision unblinding transformation
};

#endif
 RooUnblindPrecision.h:1
 RooUnblindPrecision.h:2
 RooUnblindPrecision.h:3
 RooUnblindPrecision.h:4
 RooUnblindPrecision.h:5
 RooUnblindPrecision.h:6
 RooUnblindPrecision.h:7
 RooUnblindPrecision.h:8
 RooUnblindPrecision.h:9
 RooUnblindPrecision.h:10
 RooUnblindPrecision.h:11
 RooUnblindPrecision.h:12
 RooUnblindPrecision.h:13
 RooUnblindPrecision.h:14
 RooUnblindPrecision.h:15
 RooUnblindPrecision.h:16
 RooUnblindPrecision.h:17
 RooUnblindPrecision.h:18
 RooUnblindPrecision.h:19
 RooUnblindPrecision.h:20
 RooUnblindPrecision.h:21
 RooUnblindPrecision.h:22
 RooUnblindPrecision.h:23
 RooUnblindPrecision.h:24
 RooUnblindPrecision.h:25
 RooUnblindPrecision.h:26
 RooUnblindPrecision.h:27
 RooUnblindPrecision.h:28
 RooUnblindPrecision.h:29
 RooUnblindPrecision.h:30
 RooUnblindPrecision.h:31
 RooUnblindPrecision.h:32
 RooUnblindPrecision.h:33
 RooUnblindPrecision.h:34
 RooUnblindPrecision.h:35
 RooUnblindPrecision.h:36
 RooUnblindPrecision.h:37
 RooUnblindPrecision.h:38
 RooUnblindPrecision.h:39
 RooUnblindPrecision.h:40
 RooUnblindPrecision.h:41
 RooUnblindPrecision.h:42
 RooUnblindPrecision.h:43
 RooUnblindPrecision.h:44
 RooUnblindPrecision.h:45
 RooUnblindPrecision.h:46
 RooUnblindPrecision.h:47
 RooUnblindPrecision.h:48
 RooUnblindPrecision.h:49
 RooUnblindPrecision.h:50