/[PAMELA software]/PamCAL/include/PamVMCTofID.h
ViewVC logotype

Annotation of /PamCAL/include/PamVMCTofID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Nov 12 10:10:19 2007 UTC (17 years ago) by nikolas
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
More basic files added

1 nikolas 1.1 #ifndef PAMVMCTOFID_H
2     #define PAMVMCTOFID_H
3     #include <iostream>
4     #include "TVirtualMC.h"
5     #include "pGeoID.h"
6    
7     #define TOFOF 1
8    
9     using std::cout;
10     using std::endl;
11    
12     struct pTofID: public pGeoID {
13     Int_t plNo;
14    
15    
16     pTofID(): plNo(-1) {};
17     pTofID(Int_t offset): pGeoID(offset), plNo(-1) {};
18     pTofID & operator = (const pTofID &pid) {
19     plNo=pid.plNo;
20     return *this;
21     }
22    
23     Bool_t FillVolID(){
24     Bool_t t=kFALSE;
25     if(gMC) {
26     gMC->CurrentVolOffID(1,plNo);
27     t= kTRUE;
28     // cout<<"plNo"<<plNo<<endl;
29     //Print();
30     //}
31     }
32     return t;
33     }
34    
35     Int_t GetID() const { return plNo; }
36    
37     void Print(const Option_t* ="") const {
38     cout << " pTofID : plNo " << plNo <<endl;
39     }
40    
41     };
42    
43    
44    
45    
46     #endif // PAMVMCTofID_H

  ViewVC Help
Powered by ViewVC 1.1.23