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

Diff of /gp2root/pHeader.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pamela, Wed Apr 19 23:35:58 2006 UTC revision 1.2 by cafagna, Sun Oct 22 08:26:54 2006 UTC
# Line 2  Line 2 
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    
# Line 18  public: Line 22  public:
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    }    }
# Line 36  public: Line 42  public:
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23