ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id: RooThreshEntry.cxx 24285 2008-06-16 15:05:15Z wouter $
 * 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)             *
 *****************************************************************************/

//////////////////////////////////////////////////////////////////////////////
//
// BEGIN_HTML
// Class RooThreshEntry is a utility class for RooThresholdCategory
// END_HTML
//

#include "RooFit.h"

#include "TClass.h"
#include "TClass.h"
#include "RooThreshEntry.h"

ClassImp(RooThreshEntry)
;


//_____________________________________________________________________________
RooThreshEntry::RooThreshEntry(Double_t inThresh, const RooCatType& inCat) : 
  _thresh(inThresh), _cat(inCat) 
{
  // Constructor with threshold value and associated category value
}



//_____________________________________________________________________________
RooThreshEntry::RooThreshEntry(const RooThreshEntry& other) : 
  TObject(other), _thresh(other._thresh), _cat(other._cat) 
{
  // Copy constructor
}



//_____________________________________________________________________________
Int_t RooThreshEntry::Compare(const TObject* other) const 
{
  // Implement TObject Compare() operator to facilitate sorting of 
  // RooThreshEntry object in ROOT collection. Only comparison
  // to other RooThreshEntry objects is supported

  // Can only compare objects of same type
  if (!other->IsA()->InheritsFrom(RooThreshEntry::Class())) return 0 ;

  RooThreshEntry* otherTE = (RooThreshEntry*) other ;
  return (_thresh < otherTE->_thresh) ? -1 : 1 ;
}


 RooThreshEntry.cxx:1
 RooThreshEntry.cxx:2
 RooThreshEntry.cxx:3
 RooThreshEntry.cxx:4
 RooThreshEntry.cxx:5
 RooThreshEntry.cxx:6
 RooThreshEntry.cxx:7
 RooThreshEntry.cxx:8
 RooThreshEntry.cxx:9
 RooThreshEntry.cxx:10
 RooThreshEntry.cxx:11
 RooThreshEntry.cxx:12
 RooThreshEntry.cxx:13
 RooThreshEntry.cxx:14
 RooThreshEntry.cxx:15
 RooThreshEntry.cxx:16
 RooThreshEntry.cxx:17
 RooThreshEntry.cxx:18
 RooThreshEntry.cxx:19
 RooThreshEntry.cxx:20
 RooThreshEntry.cxx:21
 RooThreshEntry.cxx:22
 RooThreshEntry.cxx:23
 RooThreshEntry.cxx:24
 RooThreshEntry.cxx:25
 RooThreshEntry.cxx:26
 RooThreshEntry.cxx:27
 RooThreshEntry.cxx:28
 RooThreshEntry.cxx:29
 RooThreshEntry.cxx:30
 RooThreshEntry.cxx:31
 RooThreshEntry.cxx:32
 RooThreshEntry.cxx:33
 RooThreshEntry.cxx:34
 RooThreshEntry.cxx:35
 RooThreshEntry.cxx:36
 RooThreshEntry.cxx:37
 RooThreshEntry.cxx:38
 RooThreshEntry.cxx:39
 RooThreshEntry.cxx:40
 RooThreshEntry.cxx:41
 RooThreshEntry.cxx:42
 RooThreshEntry.cxx:43
 RooThreshEntry.cxx:44
 RooThreshEntry.cxx:45
 RooThreshEntry.cxx:46
 RooThreshEntry.cxx:47
 RooThreshEntry.cxx:48
 RooThreshEntry.cxx:49
 RooThreshEntry.cxx:50
 RooThreshEntry.cxx:51
 RooThreshEntry.cxx:52
 RooThreshEntry.cxx:53
 RooThreshEntry.cxx:54
 RooThreshEntry.cxx:55
 RooThreshEntry.cxx:56
 RooThreshEntry.cxx:57
 RooThreshEntry.cxx:58
 RooThreshEntry.cxx:59
 RooThreshEntry.cxx:60
 RooThreshEntry.cxx:61
 RooThreshEntry.cxx:62
 RooThreshEntry.cxx:63
 RooThreshEntry.cxx:64
 RooThreshEntry.cxx:65
 RooThreshEntry.cxx:66