BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPoint1D.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: EvtPoint1D.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
// Point on a finite 1-D interval. isValid shows whether for a given specification,
12
// the coordinate _value is inside the interval defined by _min, _max.
13
14
#include "
EvtPoint1D.hh
"
15
#include <stdio.h>
16
17
EvtPoint1D::EvtPoint1D
() : _min( 0. ), _max( -1. ), _value( 0. ), _valid( false ) {}
18
19
EvtPoint1D::EvtPoint1D
(
double
value
)
20
: _min( 0. ), _max( -1. ), _value(
value
), _valid( true ) {}
21
22
EvtPoint1D::EvtPoint1D
(
double
min
,
double
max
,
double
value
)
23
: _min(
min
)
24
, _max(
max
)
25
, _value(
value
)
26
, _valid( ( _min <= _value && _value <= _max ) ? true : false ) {}
27
28
EvtPoint1D::~EvtPoint1D
() {}
29
30
void
EvtPoint1D::print
()
const
{ printf(
"%f (%f : %f)\n"
, _value, _min, _max ); }
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
EvtPatches.hh
EvtPoint1D.hh
EvtPoint1D::value
double value() const
Definition
EvtPoint1D.hh:25
EvtPoint1D::EvtPoint1D
EvtPoint1D()
Definition
EvtPoint1D.cc:17
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.cc
Generated by
1.16.1