/[PAMELA software]/gp2root/pHeader.h
ViewVC logotype

Annotation of /gp2root/pHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Apr 19 23:35:58 2006 UTC (18 years, 7 months ago) by pamela
Branch: v1r0
CVS Tags: start
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First release

1 pamela 1.1 #ifndef PHEADER_H
2     #define PHEADER_H
3    
4     #include <vector>
5     #include <string>
6     #include "pHeaderID.h"
7    
8     using std::string;
9    
10     class pHeader {
11    
12     public:
13    
14     pHeader( const string &name="", const int & type=0, const int &run=0,
15     const int & event=0, pHeaderID *heaid=0):
16     _name(name), _type(type), _run(run), _event(event)
17     {
18     SetHeaderID(heaid);
19     }
20    
21     void SetHeader(const pHeader &ph) {
22     SetHeader(ph);
23     }
24    
25     void SetHeader(const pHeader *ph) {
26     SetHeaderID(ph->GetHitID());
27     SetType(ph->_type);
28     SetRun(ph->_run);
29     SetEvent(ph->_event);
30     SetName(ph->_name);
31     }
32    
33     void SetHeaderID(pHeaderID * heaid){_heaid=heaid;}
34     void SetType(const int & x){_type=x;}
35     void SetRun(const int & x){_run=x;}
36     void SetEvent(const int & x){_event=x;}
37     void SetName(const string & x) {_name=x;}
38    
39     pHeaderID* GetHitID() const { return _heaid;}
40     int GetType() const {return _type;}
41     int GetRun() const {return _run;}
42     int GetEvent() const {return _event;}
43     string GetName() const {return _name;}
44    
45     virtual void Print() const =0;
46    
47     private:
48     string _name;
49     int _type,_run,_event;
50     pHeaderID *_heaid;
51    
52     };
53    
54     typedef std::vector<pHeader*> pHeaColl;
55     typedef map<string,pHeader*> pHeaMap;
56    
57     #endif //PHEADER_H

  ViewVC Help
Powered by ViewVC 1.1.23