ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooThreshEntry.h,v 1.12 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_THRESH_ENTRY
#define ROO_THRESH_ENTRY

#include "Riosfwd.h"
#include "TNamed.h"
#include "RooCatType.h"

class RooThreshEntry : public TObject {
public:
  inline RooThreshEntry() : TObject(), _thresh(0), _cat() {} 
  virtual ~RooThreshEntry() {} ;
  RooThreshEntry(Double_t thresh, const RooCatType& cat) ;
  RooThreshEntry(const RooThreshEntry& other) ;
  virtual TObject* Clone(const char*) const { return new RooThreshEntry(*this); }

  virtual Int_t Compare(const TObject *) const ;
  virtual Bool_t IsSortable() const { return kTRUE ; }

  inline Double_t thresh() const { return _thresh ; }
  inline const RooCatType& cat() const { return _cat ; }

protected:

  Double_t _thresh ;
  RooCatType _cat ;
	
  ClassDef(RooThreshEntry,1) // Utility class for RooThresholdCategory, holding a threshold/category state pair
} ;


#endif
 RooThreshEntry.h:1
 RooThreshEntry.h:2
 RooThreshEntry.h:3
 RooThreshEntry.h:4
 RooThreshEntry.h:5
 RooThreshEntry.h:6
 RooThreshEntry.h:7
 RooThreshEntry.h:8
 RooThreshEntry.h:9
 RooThreshEntry.h:10
 RooThreshEntry.h:11
 RooThreshEntry.h:12
 RooThreshEntry.h:13
 RooThreshEntry.h:14
 RooThreshEntry.h:15
 RooThreshEntry.h:16
 RooThreshEntry.h:17
 RooThreshEntry.h:18
 RooThreshEntry.h:19
 RooThreshEntry.h:20
 RooThreshEntry.h:21
 RooThreshEntry.h:22
 RooThreshEntry.h:23
 RooThreshEntry.h:24
 RooThreshEntry.h:25
 RooThreshEntry.h:26
 RooThreshEntry.h:27
 RooThreshEntry.h:28
 RooThreshEntry.h:29
 RooThreshEntry.h:30
 RooThreshEntry.h:31
 RooThreshEntry.h:32
 RooThreshEntry.h:33
 RooThreshEntry.h:34
 RooThreshEntry.h:35
 RooThreshEntry.h:36
 RooThreshEntry.h:37
 RooThreshEntry.h:38
 RooThreshEntry.h:39
 RooThreshEntry.h:40
 RooThreshEntry.h:41
 RooThreshEntry.h:42
 RooThreshEntry.h:43
 RooThreshEntry.h:44
 RooThreshEntry.h:45
 RooThreshEntry.h:46