You are here: Foswiki>AtlasSingleTop Web>MakeDPDs (revision 6)EditAttach


This describes how to make the DPDs necessary for our analysis. The DPDs are made with the TopPhysDPDMaker, which relies on the TopViewTools package. This is the successor to TopView for ATHENA versions 13 and greater. The instructions are for the MSU cluster at CERN.

Workspace Setup


Information for the workspace setup was taken from following:

Top Physics DPD Maker - Getting Started

ATLAS Workbook - Account Setup

Setup CMT Directory Structure

Create Directories

The compiled code talke up about 15M of disk space and an output root file containing 1000 events takes up another 15M. If you have enough room under AFS, it is better to put the code there since this allows the code to be accessed from lxplus and therefore jobs can be submitted to lxbatch. The data disks on the MSU cluster cannot be seen from lxplus. If you do not have enough AFS space put the code on the data disk. You can still run jobs locally and submit them to the GRID.

The current version of the code at the time this note was written was 13.0.40.
$> mkdir -p TopPhysDPDMaker/cmthome TopPhysDPDMaker/testarea/13.0.40/

Setup CMT

Create a file called "requirements" in the cmthome directory and paste the code listed below into this file.

$> cd TopPhysDPDMaker/cmthome
$> emacs requirements &

Code which goes into requirements (cut and paste):
set SITEROOT /afs/
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist

# use optimised version by default
apply_tag  opt
apply_tag  runtime 
# simple workarea directories
apply_tag  simpleTest
apply_tag  oneTest 
apply_tag  setup
apply_tag  32

# Set the location of your preferred development area
macro ATLAS_GROUP_AREA "/afs/"

macro ATLAS_TEST_AREA "" 13.0.40 "/work/jever/pryan/atlas/TopPhysDPDMaker/testarea/13.0.40/"

use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)

Edit the line
 macro ATLAS_TEST_AREA "" 13.0.40 "/work/jever/pryan/atlas/TopPhysDPDMaker/testarea/13.0.40/"
to correspond to the present version of the code and your directory.

Setup CMT Environment

In the cmthome directory do the following to get version v1r20p20080222 of CMT. Note that this command only works on the CERN cluster.
$> source /afs/

Copy the required scripts into the cmthome directory.
$> cmt config

Set Group Area

This command will has to be executed in each new shell before you start working
$> source -tag=13.0.40,groupArea

Get and Compile Packages

Checkout packages

Go to testarea/13.0.40 directory
$> cd ../testarea/13.0.40

Get packages
$> cmt co -r TopPhysTools-13-00-40-06 PhysicsAnalysis/TopPhys/TopPhysTools
$> cmt co -r TopPhysDPDMaker-00-00-10 PhysicsAnalysis/TopPhys/TopPhysDPDMaker

Compile Packages

The Group Area must be setup before compiling and running (see above). If you have not done so already,
$> source -tag=13.0.40,groupArea

For TopPhysTools
cd PhysicsAnalysis/TopPhys/TopPhysTools/cmt
cmt bro make

For TopPhysDPDMaker
cd PhysicsAnalysis/TopPhys/TopPhysDPDMaker/cmt
cmt bro make

Make D3PDs


TopPhysDPDMaker makes D3PDs, which are flat nTuples similar to those produced previously with TopView. The information in this section was taken from the following pages:

TopPhysDPDMaker Page

D3PD Info Page

IN3P3 DPD Tutorial

Produce an Example D3PD locally

The Group Area must be setup before making the D3PD (see above). If you have not done so already,
$> source -tag=13.0.40,groupArea

In order to produce an ensure that you have completed the above steps correctly, you should produce an example D3PD. Edit the file by commenting out the line
if not "InFileNames"        in dir():      InFileNames = glob.glob("/tmp/ashibata/fdr08*")
and inserting the line
if not "InFileNames"        in dir():      InFileNames = ['/afs/']

Run athena:
$> athena share/ &> ExampleD3PD_local.log

It will take approximately 6 minutes to run over the 1000 events using the machines in the MSU cluster at CERN. A root file called Electroweak.D3PD.aan.root will be produced. To open the root file using root, Version 5.19.04 or later must be used. Earlier versions cannot handle variables stored in a vector. Open up a TBrowser in root and make sure that the variables are filled.

Produce an Example D3PD using lxbatch

-- PatRyan - 30 May 2008
Edit | Attach | Print version | History: r15 | r7 < r6 < r5 < r4 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r6 - 06 Jun 2008, PatRyan

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback