#ifndef _CPPHITTOF_ #define _CPPHITTOF_ #include "G4VHit.hh" #include "G4THitsCollection.hh" #include "G4Allocator.hh" class CPPHitTOF:public G4VHit { public: enum{ kNorth, kSouth }; class tofExtra_t{ public: int ptype; int itrack; double px; double py; double pz; double x; double y; double z; double E; double dist; }; CPPHitTOF(int bar=0, int plane=0, int end=kNorth, double dE=0.0, double t=0.0):bar(bar),plane(plane),end(end),dE(dE),t(t){} ~CPPHitTOF(){} // ftofTruthHit int bar; int plane; int end; double dE; double t; // ftofTruthExtra vector tofExtras; }; typedef G4THitsCollection CPPHitTOFCollection; #endif // _CPPHITTOF_