BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/TrkBase/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
19class TrkStoreHypo {
20public:
21 // constructors and destructor
22 TrkStoreHypo() : _hypo( PdtPid::null ), _fltlen( -9999.0 ) {}
23 TrkStoreHypo( PdtPid::PidType hypo, double fltlen ) : _hypo( hypo ), _fltlen( fltlen ) {}
24 TrkStoreHypo( const TrkStoreHypo& other ) : _hypo( other._hypo ), _fltlen( other._fltlen ) {}
26 // accessors
27 const PdtPid::PidType& hypo() const { return _hypo; }
28 double flightLength() const { return _fltlen; }
29 // rw functions
31 if ( this != &other )
32 {
33 _hypo = other._hypo;
34 _fltlen = other._fltlen;
35 }
36 return *this;
37 }
38 bool operator==( const TrkStoreHypo& other ) const;
39 bool operator<( const TrkStoreHypo& other ) const;
40
41private:
42 PdtPid::PidType _hypo;
43 double _fltlen;
44 static double _flttol;
45};
46
47#endif
bool operator<(const TrkStoreHypo &other) const
bool operator==(const TrkStoreHypo &other) const
TrkStoreHypo & operator=(const TrkStoreHypo &other)