histfactory: set hist name when setting hist