2 |
#define PHEADER_H |
#define PHEADER_H |
3 |
|
|
4 |
#include <vector> |
#include <vector> |
5 |
|
#include <map> |
6 |
#include <string> |
#include <string> |
7 |
#include "pHeaderID.h" |
#include "pHeaderID.h" |
8 |
|
#include "TObject.h" |
9 |
|
|
10 |
using std::string; |
using std::string; |
11 |
|
using std::vector; |
12 |
|
using std::map; |
13 |
|
|
14 |
class pHeader { |
class pHeader :public TObject { |
15 |
|
|
16 |
public: |
public: |
17 |
|
|
22 |
SetHeaderID(heaid); |
SetHeaderID(heaid); |
23 |
} |
} |
24 |
|
|
25 |
|
virtual ~pHeader(){}; |
26 |
|
|
27 |
void SetHeader(const pHeader &ph) { |
void SetHeader(const pHeader &ph) { |
28 |
SetHeader(ph); |
SetHeader(ph); |
29 |
} |
} |
42 |
void SetEvent(const int & x){_event=x;} |
void SetEvent(const int & x){_event=x;} |
43 |
void SetName(const string & x) {_name=x;} |
void SetName(const string & x) {_name=x;} |
44 |
|
|
45 |
pHeaderID* GetHitID() const { return _heaid;} |
pHeaderID* GetHitID() const { return _heaid;} |
46 |
int GetType() const {return _type;} |
int GetType() const {return _type;} |
47 |
int GetRun() const {return _run;} |
int GetRun() const {return _run;} |
48 |
int GetEvent() const {return _event;} |
int GetEvent() const {return _event;} |
49 |
string GetName() const {return _name;} |
string GetHeadName() const {return _name;} |
50 |
|
|
51 |
|
virtual void Print() const {}; //=0; |
52 |
|
|
|
virtual void Print() const =0; |
|
53 |
|
|
54 |
private: |
private: |
55 |
string _name; |
string _name; |
56 |
int _type,_run,_event; |
int _type,_run,_event; |
57 |
pHeaderID *_heaid; |
pHeaderID *_heaid; |
58 |
|
|
59 |
|
public: |
60 |
|
//#ifndef __GNUC__ |
61 |
|
ClassDef(pHeader,1); |
62 |
|
//#endif |
63 |
}; |
}; |
64 |
|
|
65 |
typedef std::vector<pHeader*> pHeaColl; |
typedef vector<pHeader*> pHeaColl; |
66 |
typedef map<string,pHeader*> pHeaMap; |
typedef map<string,pHeader*> pHeaMap; |
67 |
|
|
68 |
#endif //PHEADER_H |
#endif //PHEADER_H |
69 |
|
|