Project Help

Did everyone find this helpful site?:

Also, does anyone know to what we are applying the triggers, exactly? If you use the command Mike told Elim earlier
It does not work. I set the branch address for "invariant mass" but the error message is:
"unknown branch. Can't call TH1F::Draw"
Suggestions, anyone?

3 thoughts on “Project Help

  1. Oops, sorry for some reason about half of my post was deleted. The command that I used (which came from the “mytree->Draw” command we discussed earlier) was h1->Draw(“invariantmass”,”invariantmass<200&&trg_L1MuOpen==1"), where h1 is the name of the histogram and I have set the branch address for invariant mass.
    The error I receive is "unknown branch: Can't call TH1F::Draw".

  2. You can load the trg branches just like you load the mu_* branches, and then, after you calculate the inv mass, use the C++ if statement to just fill the histograms for those events that satisfy that particular trg, something like:

    if (trg_blah == 1) hinv->Fill(invm);

    this would be equivalent to doing


    from the command line if you had the invariantmass variable in there.

    Additional hint: use the double muon trigger.

  3. the idea is that once you start looping over the events, you check if that event passed a given trigger condition, if it did, you can go ahead and start calculating the invariant mass of the “hard” di-muon system for the event and fill the histo so you can then plot it. Calculating the invariant mass first and then checking for the trigger bit (like in the above comment) is also fine, but it is not optimal because you can save some computing time by not going through the calculation of the invariant mass if that event did not pass the trigger.

Leave a Reply