My data is in an ntuple, and there’s three plots I want. They all are plotted against time (effectively, actually their run number but that’s besides the point).
One is a raw rate straight from experimental data, the next is a corrected rate based on atmospheric pressure, and the last is the atmospheric pressure.
I currently can plot rate & corrected rate easily, and I tried several methods to allow myself to be able to use the tutorial’s method for plotting with two different scales, but I couldn’t manage it.
Currently I use:
data->SetMarkerColor(kRed);
data->Draw("rateraw:run", domoptions.str().c_str(), "");
data->SetMarkerColor(kBlue);
data->Draw("ratecorr:run", domoptions.str().c_str(), "same");
Where domoptions is a stringstream that just selects which parts of the data to use. (I need to make 160 of these plots but I think starting with one is a good idea)
My idea was to use “prof” in the third argument to convert it into a 1d histogram, as well as for the pressure, but frankly I failed miserably.
Am I going about in the right direction? If not what method should I go about doing?