library: libRooFit #include "RooThresholdCategory.h"

# RooThresholdCategory

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

## class RooThresholdCategory : public RooAbsCategory

| Inheritance Chart:

`TObject`

<-

`TNamed`

`RooPrintable`

<-

`RooAbsArg`

<-

`RooAbsCategory`

<-

`RooThresholdCategory`

        protected:

          virtual RooCatType evaluate() const

        public:

                               RooThresholdCategory()
                               RooThresholdCategory(const char* name, const char* title, RooAbsReal& inputVar, const char* defCatName = "Default", Int_t defCatIdx = 0)
                               RooThresholdCategory(const RooThresholdCategory& other, const char* name = "0")
                       virtual ~RooThresholdCategory()
                        Bool_t addThreshold(Double_t upperLimit, const char* catName, Int_t catIdx = -99999)
                static TClass* Class()
              virtual TObject* clone(const char* newname) const
               virtual TClass* IsA() const
                  virtual void printToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = ) const
                  virtual void ShowMembers(TMemberInspector& insp, char* parent)
                  virtual void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)
                  virtual void writeToStream(ostream& os, Bool_t compact) const

### Data Members

        protected:

          RooRealProxy _inputVar
           RooCatType* _defCat
           TSortedList _threshList
            TIterator* _threshIter  ! do not persist

## Class Description

RooThresholdCategory(const char *name, const char *title, RooAbsReal& inputVar, const char* defOut, Int_t defIdx) : RooAbsCategory(name, title), _inputVar("inputVar","Input category",this,inputVar)

     Constructor with input category and name of default (unmapped) output state

RooThresholdCategory(const RooThresholdCategory& other, const char *name) : RooAbsCategory(other,name), _inputVar("inputVar",this,other._inputVar)

~RooThresholdCategory()

     Destructor

Bool_t addThreshold(Double_t upperLimit, const char* catName, Int_t catIdx)

     Check if identical threshold values is not defined yet

evaluate() const

     Scan the threshold list

void writeToStream(ostream& os, Bool_t compact) const

     Write object contents to given stream

void printToStream(ostream& os, PrintOption opt, TString indent) const

     Print info about this threshold category to the specified stream. In addition to the info
     from RooAbsCategory::printToStream() we add:

      Standard : input category
         Shape : default value
       Verbose : list of thresholds

### Inline Functions

            RooThresholdCategory RooThresholdCategory(const RooThresholdCategory& 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 update: Tue Jun 28 18:15:25 2005
Copyright (c) 2000-2005, Regents of the University of California *