1 /*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * File: $Id: EvtIntervalFlatPdf.hh,v 1.2 2009-03-16 16:42:03 robbep Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
11 * Uniform PDF defined on a 1D interval.
14 #ifndef EVT_INTERVAL_FLAT_PDF_HH
15 #define EVT_INTERVAL_FLAT_PDF_HH
18 #include "EvtGenBase/EvtPdf.hh"
19 #include "EvtGenBase/EvtPoint1D.hh"
21 class EvtIntervalFlatPdf : public EvtPdf<EvtPoint1D> {
24 EvtIntervalFlatPdf(double min, double max);
25 EvtIntervalFlatPdf(const EvtIntervalFlatPdf& other);
26 virtual ~EvtIntervalFlatPdf();
27 virtual EvtPdf<EvtPoint1D>* clone() const;
29 virtual EvtValError compute_integral() const;
30 virtual EvtPoint1D randomPoint();
34 virtual double pdf(const EvtPoint1D&) const;