ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
Hello,
I have one root file and there is five different trees. I want to subtract all four trees from the one tree. That is after defining all five trees was not a problem but when I did something like following it is showing me error.
hist6 = hist1-hist2-hist3-hist4-hist5;…(1)
error: invalid operands to binary expression (‘long’ and ‘TH1D *’)
Basically I want to subtract hist2 hist3 hist4 hist5 from hist1. Defining them is not a problem, I think. But I think writing equation 1 is creating a problem. Can you please sort out the problem and send me a macro of it ?
Thanks and Regards
Souvik