/[PAMELA software]/PamVMC_update/ac/include/PamVMCCasID.h
ViewVC logotype

Contents of /PamVMC_update/ac/include/PamVMCCasID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Oct 15 15:51:31 2013 UTC (11 years, 3 months ago) by formato
Branch: MAIN, rel
CVS Tags: reltag, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
PamVMC update

1 #ifndef PAMVMCCASID_H
2 #define PAMVMCCASID_H
3 #include <iostream>
4 #include "TVirtualMC.h"
5 #include "pGeoID.h"
6
7 #define CASOF 1
8
9 using std::cout;
10 using std::endl;
11
12 struct pCasID: public pGeoID {
13 Int_t plNo;
14
15
16 pCasID(): plNo(-1) {};
17 pCasID(Int_t offset): pGeoID(offset), plNo(-1) {};
18 pCasID & operator = (const pCasID &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(3,plNo);
27 t= kTRUE;
28 }
29 return t;
30 }
31
32 Int_t GetID() const { return plNo; }
33
34 void Print(const Option_t* ="") const {
35 cout << " pCasID : plNo " << plNo <<endl;
36 }
37
38 };
39
40
41 #endif // PAMVMCCasID_H

  ViewVC Help
Powered by ViewVC 1.1.23