14 using FourVector = ROOT::Math::XYZTVector; 15 using FourVectors = std::vector<FourVector>; 16 using CylFourVector = ROOT::Math::RhoEtaPhiVector; 17 void fill_tree(const char *filename, const char *treeName) 19 TFile f(filename, "RECREATE"); 20 TTree t(treeName, treeName); 25 for (int i = 0; i < 50; ++i) { 37 fileName =
'tdf004_cutFlowReport_py.root' 39 ROOT.gInterpreter.Declare(fill_tree_code)
40 ROOT.fill_tree(fileName, treeName)
44 TDF = ROOT.ROOT.Experimental.TDataFrame
45 d = TDF(treeName, fileName)
50 filtered1 = d.Filter(
'b1 > 25',
'Cut1')
51 filtered2 = d.Filter(
'0 == b2 % 2',
'Cut2')
53 augmented1 = filtered2.Define(
'b3',
'b1 / b2')
54 filtered3 = augmented1.Filter(
'b3 < .5',
'Cut3')