Pixel dE/dx Fast Monitoring TWiki page

In this wiki we collect some information about running the Pixel dE/dx Fast Monitoring code in order to produce the ntuples with the relevant events for the Pixel dE/dx analysis. This is part of the ATLAS Fast Physics Monitoring, so please first read the FastPhysicsMonitoring documentation, in particular the AOD based section (FastPhysicsAODMon ).

How to modify the code

The updated code is stored in svn: https://svnweb.cern.ch/trac/atlasoff/browser/PhysicsAnalysis/FastPhysMonitoring/FastPhysMonSusy. To modify and run the code open a terminal on lxplus (preferable on SLC6 machine) and follow the next steps:

  • Create your working directory and cd into it
  • Prepare the Athena setup: > asetup 17.2.4.2,slc5 here
  • Download the code: > cmt co PhysicsAnalysis/FastPhysMonitoring/FastPhysMonSusy

Now you have the entire code structure in your working directory. Probably if you want to modify or add some new functionality, you need to look:

  • PhysicsAnalysis/FastPhysMonitoring/FastPhysMonSusy/src/FastPhysMonPixeldEdxTool.cxx (contains the main analysis routine)
  • PhysicsAnalysis/FastPhysMonitoring/FastPhysMonSusy/share/FastPhysMonPixeldEdx_jobOptions.py (the python jobOptions file. In this file you can set some selections and cuts, different for each stream. In particular you can set the list of triggers useful for the analysis).

To compile the code, you have to go in PhysicsAnalysis/FastPhysMonitoring/FastPhysMonSusy/cmt/ and build this package:

> cmt config

> gmake

How to run the code in Athena

When you are ready to run the code, you need a pathena/GRID setup, so place the terminal in your working folder (at the top of the folder PhysicsAnalysis) and type the commands:

> asetup 17.2.4.2, here

> source /afs/cern.ch/atlas/offline/external/GRID/DA/panda-client/latest/etc/panda/panda_setup.sh

...and launch the fast monitoring program:

> pathena --trf "Reco_trf.py inputAODFile=%IN outputNTUP_FASTMONFile=%OUT.yourname.pool.root autoConfiguration=everything --ignoreerrors=True" --inDS="DatasetName" --outDS="user.yourname.FastPhysMon.001" --nGBPerJob=MAX  --mergeOutput

Replace "yourname" with your user name on lxplus and "DatasetName" with the data set name you want to run on. You can download the produced ntuples with DQ2.

Use DQ2 and download the ntuples

In a new (clean) terminal on lxplus type:

> source /afs/cern.ch/atlas/offline/external/GRID/ddm/DQ2Clients/setup.sh

> voms-proxy-init -voms atlas

Now search your ntuples with the command

> dq2-ls ntuplesname

and download using

> dq2-get ntuplesname

Various

Web page with histograms: https://atlas.web.cern.ch/Atlas/fastphys/fastmon/
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2013-11-14 - PaoloDondero
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback