Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooRangeBoolean.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id$
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_RANGE_BOOLEAN
17#define ROO_RANGE_BOOLEAN
18
19#include <RooAbsReal.h>
20#include <RooRealProxy.h>
21
22#include <TString.h>
23
24#include <list>
25
27public:
28
29 RooRangeBoolean() = default;
30 RooRangeBoolean(const char* name, const char* title, RooAbsRealLValue& x, const char* rangeName) ;
31 RooRangeBoolean(const RooRangeBoolean& other, const char *name = nullptr);
32 TObject* clone(const char* newname) const override { return new RooRangeBoolean(*this, newname); }
33
34 std::list<double>* plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const override ;
35
36protected:
37
40
41 double evaluate() const override;
42
44};
45
46#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
Returns 1.0 if variable is within given a range and 0.0 otherwise.
RooRealProxy _x
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Interface for returning an optional hint for initial sampling points when constructing a curve projec...
RooRangeBoolean()=default
TObject * clone(const char *newname) const override
double evaluate() const override
Return 1 if x is in range, zero otherwise.
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139
Double_t x[n]
Definition legend1.C:17