pick particle spin2 from integrated flux
use std::vector by default, move implementation to cc file
added random number from curve
typename change
changed CDF to CHist