add tophat window generation