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