Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooPullVar.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooPullVar.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_PULL_VAR
17#define ROO_PULL_VAR
18
19#include "RooTemplateProxy.h"
20#include "RooRealVar.h"
21#include "RooRealProxy.h"
22
23
24class RooPullVar : public RooAbsReal {
25public:
26
27 RooPullVar() = default;
28 RooPullVar(const char *name, const char *title, RooRealVar& measurement, RooAbsReal& truth) ;
29
30 RooPullVar(const RooPullVar& other, const char *name = nullptr);
31 TObject* clone(const char* newname) const override { return new RooPullVar(*this, newname); }
32
33
34protected:
35
38
39 double evaluate() const override;
40
41 ClassDefOverride(RooPullVar,1) // Calculation of pull of measurement w.r.t a truth value
42};
43
44#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
Represents the pull of a measurement w.r.t.
Definition RooPullVar.h:24
RooPullVar()=default
TObject * clone(const char *newname) const override
Definition RooPullVar.h:31
double evaluate() const override
Calculate pull.
RooTemplateProxy< RooRealVar > _meas
Definition RooPullVar.h:36
RooRealProxy _true
Definition RooPullVar.h:37
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Mother of all ROOT objects.
Definition TObject.h:41