#ifndef ROO_THRESHOLD_CATEGORY
#define ROO_THRESHOLD_CATEGORY
#include "TSortedList.h"
#include "RooAbsCategory.h"
#include "RooRealProxy.h"
#include "RooCatType.h"
class RooThresholdCategory : public RooAbsCategory {
public:
inline 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 TObject* clone(const char* newname) const { return new RooThresholdCategory(*this, newname); }
virtual ~RooThresholdCategory();
Bool_t addThreshold(Double_t upperLimit, const char* catName, Int_t catIdx=-99999) ;
virtual void printMultiline(ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
void writeToStream(ostream& os, Bool_t compact) const ;
protected:
RooRealProxy _inputVar ;
RooCatType* _defCat ;
TSortedList _threshList ;
TIterator* _threshIter ;
virtual RooCatType evaluate() const ;
ClassDef(RooThresholdCategory,1)
};
#endif
Last change: Mon Aug 25 11:37:02 2008
Last generated: 2008-08-25 11:37
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.