Logo ROOT  
Reference Guide
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 #include "TString.h"
22 
23 class RooRealVar;
24 class RooArgList ;
25 #include <list>
26 
27 class RooRangeBoolean : public RooAbsReal {
28 public:
29 
30  RooRangeBoolean() ;
31  RooRangeBoolean(const char* name, const char* title, RooAbsRealLValue& x, const char* rangeName) ;
32  RooRangeBoolean(const RooRangeBoolean& other, const char* name = 0);
33  virtual TObject* clone(const char* newname) const { return new RooRangeBoolean(*this, newname); }
34  virtual ~RooRangeBoolean() ;
35 
36 
37  virtual std::list<Double_t>* plotSamplingHint(RooAbsRealLValue& obs, Double_t xlo, Double_t xhi) const ;
38 
39 protected:
40 
43 
44  Double_t evaluate() const;
45 
46  ClassDef(RooRangeBoolean,1) // Polynomial function
47 };
48 
49 #endif
RooAbsReal.h
RooArgList
Definition: RooArgList.h:21
x
Double_t x[n]
Definition: legend1.C:17
RooRangeBoolean::evaluate
Double_t evaluate() const
Return 1 if x is in range, zero otherwis.
Definition: RooRangeBoolean.cxx:86
RooAbsReal
Definition: RooAbsReal.h:61
TString
Definition: TString.h:136
TString.h
RooRangeBoolean::~RooRangeBoolean
virtual ~RooRangeBoolean()
Destructor.
Definition: RooRangeBoolean.cxx:76
RooRangeBoolean
Definition: RooRangeBoolean.h:27
RooRangeBoolean::plotSamplingHint
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Definition: RooRangeBoolean.cxx:99
RooRangeBoolean::_rangeName
TString _rangeName
Definition: RooRangeBoolean.h:42
RooRealProxy.h
RooRangeBoolean::RooRangeBoolean
RooRangeBoolean()
Default constructor.
Definition: RooRangeBoolean.cxx:44
RooTemplateProxy< RooAbsReal >
Double_t
double Double_t
Definition: RtypesCore.h:59
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
RooRealVar
Definition: RooRealVar.h:36
RooAbsRealLValue
Definition: RooAbsRealLValue.h:31
RooRangeBoolean::_x
RooRealProxy _x
Definition: RooRangeBoolean.h:41
RooRangeBoolean::clone
virtual TObject * clone(const char *newname) const
Definition: RooRangeBoolean.h:33