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

Annotation of /gp2root/pTofID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Apr 19 23:35:57 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 PTOFID_H
2     #define PTOFID_H
3     #include <iostream>
4     #include "pHitID.h"
5    
6     using std::cout;
7     using std::endl;
8    
9     class pTofID :public pHitID {
10    
11     public:
12    
13     pTofID(const char *c=0){ SetHitID(c); }
14    
15     void SetHitID(const char *c){
16     int *temp =(int *) c;
17     _ipltof=*temp++;
18     _ipaddle=*temp;
19     }
20    
21     int GetIpltof() const {return _ipltof;}
22     int GetIpaddle() const {return _ipaddle;}
23     void SetIpltof(const int & i){_ipltof=i;}
24     void SetIpaddle(const int & i){_ipaddle=i;}
25    
26     void Print() {
27     cout << "pTofID : Ipltof, Ipaddle = "
28     << GetIpltof() <<", " << GetIpaddle() << endl;
29     }
30    
31     private:
32    
33     int _ipltof;
34     int _ipaddle;
35    
36    
37     };
38    
39     #endif //PTOFID_H

  ViewVC Help
Powered by ViewVC 1.1.23