Logo ROOT   6.10/09
Reference Guide
RooSetPair.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooSetPair.h,v 1.4 2007/08/09 19:55:47 wouter Exp $
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_SET_PAIR
17 #define ROO_SET_PAIR
18 
19 #include <iostream>
20 #include "TObject.h"
21 #include "RooArgSet.h"
22 
23 class RooLinkedListElem ;
24 class TBuffer ;
25 
26 class RooSetPair : public TObject {
27 public:
28 
29  // Initial element ctor
30  RooSetPair(const RooArgSet* set1=0, const RooArgSet* set2=0) :
31  _set1(const_cast<RooArgSet*>(set1)), _set2(const_cast<RooArgSet*>(set2)) {
32  }
33 
34  // Destructor
35  virtual ~RooSetPair() {
36  }
37 
40 
41  virtual ULong_t Hash() const {
42  return TString::Hash((void*)&_set1,2*sizeof(void*)) ;
43  }
44 
45 protected:
46 
47 
48  // Forbidden
49  RooSetPair(const RooSetPair&) ;
50 
51  ClassDef(RooSetPair,0) // Utility class holding a pair of RooArgSet pointers
52 } ;
53 
54 
55 
56 #endif
RooSetPair(const RooArgSet *set1=0, const RooArgSet *set2=0)
Definition: RooSetPair.h:30
Buffer base class used for serializing objects.
Definition: TBuffer.h:40
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:616
virtual ULong_t Hash() const
Return hash value for this object.
Definition: RooSetPair.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:297
RooArgSet * _set1
Definition: RooSetPair.h:38
RooArgSet * _set2
Definition: RooSetPair.h:39
virtual ~RooSetPair()
Definition: RooSetPair.h:35
unsigned long ULong_t
Definition: RtypesCore.h:51
Mother of all ROOT objects.
Definition: TObject.h:37
RooLinkedListElem is an link element for the RooLinkedList class.
RooSetPair is a utility class that stores a pair of RooArgSets.
Definition: RooSetPair.h:26