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
16
class
EvtPoint1D
{
17
public
:
18
EvtPoint1D
();
19
EvtPoint1D
(
double
value
);
20
EvtPoint1D
(
double
min
,
double
max
,
double
value
);
21
~EvtPoint1D
();
22
23
bool
isValid
()
const
{
return
_valid; }
24
25
double
value
()
const
{
return
_value; }
26
27
void
print
()
const
;
28
29
private
:
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
min
#define min(a, b)
Definition
Eepipi/src/ee2eepp/basesv5.1/f2c.h:157
max
#define max(a, b)
Definition
Eepipi/src/ee2eepp/basesv5.1/f2c.h:158
EvtPoint1D::value
double value() const
Definition
EvtPoint1D.hh:25
EvtPoint1D::EvtPoint1D
EvtPoint1D()
Definition
EvtPoint1D.cc:17
EvtPoint1D::isValid
bool isValid() const
Definition
EvtPoint1D.hh:23
EvtPoint1D::~EvtPoint1D
~EvtPoint1D()
Definition
EvtPoint1D.cc:28
EvtPoint1D::print
void print() const
Definition
EvtPoint1D.cc:30
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtPoint1D.hh
Generated by
1.16.1