BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtIntervalFlatPdf.hh
Go to the documentation of this file.
1/*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
3 * Package: EvtGenBase
4 * File: $Id: EvtIntervalFlatPdf.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6 *
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
9
10/*
11 * Uniform PDF defined on a 1D interval.
12 */
13
14#ifndef EVT_INTERVAL_FLAT_PDF_HH
15#define EVT_INTERVAL_FLAT_PDF_HH
16
17#include "EvtPdf.hh"
18#include "EvtPoint1D.hh"
19#include <assert.h>
20
21class EvtIntervalFlatPdf : public EvtPdf<EvtPoint1D> {
22public:
23 EvtIntervalFlatPdf( double min, double max );
25 virtual ~EvtIntervalFlatPdf();
26 virtual EvtPdf<EvtPoint1D>* clone() const;
27
28 virtual EvtValError compute_integral() const;
29 virtual EvtPoint1D randomPoint();
30
31protected:
32 virtual double pdf( const EvtPoint1D& ) const;
33
34 double _min;
35 double _max;
36};
37
38#endif
#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)