D0 Luminosity Database: Status_Mask Implementation - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

D0 Luminosity Database: Status_Mask Implementation

Description:

... Databases Meeting. March 15, 2004. March 15, 2004. ElizabethGallas -- D0 Luminosity Db. 2. Luminosity Database Schema ... we need to put that Mask into the DB ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 7
Provided by: d0serve
Category:

less

Transcript and Presenter's Notes

Title: D0 Luminosity Database: Status_Mask Implementation


1
D0 Luminosity DatabaseStatus_Mask Implementation
  • Elizabeth Gallas
  • Fermilab Computing Division /
  • D0 Computing and Analysis Group

D0 Databases Meeting March 15, 2004
2
Luminosity Database Schema
3
Tables w/ a STATUS_MASK column
  • Table storing all status masks
  • STATUS_MASK_EXPLAIN
  • Table storing a centralized STATUS_MASK
  • LBN (LBN)
  • Tables with a STATUS_MASK column
  • LSM (LBN_STATUS_MASK)
  • TR (TRANSITION_RECORD)
  • LF (LBN_FACTOR)
  • RF (RANGED_FACTOR)
  • GSM (GROUP_STATUS_MASK)
  • LS (LBN_STREAM)
  • PFC (PRD_FILE_CHK)
  • LT (LBN_TRIGGER)

4
STATUS_MASK Overview
  • Status_Mask - what is it ?
  • indicate something is WRONG with that data
  • we need to put that Mask into the DB
  • we also need to insert related columns that
    conform to DB constraints
  • other types of status should be indicated
    elsewhere
  • Status_Mask Origin
  • lmValidator.py creates the online dictionaries
  • input to the lmDB.py program
  • Status_Mask destination
  • lmDb.py reads dictionary
  • inserts into Luminosity Database
  • Status_Mask users (clients)
  • Luminosity reports
  • lmAccess
  • luminosity group studies of bad information

5
STATUS_MASK Implementation
  • lmVal -- they are dictionary location specific
  • consist of
  • dictionary key
  • brief explanation (string)
  • lmDb put it into the appropriate DB table(s)
  • STATUS_MASK_EXPLAIN
  • MASK_TYPE pointer to other table name
  • BIT_POSITION a unique identifier for that
    MASK_TYPE
  • BIT_DESC brief explanation (string)
  • main LBN table (?)
  • allows us to quickly scan for good LBNs
  • specific other table
  • The case we have right now is LBN_TRIGGER table

6
Database considerations
  • A table with Status_Mask
  • may have any number of unique SMasks
  • need to pack many of them into a single column
  • historically, we would set bits in a n-bit word
    (bitmask)
  • clients need to quickly parse that word for
    specific conditions
  • In a DB?
  • string types can be searched using the like
    clause, while a masked bit would have to be
    parsed by some program.
  • STATUS_MASK in LBN table
  • LT.1TR.3
  • STATUS_MASK in LBN_TRIGGER table
  • 1
  • STATUS_MASK in TRANSITION_RECORD table
  • 3
  • DB experts may comment
Write a Comment
User Comments (0)
About PowerShow.com