/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/TrkReco/TrkReco-00-08-59-patch4-slc6tag/src/Range.cxx

Go to the documentation of this file.
00001 //-----------------------------------------------------------fmt version 0.00--
00002 // $Id: Range.cxx,v 1.2 2005/09/09 07:47:07 zangsl Exp $
00003 //-----------------------------------------------------------------------------
00004 // Header file for Multi-TDC data
00005 //-----------------------------------------------------------------------------
00006 // Filename : MultiTDC.h
00007 // Section  : CDC TSF
00008 // Owner    : Yoshi Iwasaki
00009 // Email    : yiwaskai@kekvax.kek.jp
00010 //-----------------------------------------------------------------------------
00011 
00012 #include <iostream>
00013 //#include "cdc/Range.h"
00014 #include "TrkReco/Range.h"
00015 
00016 Range::Range() {
00017     _low = -999.;
00018     _high = -999.;
00019 }
00020 
00021 Range::Range(const Range & ib) {
00022     _low = ib.low();
00023     _high = ib.high();
00024 }
00025 
00026 Range::Range(const float iLow, const float iHigh) {
00027     if (iHigh > iLow) {
00028         _low = iLow;
00029         _high = iHigh;
00030     }
00031     else {
00032         _low = iHigh;
00033         _high = iLow;
00034     }
00035 }
00036 
00037 bool
00038 Range::operator == (const Range & a) const {
00039     if (_low != a.low()) return false;
00040     if (_high != a.high()) return false;
00041     return true;
00042 }
00043 
00044 int
00045 Range::dump(void) const {
00046     std::cout << _low << "~" << _high;
00047     return 0;
00048 }
00049 

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