add include
add explicit casting to (TH1F*)