/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels                                                     *
 *    File: $Id: RooDstD0BG.h,v 1.12 2007/07/12 20:30:49 wouter Exp $
 * Authors:                                                                  *
 *   UE, Ulrik Egede,     RAL,               U.Egede@rl.ac.uk                *
 *   MT, Max Turri,       UC Santa Cruz      turri@slac.stanford.edu         *
 *   CC, Chih-hsiang Cheng, Stanford         chcheng@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          RAL 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_DstD0_BG
#define ROO_DstD0_BG

#include "RooAbsPdf.h"
#include "RooRealProxy.h"

class RooRealVar;

class RooDstD0BG : public RooAbsPdf {
public:
  RooDstD0BG() {} ;
  RooDstD0BG(const char *name, const char *title,
	     RooAbsReal& _dm, RooAbsReal& _dm0, RooAbsReal& _c,
	     RooAbsReal& _a, RooAbsReal& _b);

  RooDstD0BG(const RooDstD0BG& other, const char *name=0) ;
  virtual TObject *clone(const char *newname) const { 
    return new RooDstD0BG(*this,newname); }
  inline virtual ~RooDstD0BG() { };
  
  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
  
protected:

  RooRealProxy dm ;
  RooRealProxy dm0 ;
  RooRealProxy C,A,B ;

  Double_t evaluate() const;
  
private:
  
  ClassDef(RooDstD0BG,1) // D*-D0 mass difference background PDF
};

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