SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Comp. Search
Who's who?
Meetings
FAQ Homepage
Archive
Environment
Administration
New User Info.
Web Info/Tools
Monitoring
Training
Tools & Utils
Programming
C++ Standard
SRT, AFS, CVS
QA and QC
Remedy
Histogramming
Operations
PromptReco
Simulation Production
Online SW
Dataflow
Detector Control
Evt Processing
Run Control
Calibration
Databases
Offline
Workbook
Coding Standards
Simulation
Reconstruction
Prompt Reco.
BaBar Grid
Data Distribution
Beta & BetaTools
Kanga & Root
Analysis Tools
RooFit Toolkit
Data Management
Data Quality
Event display
Event Browser
Code releases
Databases
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

BbkDatasetTcl

The command BbkDatasetTcl produces a TCL file for one or more datasets, rather like skimData -t. For a recent version, use release 14.4.0c or later.

General Options

site  user  dbname  localdsprefix  debug  verbose 

Specific Options

no options  datasets  tcl  start,end  marker,newer,older  basename 

Advanced Connection Options

dbtype  dbserver  dbdriver  dbpass 

Note you can use the these options to connect to a database or you can create a 'site'. Here BbkConnect to find out more.

Specific Options

no options

Like for BbkDatasetHistory a full list of datasets will be printed if BbkDatasetTcl is run without arguments:-

    % BbkDatasetTcl
    % BbkDatasetTcl: 3 datasets found:-
    % AllEventsRun3Conv
    % GridKa.32955-36172
    % ...

Most of the dataset names should be self-explanatory. For SP datasets, you can use BbkSPModes to determine the relevant "mode numbers" and other information.

datasets

This option accepts a list of comma separated datasets names. If specified alone this option will only return the name of the datasets. If specified with tcl option it will create a (set) of tcl files.

    % BbkDatasetTcl --datasets AllEventsRun3Conv

tcl

To generate a TCL file, specify one or more of these dataset names on the command line, eg.

    % BbkDatasetTcl --datasets AllEventsRun3Conv --tcl

this is equivalent to the skimData command

    % skimData -t -G good_run3.txt -s Jpsitoll --tableprefix=objy

BbkDatasetTcl creates a TCL file named after the first-specified dataset (eg. AllEventsRun3Conv). A different output file name may be specified with the -t option (-t- prints the output on standard output).

    % BbkDatasetTcl --datasets AllEventsRun3Conv --tcl [MAXEVTS[,SEQNO]]

is also like skimData the difference being that it creates a tcl (if there are no arguments) or a series of tcl for each dataset selected. The number of events in each tcl files (if the MAXEVT argument is given, is exactly the one selected.

A one-line summary of everything selected is reported at the end.

    % BbkDatasetTcl --tcl --datasets AllEventsRun1 --site local
    % Selected 22 collections, 163588/163588 events, 9.1/nb

start, end

    % BbkDatasetTcl -e 2003/11/27-12:00 AllEventsRun3Conv

This allows one to obtain the state of the dataset as it was at any time in the past. The -s option will only include collections added since that date (cannot account for removed collections).

marker, newer, older

    % BbkDatasetTcl --datasets AllEventsRun3Conv --marker

will create a marker file with the date of the current selection and the datasets selected. The info is stored in $HOME/.bbk/BbkDatasetTcl/lastsession.sav.

    % BbkDatasetTcl --datasets AllEventsRun3Conv --newer

will try to read the marker file, if it exist and return only the newer entries for the same datasets.

    % BbkDatasetTcl --datasets AllEventsRun3Conv --older

will try to read the marker file, if it exist and return only the older entries for the same datasets.

This options are not compatible with --end --start if called together the program exit.

basename

    % BbkDatasetTcl --datasets AllEventsRun3Conv --basename [FILENAME]

this is to have all the DS selected in a tcl file or a series of tcl files with the same name as FILENAME

If more than one Ds is selected to go in the same tcl the user is warned of the dangerousness of what he is doing but the program doesn't exit.

See the help display from BbkDatasetTcl -h for details of the command options.