Detector Characterization, Optimization, and Operation for ACTPol