Program for double PMT quartz detector