#include "DataLib.hh" ClassImp(SDHit) SDHit::SDHit(const SDHit &e) : BaseEventRecord(e){ Edep_ = e.getEdep(); p4 = e.getP4(); kinEnergy = e.getKinEnergy(); nSteps_ = e.getNSteps(); PDG = e.getPDG(); trackID = e.getTrackID(); parentID = e.getParentID(); trackLeftVolume = e.getTrackLeftVolume(); } void SDHit::printToStream(ostream& stream){ stream << "\n *** SDHit *** "<< std::endl; stream << "\tPDG: " << getPDG() << std::endl; stream << "\tKinEnergy: " << getKinEnergy() << std::endl; stream << "\tp4(Px,Py,Pz,E)[GeV] : (" << getP4().X() << ", " << getP4().Y() << ", " << getP4().Z() << ", " << getP4().T() << ")" << std::endl; }