BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkStoreHypo Class Reference

#include <TrkStoreHypo.h>

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
 

Detailed Description

Definition at line 19 of file TrkStoreHypo.h.

Constructor & Destructor Documentation

◆ TrkStoreHypo() [1/3]

TrkStoreHypo::TrkStoreHypo ( )
inline

Definition at line 22 of file TrkStoreHypo.h.

22 : _hypo(PdtPid::null), _fltlen(-9999.0)
23 {}
@ null
Definition: PdtPid.h:12

◆ TrkStoreHypo() [2/3]

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

Definition at line 24 of file TrkStoreHypo.h.

24 : _hypo(hypo),_fltlen(fltlen)
25 {}
const PdtPid::PidType & hypo() const
Definition: TrkStoreHypo.h:30

◆ TrkStoreHypo() [3/3]

TrkStoreHypo::TrkStoreHypo ( const TrkStoreHypo other)
inline

Definition at line 26 of file TrkStoreHypo.h.

26 : _hypo(other._hypo),_fltlen(other._fltlen)
27 {}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ ~TrkStoreHypo()

TrkStoreHypo::~TrkStoreHypo ( )
inline

Definition at line 28 of file TrkStoreHypo.h.

28{}

Member Function Documentation

◆ flightLength()

double TrkStoreHypo::flightLength ( ) const
inline

Definition at line 31 of file TrkStoreHypo.h.

31{ return _fltlen; }

◆ hypo()

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

Definition at line 30 of file TrkStoreHypo.h.

30{ return _hypo; }

◆ operator<()

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

Definition at line 26 of file TrkStoreHypo.cxx.

27 {
28 if(!operator ==(other)){
29 if(_hypo != other._hypo)
30 return _hypo < other._hypo;
31 else
32 return _fltlen < other._fltlen;
33 } else
34 return false;
35}

◆ operator=()

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

Definition at line 33 of file TrkStoreHypo.h.

33 {
34 if(this != &other){
35 _hypo = other._hypo;
36 _fltlen = other._fltlen;
37 }
38 return *this;
39 }

◆ operator==()

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

Definition at line 21 of file TrkStoreHypo.cxx.

21 {
22 return _hypo == other._hypo && fabs(_fltlen-other._fltlen) < _flttol;
23}

The documentation for this class was generated from the following files: