QMUL SuperB analysis FAQ Page

SuperB Analysis FAQ

Accounts

You will need to obtain accounts locally, and may also need to obtain accounts at CNAF and on the SuperB LDAP system. Once you have the necessary accounts set up you can start working with the code.

Starting with FastSim

The SuperB Fast Simulation programme is installed on the students machine, and also at CNAF. This programme is used to generate simulated Monte Carlo samples with which to study detector design and physics issues for the SuperB project. First you will need to log into a computer that has FastSim installed. Having done that you can check out a release, and follow the necessary instructions for compiling the programme you need to use (if this is not already compiled in the release). The third step is to then run the simulation. You will find detailed instructions on how to start using FastSim at the following locations:

For the FastSim release V0.2.3 (and above) you need to run the following commands to set up a release:

   setenv ROOTVER 5.26                        [using a bash shell, type 'export ROOTVER=5.26' instead]
   sbnewrel -d V0.2.3_test -r FastSim/V0.2.3
   sbsrtpath [return][return]
   cd V0.2.3_test/ReleaseFiles
   svn update
   cd ../
   SvnTools/addpkg -f ReleaseFiles/Patches_devel
   gmake clean
   gmake lib PacMC.bin
On completion of this step, you should have successfully recompiled the release, and can then follow instructions below for compiling tau->3mu, B->hh, Generating single particles.

Setting up your environment at QM

In order to start using the FastSim programme, just as in the case of CNAF, one has to set the environment up in order to specify where your shell will find the appropraite start up scripts. The following will do this for you:

       export ROOTVER=5.26
       export SBROOT=/opt/exp_software/superb/
       source $SBROOT/bin/superb-env.sh
       export SVNROOT=https://sbrepo.pd.infn.it:8910
       mkdir FastSim 
       cd FastSim
       sbnewrel -d V0.2.4_test -r FastSim/V0.2.4
       cd V0.2.4_test
       sbsrtpath
       gmake installdirs
       gmake workdir.setup
Having done that, one should be able to add packages as normal, e.g.
       sbaddpkg PacUser
The binaries will work out of the box, so as long as you don't need to modify code, and are content to simply modify any tcl configuration files, then this minimal set up should be sufficient for your requirements.

Generating tau->3mu events

The PacTauUser package contains a reconstruction sequence for the decay tau->3mu. In order to use this sequence to generate events you will need to run the following commands from a FastSim release to compile the PacTauUserApp programme.

       gmake PacTauUser.lib
       gmake PacTauUser.bin
[note that if you have checked out a number of packages and modified their code, you may need to replace the first line with gmake lib]. If the programme has been compiled correctly you will see the following files:
       lib/*/libPacTauUser.a
       bin/*/PacTauUserApp
If these do not appear, please fix the compile problem and re-compile. From the workdir in your release you will be able to run the following command and generate tau->3mu signal MC.
       PacTauUserApp ../PacTauUser/example_tau3mu.tcl
If this programme has worked correctly, you will see a new file in the workdirectory called pacTau3Mu_10K_INMAPS.root. The file should be renamed to something appropriate, for example: tau3mu.root. There is a background MC tcl setup for ue with the SuperB production code. This is PacTauTo3MuSequence.tcl.

Generating B->hh events

The package PacTwoBodyUser instructions has been prepared in order to study different types of B->hh final states (h=pi+/-, K+/-, pi0, K0). In order to compile this package one must

       gmake PacTwobodyUser.lib
       gmake PacTwobodyUser.bin
[note that if you have checked out a number of packages and modified their code, you may need to replace the first line with gmake lib]. and if this is successful you will find the following files exist:
       lib/*/libPacTwoBodyUser.a
       bin/*/PacTwoBodyUserApp
Having successfully compiled the programme, you can generate events by running the following command from your workdir
       PacTwoBodyUserApp ../PacTwoBodyUser/example_PiPi.tcl
for B0 -> pi+ pi-, or change the example tcl file to generate any of the other modes of interest (See PacTwoBodyUser instructions for details.

Generating events using a particle gun

Please take a look at the following URL for information on how to do this: Generating events using a particle gun.

Changing tcl parameters

There are a number of useful tcl parameters (or FwkCfgVars [Framework Configuration Variables]) that can be modified in order to change the number of events generated, filename etc. These will be found in the example_XYZ.tcl files. The most useful ones are:

The analysis sequence file will contain a number of other useful variables, including the decay file type to use in the generation. For example, in the tau-3mu sequence file: PacTauUser/Tau3MuSequence.tcl, the following may be of interest: and in changing the generated background type of events, you will find a number of examples at the following link:
here.

Changing the configuration between SuperB baseline and BaBar

In order to change configuration between the SuperB baseline and BaBar configurations for simulation, there are two steps to take (assuming that you have a working FastSim release having followed steps in Starting with FastSim:

Changing the detector configuration

If you want to change between the BaBar and SuperB detectors, please see
Changing the configuration between SuperB baseline and BaBar. If however you are interested in changing the sub-detector configuration file used for a sub-system or part thereof, please read on. The packages PacDetector and PacTRK are relevant for the detector and tracking detector descriptions in FastSim. You can follow the detector geometry used at any time by reading the tcl file PacDetector/pacrat_SuperB.xml or the corresponding file set to DetectorConfig in your PacMC/PacMC.tcl if you modified that value. The tracking detectors are described in PacTrk and this is split into two sub-detectors: the Silicon Vertex Tracker (prefix Si_) and the Drift Chamber (prefix Dch_). If you want to change the type of silicon detector that is used for event generation, please modify the line with:
             include file="PacTrk/Si_SuperB_Geom.xml" 
in PacTrk/Si_SuperB.xml so that this refers to the geometry that you would like to use. For example, the Si_SuperB_Geom_inmap_long_barrel.xml for a long barrel pixel detector, or Si_SuperB_Geom_inmap_lampshade.xml for a lampshade pixel detector.

Other resources

There are a number of other useful documents available online for SuperB. The following wiki pages may be of use to you:

In addition to the above wiki pages, past meetings are documented here, and documents on the project and physics can be found at the following section of the wiki: Physics Documentation.


This webpage is maintained by Adrian Bevan.
The QMUL SuperB web page also has a number of useful links.