BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkStoreHypo.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkStoreHypo.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description: TrkStoreHypo. Trivial class to record which track
6// fits sampled where should be stored when a TrkRecoTrk is persisted
7//
8// Copyright Information:
9// Copyright (C) 2000 Lawrence Berkeley Laboratory
10//
11// Authors: Dave Brown, 11/20/00
12//------------------------------------------------------------------------------
13
14#ifndef TRKSTOREHYPO_HH
15#define TRKSTOREHYPO_HH
16
17#include "MdcRecoUtil/PdtPid.h"
18
20public:
21// constructors and destructor
22 TrkStoreHypo() : _hypo(PdtPid::null), _fltlen(-9999.0)
23 {}
24 TrkStoreHypo(PdtPid::PidType hypo,double fltlen) : _hypo(hypo),_fltlen(fltlen)
25 {}
26 TrkStoreHypo(const TrkStoreHypo& other) : _hypo(other._hypo),_fltlen(other._fltlen)
27 {}
29// accessors
30 const PdtPid::PidType& hypo() const { return _hypo; }
31 double flightLength() const { return _fltlen; }
32// rw functions
34 if(this != &other){
35 _hypo = other._hypo;
36 _fltlen = other._fltlen;
37 }
38 return *this;
39 }
40 bool operator == (const TrkStoreHypo& other) const;
41 bool operator < (const TrkStoreHypo& other) const;
42private:
43 PdtPid::PidType _hypo;
44 double _fltlen;
45 static double _flttol;
46};
47
48#endif
Definition: PdtPid.h:6
PidType
Definition: PdtPid.h:11
bool operator<(const TrkStoreHypo &other) const
bool operator==(const TrkStoreHypo &other) const
TrkStoreHypo & operator=(const TrkStoreHypo &other)
Definition: TrkStoreHypo.h:33
const PdtPid::PidType & hypo() const
Definition: TrkStoreHypo.h:30
TrkStoreHypo(PdtPid::PidType hypo, double fltlen)
Definition: TrkStoreHypo.h:24
double flightLength() const
Definition: TrkStoreHypo.h:31
TrkStoreHypo(const TrkStoreHypo &other)
Definition: TrkStoreHypo.h:26