BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPoint1D.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: EvtPoint1D.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// Point on a finite 1-D interval. isValid shows whether for a given specification,
11// the coordinate _value is inside the interval defined by _min, _max.
12
13#ifndef EVT_POINT_1D_HH
14#define EVT_POINT_1D_HH
15
17public:
18 EvtPoint1D();
19 EvtPoint1D( double value );
20 EvtPoint1D( double min, double max, double value );
22
23 bool isValid() const { return _valid; }
24
25 double value() const { return _value; }
26
27 void print() const;
28
29private:
30 double _min; // interval minimum
31 double _max; // interval maximum
32 double _value;
33 bool _valid; // valid point inside the interval?
34};
35
36#endif
#define min(a, b)
#define max(a, b)
double value() const
Definition EvtPoint1D.hh:25
bool isValid() const
Definition EvtPoint1D.hh:23
void print() const
Definition EvtPoint1D.cc:30