ATLAS Offline Software
Loading...
Searching...
No Matches
MakeDataFrame.cxx
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3//
4
5// Local include(s).
7
8#include "RDataSource.h"
9
10// System include(s).
11#include <memory>
12
13namespace xAOD {
14
15ROOT::RDataFrame MakeDataFrame(std::string_view fileNameGlob,
16 std::string_view treeName, bool verboseOutput,
17 TEvent::EAuxMode auxmode) {
18
19 auto source = std::make_unique<RDataSource>(fileNameGlob, treeName);
20 source->setVerboseOutput(verboseOutput);
21 source->setAuxMode(auxmode);
22 return ROOT::RDataFrame(std::move(source));
23}
24
25ROOT::RDataFrame MakeDataFrame(const std::vector<std::string>& fileNames,
26 std::string_view treeName, bool verboseOutput,
27 TEvent::EAuxMode auxmode) {
28
29 auto source = std::make_unique<RDataSource>(fileNames, treeName);
30 source->setVerboseOutput(verboseOutput);
31 source->setAuxMode(auxmode);
32 return ROOT::RDataFrame(std::move(source));
33}
34
35} // namespace xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
ROOT::RDataFrame MakeDataFrame(std::string_view fileNameGlob, std::string_view treeName, bool verboseOutput, TEvent::EAuxMode auxmode)
Helper function for creating an xAOD reading data frame.