I would like parallelize my monte carlo simulation to generate parallel TH1F* objects, and then use TH1F:Add to add them all together at the end. To do this, I have to pass the TH1F* through MPI, but I am not sure how to do this.
Is it necessary to read every bin of every TH1F[i] and pass those individually, or is it possible to send a larger object?
I already have the serial code. This seems like the simplest way to parallelize since each node will take the same time to execute. Is there a better way to construct the calculation?