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 __version__ = "$Revision: 668532 $"
 
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 34 of file FilePeekerLib.py.

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

◆ _import_ROOT()

def python.FilePeekerLib._import_ROOT ( )
private

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

Definition at line 22 of file FilePeekerLib.py.

22 def _import_ROOT():
23  import ROOT
24  ROOT.gROOT.SetBatch(True)
25  return ROOT
26 

◆ toiter()

def python.FilePeekerLib.toiter (   beg,
  end 
)

Definition at line 28 of file FilePeekerLib.py.

28 def toiter(beg,end):
29  while beg != end:
30  yield beg.__deref__()
31  beg.__preinc__()
32  return
33 

Variable Documentation

◆ __author__

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

Definition at line 11 of file FilePeekerLib.py.

◆ __doc__

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

Definition at line 12 of file FilePeekerLib.py.

◆ __version__

string python.FilePeekerLib.__version__ = "$Revision: 668532 $"
private

Definition at line 10 of file FilePeekerLib.py.

◆ StatusCode

python.FilePeekerLib.StatusCode = PyAthena.StatusCode

Definition at line 16 of file FilePeekerLib.py.

python.FilePeekerLib._create_file_infos
def _create_file_infos()
Definition: FilePeekerLib.py:34
python.FilePeekerLib.toiter
def toiter(beg, end)
Definition: FilePeekerLib.py:28
python.FilePeekerLib._import_ROOT
def _import_ROOT()
helper functions -------------------------------------------------------—
Definition: FilePeekerLib.py:22