Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooPullVar.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id: RooPullVar.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_PULL_VAR
0017 #define ROO_PULL_VAR
0018 
0019 #include "RooTemplateProxy.h"
0020 #include "RooRealVar.h"
0021 #include "RooRealProxy.h"
0022 
0023 
0024 class RooPullVar : public RooAbsReal {
0025 public:
0026 
0027   RooPullVar() = default;
0028   RooPullVar(const char *name, const char *title, RooRealVar& measurement, RooAbsReal& truth) ;
0029 
0030   RooPullVar(const RooPullVar& other, const char *name = nullptr);
0031   TObject* clone(const char* newname) const override { return new RooPullVar(*this, newname); }
0032 
0033 
0034 protected:
0035 
0036   RooTemplateProxy<RooRealVar> _meas ;
0037   RooRealProxy _true ;
0038 
0039   double evaluate() const override;
0040 
0041   ClassDefOverride(RooPullVar,1) // Calculation of pull of measurement w.r.t a truth value
0042 };
0043 
0044 #endif