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

Contents of /gp2root/pCalID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Oct 22 08:26:41 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 #ifndef PCALID_H
2 #define PCALID_H
3 #include <iostream>
4 #include "pHitID.h"
5 #include "TObject.h"
6
7 using std::cout;
8 using std::endl;
9
10 class pCalID :public pHitID {
11
12 public:
13
14 pCalID(const char *c=0){SetHitID(c);}
15
16 void SetHitID(const char *c){
17 int *temp =(int *) c;
18 _icapl=*temp++;
19 _icasi=*temp++;
20 _icast=*temp;
21 }
22
23 int GetIcapl(){return _icapl;}
24 int GetIcasi(){return _icasi;}
25 int GetIcast(){return _icast;}
26 void SetIcapl(const int & i){_icapl=i;}
27 void SetIcasi(const int & i){_icasi=i;}
28 void SetIcast(const int & i){_icast=i;}
29
30 void Print(){
31 cout << "pCalID : Icapl, Icasi, Icast= "
32 << GetIcapl()<<", "<< GetIcasi() <<", " << GetIcast() << endl;
33 }
34
35 private:
36
37 int _icapl;
38 int _icasi;
39 int _icast;
40
41 public:
42 ClassDef(pCalID,1);
43
44 };
45
46 #endif //PCALID_H
47

  ViewVC Help
Powered by ViewVC 1.1.23