/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_FRAC_REMAINDER
#define ROO_FRAC_REMAINDER

#include "RooAbsReal.h"
#include "RooListProxy.h"

class RooRealVar;
class RooArgList ;

class RooFracRemainder : public RooAbsReal {
public:

  RooFracRemainder() ;
  RooFracRemainder(const char *name, const char *title, const RooArgSet& sumSet) ;
  virtual ~RooFracRemainder() ;

  RooFracRemainder(const RooFracRemainder& other, const char* name = 0);
  virtual TObject* clone(const char* newname) const { return new RooFracRemainder(*this, newname); }

protected:

  RooListProxy _set1 ;            // Set of input fractions
  mutable TIterator* _setIter1 ;  //! Iterator over set of input fractions

  Double_t evaluate() const;

  ClassDef(RooFracRemainder,1) // Utility function calculating remainder fraction, i.e. 1-sum_i(a_i)
};

#endif
 RooFracRemainder.h:1
 RooFracRemainder.h:2
 RooFracRemainder.h:3
 RooFracRemainder.h:4
 RooFracRemainder.h:5
 RooFracRemainder.h:6
 RooFracRemainder.h:7
 RooFracRemainder.h:8
 RooFracRemainder.h:9
 RooFracRemainder.h:10
 RooFracRemainder.h:11
 RooFracRemainder.h:12
 RooFracRemainder.h:13
 RooFracRemainder.h:14
 RooFracRemainder.h:15
 RooFracRemainder.h:16
 RooFracRemainder.h:17
 RooFracRemainder.h:18
 RooFracRemainder.h:19
 RooFracRemainder.h:20
 RooFracRemainder.h:21
 RooFracRemainder.h:22
 RooFracRemainder.h:23
 RooFracRemainder.h:24
 RooFracRemainder.h:25
 RooFracRemainder.h:26
 RooFracRemainder.h:27
 RooFracRemainder.h:28
 RooFracRemainder.h:29
 RooFracRemainder.h:30
 RooFracRemainder.h:31
 RooFracRemainder.h:32
 RooFracRemainder.h:33
 RooFracRemainder.h:34
 RooFracRemainder.h:35
 RooFracRemainder.h:36
 RooFracRemainder.h:37
 RooFracRemainder.h:38
 RooFracRemainder.h:39
 RooFracRemainder.h:40
 RooFracRemainder.h:41
 RooFracRemainder.h:42
 RooFracRemainder.h:43
 RooFracRemainder.h:44
 RooFracRemainder.h:45