15#include <ROOT/RDataFrame.hxx>
42 InputSpec{
"candidates",
"AOD",
"DZEROFLAGGED"},
58 auto h1 = candidates.Filter(
"(bool)(cand_type_ML & 0x1)").Histo1D(
"inv_mass_ML");
66 auto delta = [](
float x,
float y) {
return x -
y; };
79 auto deltas = combinations.Filter(
"d0_cand_type_ML & 0x1 && d0bar_cand_type_ML & 0x1")
80 .Define(
"delta_phi", delta, {
"d0_phi_cand_ML",
"d0bar_phi_cand_ML"})
81 .Define(
"delta_eta", delta, {
"d0_eta_cand_ML",
"d0bar_eta_cand_ML"});
82 auto h2 = deltas.Histo1D(
"delta_phi");
83 auto h3 = deltas.Histo1D(
"delta_eta");
88 TFile
f(
"result.root",
"RECREATE");
89 h1->SetName(
"InvariantMass");
91 h2->SetName(
"DeltaPhi");
93 h3->SetName(
"DeltaEta");
ROOT::RDataFrame doSelfCombinationsWith(std::unique_ptr< framework::TableConsumer > &input, std::string name="p", std::string grouping="eventID")
ROOT::RDataFrame doSingleLoopOn(std::unique_ptr< framework::TableConsumer > &input)
Do a single loop on all the entries of the input table.
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
AlgorithmSpec::ProcessCallback adaptStateless(LAMBDA l)
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
WorkflowSpec defineDataProcessing(ConfigContext const &specs)
This function hooks up the the workflow specifications into the DPL driver.