ATLAS Offline Software
Loading...
Searching...
No Matches
python.FilePeekerLib Namespace Reference

Classes

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

Functions

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

Variables

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

Function Documentation

◆ _create_file_infos()

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

Definition at line 29 of file FilePeekerLib.py.

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

◆ _import_ROOT()

python.FilePeekerLib._import_ROOT ( )
protected

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

Definition at line 17 of file FilePeekerLib.py.

17def _import_ROOT():
18 import ROOT
19 ROOT.gROOT.SetBatch(True)
20 return ROOT
21

◆ toiter()

python.FilePeekerLib.toiter ( beg,
end )

Definition at line 23 of file FilePeekerLib.py.

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

Variable Documentation

◆ __author__

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

Definition at line 8 of file FilePeekerLib.py.

◆ __doc__

str 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.