can anyone tell me how to subtract histograms?(adsbygoogle = window.adsbygoogle || []).push({});

ive got to histograms already defined (pointers) called h1 and h2. and i want to make a third histogram object that is one subtract the other.

so far ive got TH1F h3 = (*h2)-(*h1);

and then after defining a new canvas ive got

h3.Draw();

but its not doin anything :(

thanks!!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to subtract histograms

Loading...

Similar Threads - subtract histograms | Date |
---|---|

Unsigned subtraction | Aug 12, 2016 |

Problem with creating a Tree from another+histogram | Feb 24, 2016 |

What is the term for this image processing? | Jan 27, 2015 |

Adding/Subtracting arrays in F77 | Jun 7, 2012 |

Explain BCD Subtraction | Jan 4, 2012 |

**Physics Forums - The Fusion of Science and Community**