/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtPoint1D.cc

Go to the documentation of this file.
00001 #include "EvtGenBase/EvtPatches.hh"
00002 /*******************************************************************************
00003  * Project: BaBar detector at the SLAC PEP-II B-factory
00004  * Package: EvtGenBase
00005  *    File: $Id: EvtPoint1D.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
00006  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
00007  *
00008  * Copyright (C) 2002 Caltech
00009  *******************************************************************************/
00010 
00011 // Point on a finite 1-D interval. isValid shows whether for a given specification,
00012 // the coordinate _value is inside the interval defined by _min, _max.
00013 
00014 #include <stdio.h>
00015 #include "EvtGenBase/EvtPoint1D.hh"
00016 
00017 EvtPoint1D::EvtPoint1D()
00018   : _min(0.), _max(-1.), _value(0.), _valid(false)
00019 {}
00020 
00021 EvtPoint1D::EvtPoint1D(double value)
00022   : _min(0.), _max(-1.), _value(value), _valid(true)
00023 {}
00024 
00025 EvtPoint1D::EvtPoint1D(double min, double max, double value)
00026   : _min(min), _max(max), _value(value), _valid((_min <= _value && _value <= _max) ? true : false)
00027 {} 
00028   
00029 EvtPoint1D::~EvtPoint1D()
00030 {}
00031 
00032 void EvtPoint1D::print() const
00033 {
00034   printf("%f (%f : %f)\n",_value,_min,_max);
00035 }
00036 

Generated on Tue Nov 29 23:12:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7