library: libRooFit #include "RooAbsData.h"

# RooAbsData

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

## class RooAbsData : public TNamed, public RooPrintable

| Inheritance Chart:

`TObject`

<-

`TNamed`

`RooPrintable`

<-

`RooAbsData`

<-

`RooTreeData`

<-

`RooDataHist` |

`RooDataSet` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        protected:

                 virtual void cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
          virtual RooAbsData* cacheClone(const RooArgSet* newCacheVars, const char* newName = "0")
          virtual RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = "0", Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
                 virtual void resetCache()
                 virtual void setArgStatus(const RooArgSet& set, Bool_t active)
                         void setDirtyProp(Bool_t flag)

        public:

                           virtual ~RooAbsData()
                      virtual void add(const RooArgSet& row, Double_t weight = 1)
                    static TClass* Class()
                              TH1* createHistogram(const char* name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1 = RooCmdArg::none, const RooCmdArg& arg2 = RooCmdArg::none, const RooCmdArg& arg3 = RooCmdArg::none, const RooCmdArg& arg4 = RooCmdArg::none, const RooCmdArg& arg5 = RooCmdArg::none, const RooCmdArg& arg6 = RooCmdArg::none, const RooCmdArg& arg7 = RooCmdArg::none, const RooCmdArg& arg8 = RooCmdArg::none) const
               virtual RooAbsData* emptyClone(const char* newName = "0", const char* newTitle = "0") const
                      virtual void fill()
                      virtual TH1* fillHistogram(TH1* hist, const RooArgList& plotVars, const char* cuts = "", const char* cutRange = "0") const
          virtual const RooArgSet* get() const
          virtual const RooArgSet* get(Int_t index) const
                   virtual TClass* IsA() const
                    virtual Bool_t isWeighted() const
                     virtual Int_t numEntries(Bool_t useWeights = kFALSE) const
                       RooAbsData& operator=(const RooAbsData&)
                  virtual RooPlot* plotOn(RooPlot* frame, const RooCmdArg& arg1 = RooCmdArg::none, const RooCmdArg& arg2 = RooCmdArg::none, const RooCmdArg& arg3 = RooCmdArg::none, const RooCmdArg& arg4 = RooCmdArg::none, const RooCmdArg& arg5 = RooCmdArg::none, const RooCmdArg& arg6 = RooCmdArg::none, const RooCmdArg& arg7 = RooCmdArg::none, const RooCmdArg& arg8 = RooCmdArg::none) const
                  virtual RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
                      virtual void Print(Option_t* options = "0") const
                       RooAbsData* reduce(RooCmdArg arg1, RooCmdArg arg2 = RooCmdArg(), RooCmdArg arg3 = RooCmdArg(), RooCmdArg arg4 = RooCmdArg(), RooCmdArg arg5 = RooCmdArg(), RooCmdArg arg6 = RooCmdArg(), RooCmdArg arg7 = RooCmdArg(), RooCmdArg arg8 = RooCmdArg())
                       RooAbsData* reduce(const char* cut)
                       RooAbsData* reduce(const RooFormulaVar& cutVar)
                       RooAbsData* reduce(const RooArgSet& varSubset, const char* cut = "0")
                       RooAbsData* reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar)
                      virtual void reset()
                      virtual void ShowMembers(TMemberInspector& insp, char* parent)
                    virtual TList* split(const RooAbsCategory& splitCat) const
                      virtual void Streamer(TBuffer& b)
                              void StreamerNVirtual(TBuffer& b)
                  virtual Double_t sumEntries(const char* cutSpec = "0", const char* cutRange = "0") const
               virtual Roo1DTable* table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const
                  virtual Double_t weight() const
                  virtual Double_t weightError(RooAbsData::ErrorType etype = Poisson) const
                      virtual void weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const

### Data Members

        protected:

           RooArgSet _vars         Dimensions of this data set
           RooArgSet _cachedVars   ! External variables cached with this data set
          TIterator* _iterator     ! Iterator over dimension variables
          TIterator* _cacheIter    ! Iterator over cached variables
              Bool_t _doDirtyProp  Switch do (de)activate dirty state propagation when loading a data point

        public:

          static const RooAbsData::ErrorType Poisson
          static const RooAbsData::ErrorType SumW2

## Class Description

~RooAbsData()

     Destructor

RooAbsData* reduce(RooCmdArg arg1,RooCmdArg arg2,RooCmdArg arg3,RooCmdArg arg4, RooCmdArg arg5,RooCmdArg arg6,RooCmdArg arg7,RooCmdArg arg8)

     Create a reduced copy of this dataset. The caller takes ownership of the returned dataset

     The following optional named arguments are accepted

       SelectVars(const RooArgSet& vars) -- Only retain the listed observables in the output dataset
       Cut(const char* expression)       -- Only retain event surviving the given cut expression
       Cut(const RooFormulaVar& expr)    -- Only retain event surviving the given cut formula
       CutRange(const char* name)        -- Only retain events inside range with given name. Multiple CutRange
                                            arguments may be given to select multiple ranges
       EventRange(int lo, int hi)        -- Only retain events with given sequential event numbers
       Name(const char* name)            -- Give specified name to output dataset
       Title(const char* name)           -- Give specified title to output dataset

RooAbsData* reduce(const char* cut)

     Create a subset of the data set by applying the given cut on the data points.
     The cut expression can refer to any variable in the data set. For cuts involving
     other variables, such as intermediate formula objects, use the equivalent
     reduce method specifying the as a RooFormulVar reference.

RooAbsData* reduce(const RooFormulaVar& cutVar)

     Create a subset of the data set by applying the given cut on the data points.
     The 'cutVar' formula variable is used to select the subset of data points to be
     retained in the reduced data collection.

RooAbsData* reduce(const RooArgSet& varSubset, const char* cut)

     Create a subset of the data set by applying the given cut on the data points
     and reducing the dimensions to the specified set.

     The cut expression can refer to any variable in the data set. For cuts involving
     other variables, such as intermediate formula objects, use the equivalent
     reduce method specifying the as a RooFormulVar reference.

RooAbsData* reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar)

     Create a subset of the data set by applying the given cut on the data points
     and reducing the dimensions to the specified set.

     The 'cutVar' formula variable is used to select the subset of data points to be
     retained in the reduced data collection.

Double_t weightError(ErrorType) const

void weightError(Double_t& lo, Double_t& hi, ErrorType) const

RooPlot* plotOn(RooPlot* frame, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const

     Plot dataset on specified frame. By default an unbinned dataset will use the default binning of
     the target frame. A binned dataset will by default retain its intrinsic binning.

     The following optional named arguments can be used to modify the default behavior

     Data representation options
     ---------------------------
     Asymmetry(const RooCategory& c) -- Show the asymmetry of the daya in given two-state category [F(+)-F(-)] / [F(+)+F(-)].
                                        Category must have two states with indices -1 and +1 or three states with indeces -1,0 and +1.
     ErrorType(RooAbsData::EType)    -- Select the type of error drawn: Poisson (default) draws asymmetric Poisson
                                        confidence intervals. SumW2 draws symmetric sum-of-weights error
     Binning(double xlo, double xhi, -- Use specified binning to draw dataset
                          int nbins)
     Binning(const RooAbsBinning&)   -- Use specified binning to draw dataset
     Binning(const char* name)       -- Use binning with specified name to draw dataset
     RefreshNorm(Bool_t flag)        -- Force refreshing for PDF normalization information in frame.
                                        If set, any subsequent PDF will normalize to this dataset, even if it is
                                        not the first one added to the frame. By default only the 1st dataset
                                        added to a frame will update the normalization information

     Histogram drawing options
     -------------------------
     DrawOption(const char* opt)     -- Select ROOT draw option for resulting TGraph object
     LineStyle(Int_t style)          -- Select line style by ROOT line style code, default is solid
     LineColor(Int_t color)          -- Select line color by ROOT color code, default is black
     LineWidth(Int_t width)          -- Select line with in pixels, default is 3
     MarkerStyle(Int_t style)        -- Select the ROOT marker style, default is 21
     MarkerColor(Int_t color)        -- Select the ROOT marker color, default is black
     MarkerSize(Double_t size)       -- Select the ROOT marker size
     XErrorSize(Double_t frac)       -- Select size of X error bar as fraction of the bin width, default is 1

     Misc. other options
     -------------------
     Name(const chat* name)          -- Give curve specified name in frame. Useful if curve is to be referenced later
     Invisble(Bool_t flag)           -- Add curve to frame, but do not display. Useful in combination AddTo()
     AddTo(const char* name,         -- Add constructed histogram to already existing histogram with given name and relative weight factors
     double_t wgtSelf, double_t wgtOther)

TH1* createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooCmdArg& arg1, const RooCmdArg& arg2, const RooCmdArg& arg3, const RooCmdArg& arg4, const RooCmdArg& arg5, const RooCmdArg& arg6, const RooCmdArg& arg7, const RooCmdArg& arg8) const

     Create and fill a ROOT histogram TH1,TH2 or TH3 with the values of this dataset.

     This function accepts the following arguments

     name -- Name of the ROOT histogram
     xvar -- Observable to be mapped on x axis of ROOT histogram

     Binning(const char* name)                    -- Apply binning with given name to x axis of histogram
     Binning(RooAbsBinning& binning)              -- Apply specified binning to x axis of histogram
     Binning(double lo, double hi, int nbins)     -- Apply specified binning to x axis of histogram

     YVar(const RooAbsRealLValue& var,...)    -- Observable to be mapped on y axis of ROOT histogram
     ZVar(const RooAbsRealLValue& var,...)    -- Observable to be mapped on z axis of ROOT histogram

     The YVar() and ZVar() arguments can be supplied with optional Binning() arguments to control the binning of the Y and Z axes, e.g.
     createHistogram("histo",x,Binning(-1,1,20), YVar(y,Binning(-1,1,30)), ZVar(z,Binning("zbinning")))

     The caller takes ownership of the returned histogram

### Inline Functions

                 RooAbsData* emptyClone(const char* newName = "0", const char* newTitle = "0") const
                        void add(const RooArgSet& row, Double_t weight = 1)
                        void fill()
            const RooArgSet* get() const
                    Double_t weight() const
            const RooArgSet* get(Int_t index) const
                       Int_t numEntries(Bool_t useWeights = kFALSE) const
                    Double_t sumEntries(const char* cutSpec = "0", const char* cutRange = "0") const
                      Bool_t isWeighted() const
                        void reset()
                 Roo1DTable* table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const
                    RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
                      TList* split(const RooAbsCategory& splitCat) const
                        TH1* fillHistogram(TH1* hist, const RooArgList& plotVars, const char* cuts = "", const char* cutRange = "0") const
                        void Print(Option_t* options = "0") const
                 RooAbsData* cacheClone(const RooArgSet* newCacheVars, const char* newName = "0")
                        void cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
                        void resetCache()
                        void setArgStatus(const RooArgSet& set, Bool_t active)
                        void setDirtyProp(Bool_t flag)
                 RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = "0", Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
                 RooAbsData& operator=(const RooAbsData&)

Last update: Tue Jun 28 18:09:17 2005
Copyright (c) 2000-2005, Regents of the University of California *