replaced in SetMaximum TH1 in str(pr.__class__()) with isinstance