1. set TPC is wrong 2. output doesnt print to hist.txt even if the hist array has values. could be something wrong with aux_stats
Doesn't do offset calculation and histbin yet
sounds like it works. won't print to file though...
OP
prints and works fine now. the calculation using log could be wrong because somehow the offset is always 5!?