BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkStoreHypo.cxx
Go to the documentation of this file.
1// ------------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkStoreHypo.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description: TrkStoreHypo
6//
7// Copyright Information:
8// Copyright (C) 2000 Lawrence Berkeley Laboratory
9//
10// Authors: Dave Brown, 11/20/00
11//------------------------------------------------------------------------------
12
13// #include "BaBar/BaBar.hh"
14#include "TrkBase/TrkStoreHypo.h"
15#include <math.h>
16
17double TrkStoreHypo::_flttol( 1.0 ); // call requests within this equivalent
18
19bool TrkStoreHypo::operator==( const TrkStoreHypo& other ) const {
20 return _hypo == other._hypo && fabs( _fltlen - other._fltlen ) < _flttol;
21}
22
23bool TrkStoreHypo::operator<( const TrkStoreHypo& other ) const {
24 if ( !operator==( other ) )
25 {
26 if ( _hypo != other._hypo ) return _hypo < other._hypo;
27 else return _fltlen < other._fltlen;
28 }
29 else return false;
30}
bool operator<(const TrkStoreHypo &other) const
bool operator==(const TrkStoreHypo &other) const