ATLAS Offline Software
Control/xAODDataSource/python/Helpers.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
2 
3 # Necessary import(s).
4 import ROOT
5 
6 def MakexAODDataFrame( inputs ):
7  """Helper function creating a ROOT::RDataFrame object reading xAOD files
8 
9  The function returns an instance of ROOT::RDataFrame that uses
10  xAOD::RDataSource for reading its inputs.
11 
12  Keyword arguments:
13  inputs -- A single string, or a list of string selecting the input file(s)
14  Note that the string(s) may contain wildcards and environment
15  variables as well.
16  """
17 
18  # Make sure that the dictionary is loaded.
19  ROOT.xAOD.ROOT6_xAODDataSource_WorkAround_Dummy()
20 
21  # Use the C++ function for the heavy lifting.
22  return ROOT.xAOD.MakeDataFrame( inputs )
python.Helpers.MakexAODDataFrame
def MakexAODDataFrame(inputs)
Definition: Control/xAODDataSource/python/Helpers.py:6