BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPoint1D.cc
Go to the documentation of this file.
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, [email protected], 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 <stdio.h>
16
18 : _min(0.), _max(-1.), _value(0.), _valid(false)
19{}
20
22 : _min(0.), _max(-1.), _value(value), _valid(true)
23{}
24
25EvtPoint1D::EvtPoint1D(double min, double max, double value)
26 : _min(min), _max(max), _value(value), _valid((_min <= _value && _value <= _max) ? true : false)
27{}
28
30{}
31
33{
34 printf("%f (%f : %f)\n",_value,_min,_max);
35}
36
void print() const
Definition: EvtPoint1D.cc:32