ATLAS Offline Software
Classes | Functions | Variables
python.FilePeekerLib Namespace Reference

Classes

class  FilePeeker
 
class  FilePeekerSvc
 
class  sg_versioned_key
 classes -----------------------------------------------------------------— More...
 

Functions

def _import_ROOT ()
 helper functions -------------------------------------------------------— More...
 
def toiter (beg, end)
 
def _create_file_infos ()
 

Variables

string __author__ = "Sebastien Binet"
 
string __doc__ = "provide components to peek into pool files"
 
 StatusCode = PyAthena.StatusCode
 

Function Documentation

◆ _create_file_infos()

def python.FilePeekerLib._create_file_infos ( )
private
simple helper function to create consistent dicts for in-file metadata

Definition at line 31 of file FilePeekerLib.py.

31 def _create_file_infos():
32  """simple helper function to create consistent dicts for in-file metadata
33  """
34  d = {
35  'nentries' : 0, # to handle empty files
36  'run_number': [],
37  'run_type': ['N/A'],
38  'evt_type': [],
39  'evt_number': [],
40  'lumi_block': [],
41  'mc_channel_number': [],
42  'beam_type': ['N/A'], # XXX fixme
43  'beam_energy': ['N/A'], # XXX fixme
44  'stream_tags': [],
45  'metadata_items': [],
46  'eventdata_items': [],
47  'stream_names': None,
48  'geometry': None,
49  'conditions_tag': None,
50  'det_descr_tags': None,
51 
52  'metadata': {},
53  'tag_info': {},
54  }
55  return d
56 

◆ _import_ROOT()

def python.FilePeekerLib._import_ROOT ( )
private

helper functions -------------------------------------------------------—

Definition at line 19 of file FilePeekerLib.py.

19 def _import_ROOT():
20  import ROOT
21  ROOT.gROOT.SetBatch(True)
22  return ROOT
23 

◆ toiter()

def python.FilePeekerLib.toiter (   beg,
  end 
)

Definition at line 25 of file FilePeekerLib.py.

25 def toiter(beg,end):
26  while beg != end:
27  yield beg.__deref__()
28  beg.__preinc__()
29  return
30 

Variable Documentation

◆ __author__

string python.FilePeekerLib.__author__ = "Sebastien Binet"
private

Definition at line 8 of file FilePeekerLib.py.

◆ __doc__

string python.FilePeekerLib.__doc__ = "provide components to peek into pool files"
private

Definition at line 9 of file FilePeekerLib.py.

◆ StatusCode

python.FilePeekerLib.StatusCode = PyAthena.StatusCode

Definition at line 13 of file FilePeekerLib.py.

python.FilePeekerLib._create_file_infos
def _create_file_infos()
Definition: FilePeekerLib.py:31
python.FilePeekerLib.toiter
def toiter(beg, end)
Definition: FilePeekerLib.py:25
python.FilePeekerLib._import_ROOT
def _import_ROOT()
helper functions -------------------------------------------------------—
Definition: FilePeekerLib.py:19