/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/src/TrkStoreHypo.cxx

Go to the documentation of this file.
00001 // ------------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: TrkStoreHypo.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
00004 //
00005 //  Description: TrkStoreHypo
00006 //
00007 // Copyright Information:
00008 //      Copyright (C) 2000      Lawrence Berkeley Laboratory
00009 //
00010 //  Authors: Dave Brown, 11/20/00
00011 //------------------------------------------------------------------------------
00012 
00013 //#include "BaBar/BaBar.hh"
00014 #include "TrkBase/TrkStoreHypo.h"
00015 #include <math.h>
00016 
00017 double
00018 TrkStoreHypo::_flttol(1.0); // call requests within this equivalent
00019 
00020 bool 
00021 TrkStoreHypo::operator == (const TrkStoreHypo& other) const {
00022   return _hypo == other._hypo && fabs(_fltlen-other._fltlen) < _flttol;
00023 }
00024  
00025 
00026 bool
00027 TrkStoreHypo::operator < (const TrkStoreHypo& other) const {
00028   if(!operator ==(other)){
00029     if(_hypo != other._hypo)
00030       return _hypo < other._hypo;
00031     else
00032       return _fltlen < other._fltlen;
00033   } else
00034     return false;
00035 }

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