Class Reference for E1039 Core & Analysis Software
PdbBankID.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 //
3 // The pdbcal package
4 // Copyright (C) PHENIX collaboration, 1999
5 //
6 // Declaration of class PdbBankID
7 //
8 // Purpose: id number for a bank, derived from a string
9 //
10 // Description: The string should follow the ONCS naming convention
11 //
12 // Author: Matthias Messer
13 //-----------------------------------------------------------------------------
14 #ifndef PDBBANKID_HH__
15 #define PDBBANKID_HH__
16 
17 #include <TObject.h>
18 
19 class PdbBankID : public TObject {
20 public:
21  PdbBankID(const int val = 0);
22  virtual ~PdbBankID(){}
23 
24  void print() const;
25 
26  int getInternalValue() const { return bankID; }
27  void setInternalValue(const int val) { bankID = val; }
28 
29  friend int operator == (const PdbBankID &, const PdbBankID &);
30 
31 private:
32  int bankID;
33 
34  ClassDef(PdbBankID, 1)
35 
36 };
37 
38 #endif /* PDBBANKID_HH__ */
void print() const
Definition: PdbBankID.cc:19
friend int operator==(const PdbBankID &, const PdbBankID &)
Definition: PdbBankID.cc:24
PdbBankID(const int val=0)
Definition: PdbBankID.cc:14
int getInternalValue() const
Definition: PdbBankID.h:26
void setInternalValue(const int val)
Definition: PdbBankID.h:27
virtual ~PdbBankID()
Definition: PdbBankID.h:22