Logo ROOT   6.16/01
Reference Guide
RooThreshEntry.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooThreshEntry.h,v 1.12 2007/05/11 09:11:30 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_THRESH_ENTRY
17#define ROO_THRESH_ENTRY
18
19#include "TNamed.h"
20#include "RooCatType.h"
21
22class RooThreshEntry : public TObject {
23public:
24 inline RooThreshEntry() : TObject(), _thresh(0), _cat() {}
25 virtual ~RooThreshEntry() {} ;
27 RooThreshEntry(const RooThreshEntry& other) ;
28 virtual TObject* Clone(const char*) const { return new RooThreshEntry(*this); }
29
30 virtual Int_t Compare(const TObject *) const ;
31 virtual Bool_t IsSortable() const { return kTRUE ; }
32
33 inline Double_t thresh() const { return _thresh ; }
34 inline const RooCatType& cat() const { return _cat ; }
35
36protected:
37
40
41 ClassDef(RooThreshEntry,1) // Utility class for RooThresholdCategory, holding a threshold/category state pair
42} ;
43
44
45#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
Definition: RooCatType.h:22
Class RooThreshEntry is a utility class for RooThresholdCategory.
virtual TObject * Clone(const char *) const
Make a clone of an object using the Streamer facility.
Double_t thresh() const
const RooCatType & cat() const
RooCatType _cat
virtual Int_t Compare(const TObject *) const
Implement TObject Compare() operator to facilitate sorting of RooThreshEntry object in ROOT collectio...
virtual Bool_t IsSortable() const
virtual ~RooThreshEntry()
Double_t _thresh
Mother of all ROOT objects.
Definition: TObject.h:37