ujphys / 4lMET_Ana

.
0 stars 0 forks source link

Rewrite code so largest histogram is always at the back #20

Open rsamconn opened 3 weeks ago

rsamconn commented 2 weeks ago

Can use a THStack: https://root.cern.ch/doc/master/classTHStack.html

Create a THStack Loop through mH masses:

  1. Create histogram name
  2. Get() histogram
  3. Add it to the THStack Draw the stack with the default draw option
rsamconn commented 2 weeks ago

When using THStack with the "nostack" draw option, the histograms will always be drawn in the order they are added to THStack, with most recent at the front. Thus, if a larger histogram is added after a smaller one, it will cover the smaller.

So it may still be worth using the loop over histograms function Loan used. Sending this task to backlog for now.