XENON1T dark matter data analysis: Signal reconstruction, calibration, and event selection