#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(std::ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
void writeToStream(std::ostream& os, Bool_t compact) const ;
protected:
RooRealProxy _inputVar ;
RooCatType* _defCat ;
TSortedList _threshList ;
TIterator* _threshIter ;
virtual RooCatType evaluate() const ;
ClassDef(RooThresholdCategory,1)
};
#endif
RooThresholdCategory.h:10 RooThresholdCategory.h:11 RooThresholdCategory.h:12 RooThresholdCategory.h:13 RooThresholdCategory.h:14 RooThresholdCategory.h:15 RooThresholdCategory.h:16 RooThresholdCategory.h:17 RooThresholdCategory.h:18 RooThresholdCategory.h:19 RooThresholdCategory.h:20 RooThresholdCategory.h:21 RooThresholdCategory.h:22 RooThresholdCategory.h:23 RooThresholdCategory.h:24 RooThresholdCategory.h:25 RooThresholdCategory.h:26 RooThresholdCategory.h:27 RooThresholdCategory.h:28 RooThresholdCategory.h:29 RooThresholdCategory.h:30 RooThresholdCategory.h:31 RooThresholdCategory.h:32 RooThresholdCategory.h:33 RooThresholdCategory.h:34 RooThresholdCategory.h:35 RooThresholdCategory.h:36 RooThresholdCategory.h:37 RooThresholdCategory.h:38 RooThresholdCategory.h:39 RooThresholdCategory.h:40 RooThresholdCategory.h:41 RooThresholdCategory.h:42 RooThresholdCategory.h:43 RooThresholdCategory.h:44 RooThresholdCategory.h:45 RooThresholdCategory.h:46 RooThresholdCategory.h:47 RooThresholdCategory.h:48 RooThresholdCategory.h:49 RooThresholdCategory.h:50 RooThresholdCategory.h:51 RooThresholdCategory.h:52 RooThresholdCategory.h:53 RooThresholdCategory.h:54