Logo ROOT  
Reference Guide
RooConstraintSum.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
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_CONSTRAINT_SUM
17 #define ROO_CONSTRAINT_SUM
18 
19 #include "RooAbsReal.h"
20 #include "RooListProxy.h"
21 #include "RooSetProxy.h"
22 #include "TStopwatch.h"
23 
24 class RooRealVar;
25 class RooArgList ;
26 
27 class RooConstraintSum : public RooAbsReal {
28 public:
29 
31  RooConstraintSum(const char *name, const char *title, const RooArgSet& constraintSet, const RooArgSet& paramSet) ;
32  virtual ~RooConstraintSum() ;
33 
34  RooConstraintSum(const RooConstraintSum& other, const char* name = 0);
35  virtual TObject* clone(const char* newname) const { return new RooConstraintSum(*this, newname); }
36 
37  const RooArgList& list() { return _set1 ; }
38 
39 protected:
40 
41  RooListProxy _set1 ; // Set of constraint terms
42  RooSetProxy _paramSet ; // Set of parameters to which constraints apply
43 
44  Double_t evaluate() const;
45 
46  ClassDef(RooConstraintSum,2) // sum of -log of set of RooAbsPdf representing parameter constraints
47 };
48 
49 #endif
RooAbsReal.h
RooConstraintSum::~RooConstraintSum
virtual ~RooConstraintSum()
Destructor.
Definition: RooConstraintSum.cxx:101
RooSetProxy
Definition: RooSetProxy.h:23
TStopwatch.h
RooArgList
Definition: RooArgList.h:21
RooConstraintSum::_paramSet
RooSetProxy _paramSet
Definition: RooConstraintSum.h:42
RooConstraintSum::_set1
RooListProxy _set1
Definition: RooConstraintSum.h:41
RooAbsReal
Definition: RooAbsReal.h:61
RooSetProxy.h
RooConstraintSum::evaluate
Double_t evaluate() const
Return sum of -log of constraint p.d.f.s.
Definition: RooConstraintSum.cxx:111
RooConstraintSum::list
const RooArgList & list()
Definition: RooConstraintSum.h:37
RooListProxy
Definition: RooListProxy.h:24
RooConstraintSum::RooConstraintSum
RooConstraintSum()
Default constructor.
Definition: RooConstraintSum.cxx:53
RooListProxy.h
Double_t
double Double_t
Definition: RtypesCore.h:59
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooConstraintSum::clone
virtual TObject * clone(const char *newname) const
Definition: RooConstraintSum.h:35
name
char name[80]
Definition: TGX11.cxx:110
RooConstraintSum
Definition: RooConstraintSum.h:27
RooRealVar
Definition: RooRealVar.h:36
RooArgSet
Definition: RooArgSet.h:28