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

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

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 provides a real-to-category mapping defined
 by a series of thresholds.

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 CVS Update: v 1.13 2005/06/20 15:45:14 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby

SourceForge.net Logo