Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooEfficiency.hh"

RooEfficiency


class description - source file - inheritance tree (.pdf)

class RooEfficiency : public RooAbsPdf

Inheritance Chart:
TObject
<-
TNamed
RooPrintable
<-
RooAbsArg
<-
RooAbsReal
<-
RooAbsPdf
<-
RooEfficiency

    protected:
virtual Double_t evaluate() const public:
RooEfficiency() RooEfficiency(const char* name, const char* title, const RooAbsReal& effFunc, const RooAbsCategory& cat, const char* sigCatName) RooEfficiency(const RooEfficiency& other, const char* name = "0") virtual ~RooEfficiency() static TClass* Class() virtual TObject* clone(const char* newname) const virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
RooCategoryProxy _cat Accept/reject categort RooRealProxy _effFunc Efficiency modeling function TString _sigCatName Name of accept state of accept/reject category

Class Description

 RooEfficiency is a PDF helper class to fit efficiencies parameterized
 by a supplied function F.

 Given a dataset with a category C that determines if a given
 event is accepted or rejected for the efficiency to be measured,
 this class evaluates as F if C is 'accept' and as (1-F) if
 C is 'reject'. Values of F below 0 and above 1 are clipped.
 F may have an arbitrary number of dependents and parameters

RooEfficiency(const char *name, const char *title, const RooAbsReal& effFunc, const RooAbsCategory& cat, const char* sigCatName) : RooAbsPdf(name,title), _cat("cat","Signal/Background category",this,(RooAbsCategory&)cat), _effFunc("effFunc","Efficiency modeling function",this,(RooAbsReal&)effFunc), _sigCatName(sigCatName)
 Constructor with title used as formula expression

RooEfficiency(const RooEfficiency& other, const char* name) : RooAbsPdf(other, name), _cat("cat",this,other._cat), _effFunc("effFunc",this,other._effFunc), _sigCatName(other._sigCatName)
 Copy constructor

~RooEfficiency()
 Destructor

Double_t evaluate() const
 Calculate current value of this object



Inline Functions


        RooEfficiency RooEfficiency(const RooEfficiency& other, const char* name = "0")
             TObject* clone(const char* newname) const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
Last CVS Update: v 1.8 2005/06/16 09:31:27 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby

SourceForge.net Logo