Logo ROOT   6.14/05
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 
39 
40  virtual ULong_t Hash() const {
41  return TString::Hash((void*)&_set1,2*sizeof(void*)) ;
42  }
43 
44 protected:
45 
46 
47  // Forbidden
48  RooSetPair(const RooSetPair&) ;
49 
50  ClassDef(RooSetPair,0) // Utility class holding a pair of RooArgSet pointers
51 } ;
52 
53 
54 
55 #endif
virtual ~RooSetPair()
RooSetPair destructor.
Definition: RooSetPair.cxx:38
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:626
virtual ULong_t Hash() const
Return hash value for this object.
Definition: RooSetPair.h:40
#define ClassDef(name, id)
Definition: Rtypes.h:320
RooArgSet * _set1
Definition: RooSetPair.h:37
RooArgSet * _set2
Definition: RooSetPair.h:38
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