BOSS
7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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
24
class
HepHistID
{
25
public
:
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
56
private
:
57
bool
_numSet;
58
bool
_stringSet;
59
int
_idNumber;
60
std::string _idString;
61
};
62
63
#endif
HepHistID
Definition:
HepHistID.h:24
HepHistID::operator++
HepHistID & operator++()
Definition:
HepHistID.cxx:29
HepHistID::isIDstringSet
bool isIDstringSet() const
Definition:
HepHistID.h:42
HepHistID::~HepHistID
virtual ~HepHistID()
Definition:
HepHistID.h:27
HepHistID::getIDnumber
int getIDnumber() const
Definition:
HepHistID.h:44
HepHistID::isIDnumberSet
bool isIDnumberSet() const
Definition:
HepHistID.h:40
HepHistID::getIDstring
std::string getIDstring() const
Definition:
HepHistID.h:46
HepHistID::HepHistID
HepHistID(int theNumber, std::string theString)
HepHistID::operator--
HepHistID & operator--()
Definition:
HepHistID.cxx:48
source
Reconstruction
MdcPatRec
MdcRecoUtil
MdcRecoUtil-00-01-08
MdcRecoUtil
HepHistID.h
Generated by
1.9.6