/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id$
 * 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
// RooDouble is a minimal implementation of a TObject holding a Double_t
// value.
// END_HTML
//

#include "RooFit.h"
#include "RooDouble.h"
#include <string>

using namespace std;

ClassImp(RooDouble)
;



//_____________________________________________________________________________
RooDouble::RooDouble(Double_t value) : TNamed(), _value(value) 
{
  SetName(Form("%f",value)) ;
}


//_____________________________________________________________________________
Int_t RooDouble::Compare(const TObject* other) const 
{
  // Implement comparison to other TObjects that are also RooDouble
  // to faciliate sorting of RooDoubles in a ROOT container

  const RooDouble* otherD = dynamic_cast<const RooDouble*>(other) ;
  if (!otherD) return 0 ;
  return (_value>otherD->_value) ? 1 : -1 ;
}
 RooDouble.cxx:1
 RooDouble.cxx:2
 RooDouble.cxx:3
 RooDouble.cxx:4
 RooDouble.cxx:5
 RooDouble.cxx:6
 RooDouble.cxx:7
 RooDouble.cxx:8
 RooDouble.cxx:9
 RooDouble.cxx:10
 RooDouble.cxx:11
 RooDouble.cxx:12
 RooDouble.cxx:13
 RooDouble.cxx:14
 RooDouble.cxx:15
 RooDouble.cxx:16
 RooDouble.cxx:17
 RooDouble.cxx:18
 RooDouble.cxx:19
 RooDouble.cxx:20
 RooDouble.cxx:21
 RooDouble.cxx:22
 RooDouble.cxx:23
 RooDouble.cxx:24
 RooDouble.cxx:25
 RooDouble.cxx:26
 RooDouble.cxx:27
 RooDouble.cxx:28
 RooDouble.cxx:29
 RooDouble.cxx:30
 RooDouble.cxx:31
 RooDouble.cxx:32
 RooDouble.cxx:33
 RooDouble.cxx:34
 RooDouble.cxx:35
 RooDouble.cxx:36
 RooDouble.cxx:37
 RooDouble.cxx:38
 RooDouble.cxx:39
 RooDouble.cxx:40
 RooDouble.cxx:41
 RooDouble.cxx:42
 RooDouble.cxx:43
 RooDouble.cxx:44
 RooDouble.cxx:45
 RooDouble.cxx:46
 RooDouble.cxx:47
 RooDouble.cxx:48
 RooDouble.cxx:49
 RooDouble.cxx:50
 RooDouble.cxx:51
 RooDouble.cxx:52