BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/HepHistID.h
Go to the documentation of this file.
1// $Id: HepHistID.h,v 1.1.1.1 2005/04/21 01:15:12 zhangy Exp $
2//------------------------------------------------------------------------
3//
4// Description:
5// Class HepHistID :
6// This class allows ID numbers, ID strings or both to be used
7// to uniquely identify histograms. The actual use of this
8// class depends on the concrete package that implements HepTuple
9//
10//
11// Environment:
12// Software developed for the BaBar Detector at the SLAC B-Factory.
13//
14// Author List:
15// Scott Metzler Original author
16//
17//------------------------------------------------------------------------
18
19#ifndef _HepHistID_H
20#define _HepHistID_H
21
22#include <string>
23
24class HepHistID {
25public:
26 // destructor
27 virtual ~HepHistID() {}
28
29 // constructors
30 HepHistID(int theNumber);
31 // constructor with number
32 HepHistID(const char * theString);
33 // constructor with string
34 HepHistID(int theNumber, std::string theString);
35 // constructor with both number and string
36 HepHistID(const HepHistID & other);
37 // copy constructor
38
39 // accessors
40 inline bool isIDnumberSet() const { return _numSet; }
41 // number used in constructor
42 inline bool isIDstringSet() const { return _stringSet; }
43 // string used in constructor
44 inline int getIDnumber() const { return _idNumber; }
45 // the id number
46 std::string getIDstring() const { return _idString; }
47 // the id string
48
49 // operations
50 HepHistID & operator++(); // prefix ++
51 const HepHistID operator++(int); // postfix ++
52
53 HepHistID & operator--(); // prefix --
54 const HepHistID operator--(int); // postfix --
55
56private:
57 bool _numSet;
58 bool _stringSet;
59 int _idNumber;
60 std::string _idString;
61};
62
63#endif
HepHistID & operator++()
const HepHistID operator++(int)
HepHistID(int theNumber)
HepHistID(const char *theString)
HepHistID(const HepHistID &other)
HepHistID(int theNumber, std::string theString)
const HepHistID operator--(int)
HepHistID & operator--()