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

Annotation of /gp2root/pCatID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Oct 22 08:26:50 2006 UTC (18 years, 1 month ago) by cafagna
Branch: MAIN
CVS Tags: v0r9, v0r10, HEAD
Changes since 1.1: +5 -0 lines
File MIME type: text/plain
Stable version, lot of changes, ROOT support included, persistency not yet activated

1 pamela 1.1 #ifndef PCATID_H
2     #define PCATID_H
3     #include <iostream>
4     #include "pHitID.h"
5 cafagna 1.2 #include "TObject.h"
6 pamela 1.1
7     using std::cout;
8     using std::endl;
9    
10     class pCatID :public pHitID {
11    
12     public:
13    
14     pCatID(const char *c=0){ SetHitID(c);}
15    
16     void SetHitID(const char *c){_icat=(int) *c;}
17    
18     int GetIcat(){return _icat;}
19    
20     void Print(){
21     cout << "pCatID : Icat= " << GetIcat() << endl;
22     }
23    
24     private:
25    
26     int _icat;
27    
28    
29 cafagna 1.2 public:
30     ClassDef(pCatID,1);
31    
32 pamela 1.1 };
33    
34     #endif //PCATID_H
35 cafagna 1.2

  ViewVC Help
Powered by ViewVC 1.1.23