Logo ROOT  
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
RooSetPair::_set2
RooArgSet * _set2
Definition: RooSetPair.h:38
RooArgSet.h
TString::Hash
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:638
TBuffer
Definition: TBuffer.h:43
RooLinkedListElem
Definition: RooLinkedListElem.h:30
RooSetPair::~RooSetPair
virtual ~RooSetPair()
RooSetPair destructor.
Definition: RooSetPair.cxx:38
RooSetPair
Definition: RooSetPair.h:26
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
RooSetPair::RooSetPair
RooSetPair(const RooArgSet *set1=0, const RooArgSet *set2=0)
Definition: RooSetPair.h:30
RooSetPair::_set1
RooArgSet * _set1
Definition: RooSetPair.h:37
TObject.h
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooSetPair::Hash
virtual ULong_t Hash() const
Return hash value for this object.
Definition: RooSetPair.h:40
RooArgSet
Definition: RooArgSet.h:28