/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Namespaces
DybDbi Namespace Reference

Concept Helper class for context manipulations More...

Namespaces

namespace  cleaner
namespace  csv_tools
namespace  csvrw
namespace  dbicopy
namespace  dbspin
namespace  dbwrite_orphan
namespace  desc
namespace  dummy
namespace  fakeRG
namespace  ilookup
namespace  mapper
namespace  mapr
namespace  pariahRG
namespace  physad
namespace  propagate_grouping
namespace  rationalize
namespace  rationalizeRG
namespace  rollback
namespace  test_csv_tools
namespace  test_csvrw
namespace  test_dbi_level_RG
namespace  test_dbi_scan_RG
namespace  test_mapper
namespace  test_mapr
namespace  test_rationalize
namespace  test_svc_level
namespace  test_svc_level_RG
namespace  test_vld_groups
namespace  TimeStampExt
namespace  tools
namespace  vld
namespace  vrb
namespace  vrec
namespace  wrap

Detailed Description

Concept Helper class for context manipulations

Concept Hub class to facilitate access to Dbi singletons from python

Providing * decoding of string representation of a ctx eg Site.kAll,SimFlag.kMC,TimeStamp.kNOW,DetectorId.kUnknown * ctx change tracking * ctx updating by string

NB AVOID DUPLICATION BETWEEN DbiWrt DbiRpt ... PUT COMMON THINGS IN DbiCtx

Providing

DybDbi python package provides access to most Dbi functionality,  
with generation of classes based on .spec files and wrapping of the 
python classes for easier usage,  enabling access to model objects via::
 
   from DybDbi import GCalibPmtSpec
   from DybDbi import *


Example of introspecting the specification::

   sk = GCalibPmtSpec.SpecKeys().aslist()    # list of row names
   sk
     ['PmtId',
      'Describ',
      'Status',
     ...

   sl = GCalibPmtSpec.SpecList().aslod()    # list of row maps ... list-of-dict 
   sl
     [{'code2db': '',
       'codetype': 'int',
       'dbtype': 'int(11)',
       'description': '',
       'legacy': 'PMTID',
       'memb': 'm_pmtId',
       'name': 'PmtId'},
      ...

   sm = GCalibPmtSpec.SpecMap().asdod()     # map of row maps, keyed by name    dict-of-dict
   sm
         {'AfterPulseProb': {'code2db': '',
                             'codetype': 'double',
                             'dbtype': 'float',
                             'description': 'Probability of afterpulsing',
                             'legacy': 'PMTAFTERPULSE',
                             'memb': 'm_afterPulseProb',
                             'name': 'AfterPulseProb'},
       ...

   sm['TimeOffset']['description']    # access any aspect of spec "matrix" directly by name
        'Relative transit time offset'


   sk = cls.SpecKeys().aslist()
   sm = cls.SpecMap().asdod()
   for k in sk:
       print sm[k]



| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:24 for DybDbi by doxygen 1.7.4