Add internal typedef MultiSamplePlot::MSIntegral pair<string,vector<pair<string,float>>>. Add method Integrate() : returns a MSIntegral, which is a pair <nameMSPlot , vector<nameTH1F,integral of TH1F> >. It contains the integral of all internal TH1F of the MultiSamplePlot.