Logo ROOT   6.16/01
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
24class RooRealVar;
25class RooArgList ;
26
28public:
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
39protected:
40
41 RooListProxy _set1 ; // Set of constraint terms
42 RooSetProxy _paramSet ; // Set of parameters to which constraints apply
43 TIterator* _setIter1 ; //! do not persist
44
45 Double_t evaluate() const;
46
47 ClassDef(RooConstraintSum,2) // sum of -log of set of RooAbsPdf representing parameter constraints
48};
49
50#endif
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooConstraintSum calculates the sum of the -(log) likelihoods of a set of RooAbsPfs that represent co...
RooConstraintSum()
Default constructor.
virtual ~RooConstraintSum()
Destructor.
RooSetProxy _paramSet
TIterator * _setIter1
virtual TObject * clone(const char *newname) const
RooListProxy _set1
Double_t evaluate() const
do not persist
const RooArgList & list()
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
RooSetProxy is the concrete proxy for RooArgSet objects.
Definition: RooSetProxy.h:24
Iterator abstract base class.
Definition: TIterator.h:30
Mother of all ROOT objects.
Definition: TObject.h:37