Hi,
I have a problem concerning the writing of histograms into a ps file.
Here a piece of code:
TCanvas* canvas0 = new TCanvas(“canvas0”,“canvas0”,1200,900);
canvas0->Print(“Histos.ps[”);
invariantMass[s]->Draw(“SAME”);
canvas0->Print(“Histos.ps”);
canvas0->Print(“Histos.ps]”);
I loop over s=2 input data files and fill the corresponding histograms
for the invariant Mass.
The problem: I open and close the ps file for each loop. Therefore only the last histogram is writen into the ps file. But I need all histograms because I want to lap them. Do you have any idea?
Thanks & Cheers,
Gordon