#ifndef PAMVMCTOFID_H #define PAMVMCTOFID_H #include #include "TVirtualMC.h" #include "pGeoID.h" #define TOFOF 1 using std::cout; using std::endl; struct pTofID: public pGeoID { Int_t plNo; pTofID(): plNo(-1) {}; pTofID(Int_t offset): pGeoID(offset), plNo(-1) {}; pTofID & operator = (const pTofID &pid) { plNo=pid.plNo; return *this; } Bool_t FillVolID(){ Bool_t t=kFALSE; if(gMC) { gMC->CurrentVolOffID(1,plNo); t= kTRUE; // cout<<"plNo"<