/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id: RooSharedProperties.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 RooSharedProperties is the base class for shared properties
// that can be stored in RooSharedPropertiesList.
// END_HTML
//

#include "RooFit.h"
#include "RooSharedProperties.h"
#include "RooMsgService.h"
#include "RooTrace.h"

#include "Riostream.h"
using std::cout ;
using std::endl ;

ClassImp(RooSharedProperties)
;



//_____________________________________________________________________________
RooSharedProperties::RooSharedProperties() 
{
  // Default constructor
  RooTrace::create(this) ;
} 


//_____________________________________________________________________________
RooSharedProperties::RooSharedProperties(const char* uuidstr) : _uuid(uuidstr) 
{
  // Constructor with unique-id string
  RooTrace::create(this) ;
} 



//_____________________________________________________________________________
RooSharedProperties::~RooSharedProperties() 
{
  // Destructor
  RooTrace::destroy(this) ;
} 



//_____________________________________________________________________________
Bool_t RooSharedProperties::operator==(const RooSharedProperties& other) 
{
  // Return true of unique id of this property is equal to that of other
  return (_uuid==other._uuid) ;
}


//_____________________________________________________________________________
void RooSharedProperties::Print(Option_t* /*opts*/) const 
{
  // Printing interface
  cout << "RooSharedProperties(" << this << ") UUID = " << _uuid.AsString() << endl ;
}

Last change: Wed Jun 25 08:34:11 2008
Last generated: 2008-06-25 08:34

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.