Fork me on GitHub

Changes between Version 6 and Version 7 of WorkBook/Tutorials/Student


Ignore:
Timestamp:
Sep 8, 2019, 12:51:47 PM (5 years ago)
Author:
Michele Selvaggi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/Tutorials/Student

    v6 v7  
    5252Likewise explore the Tree content by looking at other branches.
    5353
    54 Non trivial information can also be plotted from the command line. Every Delphes object has a 4-vector (called P4()) member of type TLorenzVector (see here for documentation: https://root.cern.ch/doc/master/classTLorentzVector.html)
     54Non trivial information can also be plotted from the command line.
     55
     56{{{
     57TFile *f = TFile::Open("data.root");
     58TBrowser browser;
     59f->Get("Delphes")->Draw("Electron.PT");
     60}}}
     61
     62Some information is not directly accessible from the browser interface but can nevertheless be access via command line. Every Delphes object has a 4-vector (called P4()) member of type TLorentzVector (see here for documentation: https://root.cern.ch/doc/master/classTLorentzVector.html)
     63
     64So for example to plot the magnitude of the 3-momenta of the jets, or the jet invariant mass:
     65
     66{{{
     67f->Get("Delphes")->Draw("Jet.P4().P()");
     68f->Get("Delphes")->Draw("Jet.P4().M()");
     69}}}
     70