added the possibilty to make a pileup time cut for the energy spectrum