BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntervalFlatPdf.cc
Go to the documentation of this file.
1#include "EvtPatches.hh"
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, dvoretsk@slac.stanford.edu, 2001-2002
7 *
8 * Copyright (C) 2002 Caltech
9 *******************************************************************************/
10
11#include "EvtIntervalFlatPdf.hh"
12#include "EvtPatches.hh"
13#include "EvtRandom.hh"
14#include <assert.h>
15
17 : EvtPdf<EvtPoint1D>(), _min( min ), _max( max ) {
18 assert( max >= min );
19}
20
22 : EvtPdf<EvtPoint1D>( other ), _min( other._min ), _max( other._max ) {}
23
25
29
30double EvtIntervalFlatPdf::pdf( const EvtPoint1D& ) const { return 1.; }
31
35
#define min(a, b)
#define max(a, b)
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(double min, double max)
Definition EvtRandom.cc:55