CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntervalFlatPdf.cc
Go to the documentation of this file.
2/*******************************************************************************
3 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * Package: EvtGenBase
5 * File: $Id: EvtIntervalFlatPdf.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
6 * Author: Alexei Dvoretskii, [email protected], 2001-2002
7 *
8 * Copyright (C) 2002 Caltech
9 *******************************************************************************/
10
12#include <assert.h>
15
17 : EvtPdf<EvtPoint1D>(), _min(min), _max(max)
18{
19 assert(max >= min);
20}
21
23 : EvtPdf<EvtPoint1D>(other), _min(other._min), _max(other._max)
24{}
25
28
33
35{
36 return 1.;
37}
38
43
virtual EvtValError compute_integral() const
virtual EvtPoint1D randomPoint()
virtual EvtPdf< EvtPoint1D > * clone() const
virtual double pdf(const EvtPoint1D &) const
EvtIntervalFlatPdf(double min, double max)
static double Flat()
Definition EvtRandom.cc:73