conditional dist umbrella sampling code