SensitiveDetector help

_Geant4 Version: 3.11
_Operating System: Windows 10
_Compiler/Version: Microsoft Studio 2022
_CMake Version: 3.29

I was wondering how to go about setting up my detector as a sensitive detector. What are the steps I need to take and then once I have it added, how do I use the G4VSensitiveDetector class to process hits? Is the overriding of the ConstructSDandField method necessary? Can I output the hit in the ProcessHits method? My ultimate goal is for the program to output the energy of each hit when the program runs.