You are here: Foswiki>AtlasSingleTop Web>MakeDPDs (revision 3)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

You should make the following directories somewhere on your scratch space since the amount of material that will be contained in these directories is large. 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 "" \
  12.0.7 "${HOME}/scratch0/athena/12.0.7" \
  13.0.40 "${HOME}/scratch0/athena/13.0.40" 

use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)

Edit the line
 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

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/

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 as vector. Open up a TBrowser in root and make sure that the variables are filled.

-- PatRyan - 30 May 2008
Edit | Attach | Print version | History: r15 | r4 < r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r3 - 04 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