00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * @(#)root/roofitcore:$Id: RooSharedProperties.cxx 24285 2008-06-16 15:05:15Z wouter $ 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 00017 ////////////////////////////////////////////////////////////////////////////// 00018 // 00019 // BEGIN_HTML 00020 // Class RooSharedProperties is the base class for shared properties 00021 // that can be stored in RooSharedPropertiesList. 00022 // END_HTML 00023 // 00024 00025 #include "RooFit.h" 00026 #include "RooSharedProperties.h" 00027 #include "RooMsgService.h" 00028 #include "RooTrace.h" 00029 00030 #include "Riostream.h" 00031 using std::cout ; 00032 using std::endl ; 00033 00034 ClassImp(RooSharedProperties) 00035 ; 00036 00037 00038 00039 //_____________________________________________________________________________ 00040 RooSharedProperties::RooSharedProperties() 00041 { 00042 // Default constructor 00043 RooTrace::create(this) ; 00044 } 00045 00046 00047 //_____________________________________________________________________________ 00048 RooSharedProperties::RooSharedProperties(const char* uuidstr) : _uuid(uuidstr) 00049 { 00050 // Constructor with unique-id string 00051 RooTrace::create(this) ; 00052 } 00053 00054 00055 00056 //_____________________________________________________________________________ 00057 RooSharedProperties::~RooSharedProperties() 00058 { 00059 // Destructor 00060 RooTrace::destroy(this) ; 00061 } 00062 00063 00064 00065 //_____________________________________________________________________________ 00066 Bool_t RooSharedProperties::operator==(const RooSharedProperties& other) 00067 { 00068 // Return true of unique id of this property is equal to that of other 00069 return (_uuid==other._uuid) ; 00070 } 00071 00072 00073 //_____________________________________________________________________________ 00074 void RooSharedProperties::Print(Option_t* /*opts*/) const 00075 { 00076 // Printing interface 00077 cout << "RooSharedProperties(" << this << ") UUID = " << _uuid.AsString() << endl ; 00078 }