RooThreshEntry.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooThreshEntry.h,v 1.12 2007/05/11 09:11:30 verkerke Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_THRESH_ENTRY
00017 #define ROO_THRESH_ENTRY
00018 
00019 #include "Riosfwd.h"
00020 #include "TNamed.h"
00021 #include "RooCatType.h"
00022 
00023 class RooThreshEntry : public TObject {
00024 public:
00025   inline RooThreshEntry() : TObject(), _thresh(0), _cat() {} 
00026   virtual ~RooThreshEntry() {} ;
00027   RooThreshEntry(Double_t thresh, const RooCatType& cat) ;
00028   RooThreshEntry(const RooThreshEntry& other) ;
00029   virtual TObject* Clone(const char*) const { return new RooThreshEntry(*this); }
00030 
00031   virtual Int_t Compare(const TObject *) const ;
00032   virtual Bool_t IsSortable() const { return kTRUE ; }
00033 
00034   inline Double_t thresh() const { return _thresh ; }
00035   inline const RooCatType& cat() const { return _cat ; }
00036 
00037 protected:
00038 
00039   Double_t _thresh ;
00040   RooCatType _cat ;
00041         
00042   ClassDef(RooThreshEntry,1) // Utility class for RooThresholdCategory, holding a threshold/category state pair
00043 } ;
00044 
00045 
00046 #endif

Generated on Tue Jul 5 14:26:27 2011 for ROOT_528-00b_version by  doxygen 1.5.1