Purpose
Run Physics software to analyze the simulated and data events.
Input
CM2 collections for data, MC, or skims.
Output
This is up to the user. Typically it is an hbook or root file with variables for
analysis. However in the CM2 era, you might want to consider doing a smart 'reskimming'
and use the UsrData technology to keep connections between floats/integers
(typical analysis variables) and the Beta candidates in the collections. See
the section on user data for
more details.
Requirements
- A working production release. Check the AnalTools-hn forum
for the latest recommended release.
- A collection for data or MC events
- A tcl file to configure correctly the I/O (see the example below).
Example
In the following $ is the shell prompt, the lines with # are comments,
and 14.3.2b is chosen as an example production release.
# setup a new test release
$ newrel -s $BFROOT/work/your_username_initial/your_username -t 14.3.2b my-14.3.2b
$ cd my-14.3.2b
# setup your path
$ srtpath <enter> <enter>
# setup the correct condition database
$ cond14boot
# checkout the workdir package
$ addpkg workdir
$ cd workdir
$ gmake setup
Next, you must create a tcl snippet with your favorite options for each job
you want to run.
Here is an example mybeta.tcl:
# -------- mybeta.tcl: begin -----------
lappend inputList /store/SP/R14/001237/200309/14.3.1c/SP_001237_000533
set levelOfDetail "cache"
set ConfigPatch "MC"
set BetaMiniTuple "root"
set histFileName "myBeta.root"
sourceFoundFile BetaMiniUser/MyMiniAnalysis.tcl
# -------- mybeta.tcl: end -----------
As you can see the tcl snippet is quite simple, it just sets a few configuration parameters specific to a particular job you would like to run:
- append inputList XXX - add a collection to the list of those to use for input
- levelOfDetail - choose the level of detail: cache, refit, etc.
- ConfigPatch - choose the correct config patch: MC for simulation, Run1 for run1 data and Run2 for run2-4 data
- BetaMiniTuple - choose between the hbook and root format for ntuples
- histFileName - the name of the output hbook or root nutple file
The full set of options is described in
BetaMiniUser/MyMiniAnalysis.tcl.
You are now ready to run:
$ BetaMiniApp mybeta.tcl
This will run a sample physics analysis module.
More detail on configuring BetaMini applications for your specific analysis
can be found in the section on accessing
the mini with Beta.