I’m trying to create two sets of plots, showing raw and filtered data for the same two TTrees, but am running into an error when trying to plot the two filtered graphs on top of each other.
No matter where I seem to put the “same” argument in the second graph, it says the fourth argument should be a Long64_t, and doesn’t accept any of the other arguments.
The second plot is has the same number of points, but is slightly higher up the same scale, however I’m writing a generic macro for lots of uses, so it won’t always be the case.
The 2nd plot will not change the range of the 1st one. So if the 2nd plot has a different range you will not see it. If the two ranges are different you should first use gPAd->DrawFrame to draw a frame with a range including both plots and then you draw the two plots with the option “same”
Thanks for this; is there an easy way to determine the maximum and minimum points on the x- and y- axes, in order to provide DrawFrame with the dimensions?
Sorry to keep rehashing this, but I’m struggling to work out how to define the columnname required; I have two events e1 and e2, each containing one branch f, which contains two leaves ‘v’ and ‘t’. Usually calling f.v and f.t gets the desired result, but neither this nor e1->f.v is accepted for this function, with the first option stating it is an “undeclared identifier”, and the second apparently being of type Double_t, when const char * is required.
I’m afraid the data I have contains around 300,000 points of data which changes with every event, so I’m unsure of where my maximum would be! GetMaximum is a useful tool, but I’m afraid I don’t know how to use it