Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "TObject.h"
20#include "TString.h"
21
22#include <ROOT/RConfig.hxx>
23
24class RooArgSet;
25
26class RooSetPair : public TObject {
27public:
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
44protected:
45
46
47 // Forbidden
49
50 ClassDef(RooSetPair,0) // Utility class holding a pair of RooArgSet pointers
51} R__SUGGEST_ALTERNATIVE("Please use std::pair<RooArgSet*,RooArgSet*>");
52
53
54
55#endif
#define R__SUGGEST_ALTERNATIVE(ALTERNATIVE)
Definition RConfig.hxx:524
unsigned long ULong_t
Definition RtypesCore.h:55
#define ClassDef(name, id)
Definition Rtypes.h:325
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:35
RooSetPair is a utility class that stores a pair of RooArgSets.
Definition RooSetPair.h:26
RooArgSet * _set1
Definition RooSetPair.h:37
RooSetPair(const RooArgSet *set1=0, const RooArgSet *set2=0)
Definition RooSetPair.h:30
virtual ULong_t Hash() const
Return hash value for this object.
Definition RooSetPair.h:40
RooArgSet * _set2
Definition RooSetPair.h:38
virtual ~RooSetPair()
RooSetPair destructor.
RooSetPair(const RooSetPair &)
Mother of all ROOT objects.
Definition TObject.h:41
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition TString.cxx:662