19auto filename = 
gROOT->GetTutorialDir() + 
"/analysis/dataframe/df017_vecOpsHEP.root";
 
   33   TH1F h(
"pt", 
"pt", 16, 0, 4);
 
   36      for (
auto i=0U;i < px.GetSize(); ++i) {
 
   37         if (E[i] > 100) 
h.Fill(sqrt(px[i]*px[i] + py[i]*py[i]));
 
   48      for (
auto i=0U;i < px.
size(); ++i) {
 
   55   f.Define(
"pt", 
CalcPt, {
"px", 
"py", 
"E"})
 
   63      auto pt = sqrt(px*px + py*py);
 
   66   f.Define(
"good_pt", 
CalcPt, {
"px", 
"py", 
"E"})
 
   73   f.Define(
"good_pt", 
"sqrt(px*px + py*py)[E>100]")
 
   74    .Histo1D({
"pt", 
"pt", 16, 0, 4}, 
"good_pt")->DrawCopy();
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
 
reference emplace_back(ArgTypes &&...Args)
 
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
1-D histogram with a float per channel (see TH1 documentation)
 
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
 
constexpr Double_t E()
Base of natural log: .