BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkIdManDumb.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkIdManDumb.h,v 1.1.1.1 2005/04/21 06:26:56 maqm Exp $
4//
5// Description:
6// Class for generating dummy id numbers (always same value). Users
7// can create instances, or use a singleton instance (value = -1).
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Author(s): Steve Schaffner
13//
14//------------------------------------------------------------------------
15#ifndef TRKIDMANDUMB_HH
16#define TRKIDMANDUMB_HH
18
19// Class interface //
20class TrkIdManDumb : public TrkIdManager {
21
22public:
23 TrkIdManDumb(long val);
24 virtual ~TrkIdManDumb();
25 static TrkIdManDumb* instance();
26
27 virtual long nextId();
28 virtual long lastId() const;
29 virtual void setMax(long maxid);
30private:
31 long _theValue;
32
33 long theValue() const {return _theValue;}
34 // Preempt
35 TrkIdManDumb& operator= (const TrkIdManDumb&);
37};
38
39#endif
40
41
42
43
44
45
46
static TrkIdManDumb * instance()
virtual long nextId()
virtual long lastId() const
TrkIdManDumb(long val)
virtual void setMax(long maxid)
virtual ~TrkIdManDumb()