SLAC PEP-II
BABAR
SLACRAL
Babar logo
SPIRES E S & H Databases PDG arXiv
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Home
Workbook
 1. Introduction
 2. Accnt. Setup
 3. QuickTour
 4. Packages
 5. Modules
 6. Event Info.
 7. Tcl Cmds.
 8. Editing
 9. Comp.+Link
 10. Run the Job
 11. Debugging
 12. Parameters
 13. Tcl Files
 14. Find Data
 15. Batch
 16. Analysis
 17. ROOT I
Additional Info.
 Other Resources
 BABAR
 Unix
 C++
 SRT/CVS Cmds.
 SRT/CVS Dev.
 Sim/Reco
 CM2 NTuples
 Root II, III
 PAW I, II
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator

(More checks...)

This Quicktour help page is intended to help you if you get stuck in the Quicktour.

A Summary of Quicktour Commands

The following is a summary of the commands used in the Quicktour, with a minimum of explanation. A few commands are in a different order than in the Quicktour, but the result is exactly the same.

Commands needed to set up and run the job

Go to your home directory:
    > cd
    
Create a test release:
    > newrel -s $BFROOT/build/<first_letter>/<username> -t analysis-42 ana42
    
Change into the test release directory:
    > cd ana42
    
Do srtpath and cond22boot:
    ana42> srtpath <enter> <enter>
    ana42> cond22boot
    
Addpkg workdir and BetaMiniUser:
    ana42> addpkg workdir
    ana42> addpkg BetaMiniUser
    
Check the Extra Tags page, and add the tag(s) listed under "core bug fixes". For analysis-42, there are no "core bug fixes," so we skip this step. Set up workdir:
    ana42> gmake workdir.setup
    
Find your FDID numbers:
    ana42> GetFDID
    
Create your .bbobjy file:
    ana42> echo "FD_NUMBER = ****" > .bbobjy
    
where **** is one of the 4-digit FDID numbers assigned to you. "Edit" some BetaMiniUser code:
    ana42>  cp $BFROOT/www/doc/workbook/examples/ex0/* BetaMiniUser/ 
    ana42>  mv BetaMiniUser/snippet.tcl workdir/
    
Compile and link your code:
    ana42> bsub -q bldrecoq -o all.log gmake all
    
Go to workdir:
    ana42> cd workdir
    
Start the job:
    ana42/workdir> BetaMiniApp snippet.tcl
    
Talk to an input module:
    > mod talk KanEventInput
    
Add a collection to the input list:
    KanEventInput> input add /store/SP/R18/001237/200309/18.6.0b/SP_001237_013238
    
Exit KanEventInput:
    KanEventInput> exit
    
Start the job, and run 40 events:
    > ev beg -nev 40
    
Exit the framework:
    > exit 
    

ROOT Commands

Start a ROOT session from workdir:

    workdir> bbrroot
    
Open the file myHistogram.root:
    root[0] TFile f("myHistogram.root");
    
View the contents of myHistogram.root:
    root[1] f.ls();
    
View the QExample histogram:
    root[2] h1d3->Draw();
    
Exit ROOT:
    root[3] .q
    


Back to Workbook Quicktour


[Workbook Author List] [Old Workbook] [BaBar Physics Book]

Valid HTML 4.01! Page maintained by Adam Edwards

Last modified: December 2007