00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooSetPair.h,v 1.4 2007/08/09 19:55:47 wouter 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_SET_PAIR 00017 #define ROO_SET_PAIR 00018 00019 #include "TObject.h" 00020 #include "RooArgSet.h" 00021 00022 class RooLinkedListElem ; 00023 class TBuffer ; 00024 00025 class RooSetPair : public TObject { 00026 public: 00027 00028 // Initial element ctor 00029 RooSetPair(const RooArgSet* set1=0, const RooArgSet* set2=0) : 00030 _set1(const_cast<RooArgSet*>(set1)), _set2(const_cast<RooArgSet*>(set2)) { 00031 } 00032 00033 // Destructor 00034 virtual ~RooSetPair() { 00035 } 00036 00037 RooArgSet* _set1 ; 00038 RooArgSet* _set2 ; 00039 00040 virtual ULong_t Hash() const { 00041 return TString::Hash((void*)&_set1,2*sizeof(void*)) ; 00042 } 00043 00044 protected: 00045 00046 00047 // Forbidden 00048 RooSetPair(const RooSetPair&) ; 00049 00050 ClassDef(RooSetPair,0) // Utility class holding a pair of RooArgSet pointers 00051 } ; 00052 00053 00054 00055 #endif