Difference: MakeDPDs (r5 vs. r4)


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 The compiled code talke up about 15M of disk scratch 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 amount of code to material that will be contained in these directories is large. accessed from lxplus and therefore jobs can be submitted to lxbatch. The current version of data disks on the MSU cluster cannot be seen from lxplus. If you do not have enough AFS space put the code at on the time this note was written was 13.0.40. 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/cern.ch
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/cern.ch/atlas/groups/PAT/Tutorial/EventViewGroupArea/EVTags-"

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/cern.ch/sw/contrib/CMT/v1r20p20080222/mgr/setup.sh

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 setup.sh -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 setup.sh -tag=13.0.40,groupArea

For TopPhysTools

cd PhysicsAnalysis/TopPhys/TopPhysTools/cmt
source setup.sh
cmt bro make

For TopPhysDPDMaker

cd PhysicsAnalysis/TopPhys/TopPhysDPDMaker/cmt
source setup.sh
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 setup.sh -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 ElectroweakD3PD_topOptions.py 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/cern.ch/atlas/maxidisk/d66/AOD.019335._00001.pool.root.4']

Run athena:

$> athena share/ElectroweakD3PD_topOptions.py &> 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

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