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

In This Package:

Public Member Functions | Public Attributes
Scraper::daq::runinfo::CalibRunInfo Class Reference
Inheritance diagram for Scraper::daq::runinfo::CalibRunInfo:
Inheritance graph
[legend]
Collaboration diagram for Scraper::daq::runinfo::CalibRunInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 run
 partition
 cri
 ever more than one ?

Detailed Description

Definition at line 130 of file runinfo.py.


Constructor & Destructor Documentation

def Scraper::daq::runinfo::CalibRunInfo::__init__ (   self,
  run,
  partition,
  source,
  target 
)

Definition at line 131 of file runinfo.py.

00132                                                         :
00133         BaseInfo.__init__(self, source, target)
00134         self.run = run
00135         self.partition = partition         ## eg eh1-ad2


Member Function Documentation

def Scraper::daq::runinfo::CalibRunInfo::__call__ (   self)
#. use partition to look up the folder id
#. read run entry corresponding to the folder id 
#. caution imposing primary_key on delinquent no-PK table ``data_table_only_?_1``

Errors, use of ``one`` means:
 
#. 0 or >1 of the ``fld_id`` raises an exception , **OR IS THAT A RECOVERABLE ERROR ?**
#.  

Definition at line 136 of file runinfo.py.

00137                       :
00138         """
00139         #. use partition to look up the folder id
00140         #. read run entry corresponding to the folder id 
00141         #. caution imposing primary_key on delinquent no-PK table ``data_table_only_?_1``
00142 
00143         Errors, use of ``one`` means:
00144  
00145         #. 0 or >1 of the ``fld_id`` raises an exception , **OR IS THAT A RECOVERABLE ERROR ?**
00146         #.  
00147 
00148         """
00149         kft = self.source.kls_("folders_tbl")  
00150         daq = self.source()
00151 
00152         fld_id, = daq.query(kft.fld_id).filter(kft.fpath == '/ONASIC_DATA/RunParams/ACUParams_%s' % self.partition ).one()   ## ever more than one ? 
00153         kto = self.source.kls_("data_tbl_onl_%s_1" % fld_id , primary_key=("RunNumber",))   
00154         cri = daq.query(kto).filter(kto.RunNumber == self.run).one()
00155         self.cri = cri  
00156 
00157 
00158 
00159 
00160 


Member Data Documentation

Definition at line 131 of file runinfo.py.

Definition at line 131 of file runinfo.py.

ever more than one ?

Definition at line 147 of file runinfo.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:03 for Scraper by doxygen 1.7.4