ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels                                                     *
 *    File: $Id: RooDecay.h,v 1.11 2007/05/11 09:13:07 verkerke Exp $
 * 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_DECAY
#define ROO_DECAY

#include "RooAbsAnaConvPdf.h"
#include "RooRealProxy.h"

class RooDecay : public RooAbsAnaConvPdf {
public:

  enum DecayType { SingleSided, DoubleSided, Flipped };

  // Constructors, assignment etc
  inline RooDecay() { }
  RooDecay(const char *name, const char *title, RooRealVar& t, 
	   RooAbsReal& tau, const RooResolutionModel& model, DecayType type) ;
  RooDecay(const RooDecay& other, const char* name=0);
  virtual TObject* clone(const char* newname) const { return new RooDecay(*this,newname) ; }
  virtual ~RooDecay();

  virtual Double_t coefficient(Int_t basisIndex) const ;

  Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const;
  void generateEvent(Int_t code);
  
protected:
  
  RooRealProxy _t ;
  RooRealProxy _tau ;
  DecayType    _type ;
  Int_t        _basisExp ;

  ClassDef(RooDecay,1) // General decay function p.d.f 
};

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