|
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
Page maintained by Adam Edwards
Last modified: December 2007
|