#ifndef PAMVMCTOFSD_H #define PAMVMCTOFSD_H #include #include "PamVMCDetectorSD.h" using std::cout; using std::endl; class PamVMCTofSD: public PamVMCDetectorSD{ const char* cname; public: PamVMCTofSD(char *dname):PamVMCDetectorSD("pHitData",dname,1000) { cname=dname; }; virtual void FillHit(fin f,TVirtualMC *g){ switch(f) { case ENTERING: CleanHit(); FillVolID(); InitHit(); default: UpdateHit(g); cout<<"NEW HIT ENTERING OR INSIDE "<GetStack()->GetCurrentTrack()->T()<<" fTOF is: "<FillVolID()){ // AddGlobalTime(g); //cout<<"saving"<GetID()<GetStack()->GetCurrentTrack()->T() <