Parent Directory
|
Revision Log
Cleaning up before a release
| 1 | nikolas | 1.1 | #ifndef PAMVMCNDID_H |
| 2 | #define PAMVMCNDID_H | ||
| 3 | #include <iostream> | ||
| 4 | #include "TVirtualMC.h" | ||
| 5 | #include "pGeoID.h" | ||
| 6 | |||
| 7 | #define NDOF 1 | ||
| 8 | |||
| 9 | using std::cout; | ||
| 10 | using std::endl; | ||
| 11 | |||
| 12 | struct pNdID: public pGeoID { | ||
| 13 | Int_t tubNo; | ||
| 14 | |||
| 15 | |||
| 16 | pNdID(): tubNo(-1) {}; | ||
| 17 | pNdID(Int_t offset): pGeoID(offset), tubNo(-1) {}; | ||
| 18 | pNdID & operator = (const pNdID &pid) { | ||
| 19 | tubNo=pid.tubNo; | ||
| 20 | return *this; | ||
| 21 | } | ||
| 22 | |||
| 23 | Bool_t FillVolID(){ | ||
| 24 | Bool_t t=kFALSE; | ||
| 25 | if(gMC) { | ||
| 26 | gMC->CurrentVolOffID(1,tubNo); | ||
| 27 | t= kTRUE; | ||
| 28 | } | ||
| 29 | return t; | ||
| 30 | } | ||
| 31 | |||
| 32 | Int_t GetID() const { return tubNo; } | ||
| 33 | |||
| 34 | void Print(const Option_t* ="") const { | ||
| 35 | cout << " pNdID : tubNo " << tubNo <<endl; | ||
| 36 | } | ||
| 37 | }; | ||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | |||
| 42 | #endif // PAMVMCNdID_H |
| ViewVC Help | |
| Powered by ViewVC 1.1.23 |