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-30 ana30
Change into the test release directory:
> cd ana30
Do srtpath and cond18boot:
ana30> srtpath <enter> <enter>
ana30> cond18boot
Addpkg workdir and BetaMiniUser:
ana30> addpkg workdir
ana30> addpkg BetaMiniUser
Check the Extra Tags page, and add the tag(s) listed under "core bug fixes":
ana30> addpkg KanModules V01-07-02-01
Check for dependencies:
ana30> checkdep
Set up workdir:
ana30> gmake workdir.setup
Find your FDID numbers:
ana30> GetFDID
Create a file called .bbobjy file containing the sole line:
FD_NUMBER = ****
where **** is one of the 4-digit FDID numbers assigned to you.
"Edit" some BetaMiniUser code:
ana30> cp $BFROOT/www/doc/workbook/NewExamples/NTrkExample/* BetaMiniUser/
ana30> mv BetaMiniUser/snippet.tcl workdir/
Compile and link your code:
ana30> bsub -q bldrecoq -o all.log gmake all
Go to workdir:
ana30> cd workdir
Start the job:
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 3 events:
> ev beg -nev 3
Run 37 more events, for a total of 40:
> ev cont -nev 37
Exit the framework:
> exit
Other commands used in the Quicktour
Use BbkDatasetTcl to make a tcl file
Produce a tcl file in workdir:
workdir> BbkDatasetTcl -ds SP-1237-Run4
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 NTrkExample histogram:
root[2] h1d3->Draw();
Exit ROOT:
root[3] .q
Return to Quicktour
Author:
Last updated: 2 March 2006
Last significant update: 19 January 2006
|