00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooPullVar.h,v 1.3 2007/05/11 09:11:30 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_PULL_VAR 00017 #define ROO_PULL_VAR 00018 00019 #include "RooAbsReal.h" 00020 #include "RooRealProxy.h" 00021 00022 class RooRealVar; 00023 class RooAbsReal ; 00024 00025 class RooPullVar : public RooAbsReal { 00026 public: 00027 00028 RooPullVar() ; 00029 RooPullVar(const char *name, const char *title, RooRealVar& measurement, RooAbsReal& truth) ; 00030 virtual ~RooPullVar() ; 00031 00032 RooPullVar(const RooPullVar& other, const char* name = 0); 00033 virtual TObject* clone(const char* newname) const { return new RooPullVar(*this, newname); } 00034 00035 00036 protected: 00037 00038 RooRealProxy _meas ; 00039 RooRealProxy _true ; 00040 00041 Double_t evaluate() const; 00042 00043 ClassDef(RooPullVar,1) // Calculation of pull of measurement w.r.t a truth value 00044 }; 00045 00046 #endif