TrkStoreHypo Class Reference

#include <TrkStoreHypo.h>

List of all members.

Public Member Functions

 TrkStoreHypo ()
 TrkStoreHypo (PdtPid::PidType hypo, double fltlen)
 TrkStoreHypo (const TrkStoreHypo &other)
 ~TrkStoreHypo ()
const PdtPid::PidTypehypo () const
double flightLength () const
TrkStoreHypooperator= (const TrkStoreHypo &other)
bool operator== (const TrkStoreHypo &other) const
bool operator< (const TrkStoreHypo &other) const

Private Attributes

PdtPid::PidType _hypo
double _fltlen

Static Private Attributes

static double _flttol


Detailed Description

Definition at line 19 of file TrkStoreHypo.h.


Constructor & Destructor Documentation

TrkStoreHypo::TrkStoreHypo (  )  [inline]

Definition at line 22 of file TrkStoreHypo.h.

00022                  : _hypo(PdtPid::null), _fltlen(-9999.0)
00023   {}

TrkStoreHypo::TrkStoreHypo ( PdtPid::PidType  hypo,
double  fltlen 
) [inline]

Definition at line 24 of file TrkStoreHypo.h.

00024                                                  : _hypo(hypo),_fltlen(fltlen)
00025   {}

TrkStoreHypo::TrkStoreHypo ( const TrkStoreHypo other  )  [inline]

Definition at line 26 of file TrkStoreHypo.h.

00026                                           : _hypo(other._hypo),_fltlen(other._fltlen)
00027   {}

TrkStoreHypo::~TrkStoreHypo (  )  [inline]

Definition at line 28 of file TrkStoreHypo.h.

00028 {}


Member Function Documentation

double TrkStoreHypo::flightLength (  )  const [inline]

Definition at line 31 of file TrkStoreHypo.h.

References _fltlen.

00031 { return _fltlen; }

const PdtPid::PidType& TrkStoreHypo::hypo (  )  const [inline]

Definition at line 30 of file TrkStoreHypo.h.

References _hypo.

00030 { return _hypo; }

bool TrkStoreHypo::operator< ( const TrkStoreHypo other  )  const

Definition at line 27 of file TrkStoreHypo.cxx.

References _fltlen, _hypo, and EvtCyclic3::other().

00027                                                          {
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 }

TrkStoreHypo& TrkStoreHypo::operator= ( const TrkStoreHypo other  )  [inline]

Definition at line 33 of file TrkStoreHypo.h.

References _fltlen, _hypo, and EvtCyclic3::other().

00033                                                        {
00034     if(this != &other){
00035       _hypo = other._hypo;
00036       _fltlen = other._fltlen;
00037     }
00038     return *this;
00039   }

bool TrkStoreHypo::operator== ( const TrkStoreHypo other  )  const

Definition at line 21 of file TrkStoreHypo.cxx.

References _fltlen, _flttol, _hypo, and EvtCyclic3::other().

00021                                                           {
00022   return _hypo == other._hypo && fabs(_fltlen-other._fltlen) < _flttol;
00023 }


Member Data Documentation

double TrkStoreHypo::_fltlen [private]

Definition at line 44 of file TrkStoreHypo.h.

Referenced by flightLength(), operator<(), operator=(), and operator==().

double TrkStoreHypo::_flttol [static, private]

Definition at line 45 of file TrkStoreHypo.h.

Referenced by operator==().

PdtPid::PidType TrkStoreHypo::_hypo [private]

Definition at line 43 of file TrkStoreHypo.h.

Referenced by hypo(), operator<(), operator=(), and operator==().


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