Logo ROOT   6.08/07
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 "Riosfwd.h"
20 #include "TNamed.h"
21 #include "RooCatType.h"
22 
23 class RooThreshEntry : public TObject {
24 public:
25  inline RooThreshEntry() : TObject(), _thresh(0), _cat() {}
26  virtual ~RooThreshEntry() {} ;
28  RooThreshEntry(const RooThreshEntry& other) ;
29  virtual TObject* Clone(const char*) const { return new RooThreshEntry(*this); }
30 
31  virtual Int_t Compare(const TObject *) const ;
32  virtual Bool_t IsSortable() const { return kTRUE ; }
33 
34  inline Double_t thresh() const { return _thresh ; }
35  inline const RooCatType& cat() const { return _cat ; }
36 
37 protected:
38 
41 
42  ClassDef(RooThreshEntry,1) // Utility class for RooThresholdCategory, holding a threshold/category state pair
43 } ;
44 
45 
46 #endif
virtual TObject * Clone(const char *) const
Make a clone of an object using the Streamer facility.
virtual ~RooThreshEntry()
Double_t thresh() const
Double_t _thresh
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Bool_t IsSortable() const
const RooCatType & cat() const
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Int_t Compare(const TObject *) const
Implement TObject Compare() operator to facilitate sorting of RooThreshEntry object in ROOT collectio...
RooCatType _cat
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
Definition: RooCatType.h:23
Class RooThreshEntry is a utility class for RooThresholdCategory.
double Double_t
Definition: RtypesCore.h:55
Mother of all ROOT objects.
Definition: TObject.h:37
const Bool_t kTRUE
Definition: Rtypes.h:91