-- EramRizvi - 22 Apr 2009

Latex

  • spell-check: ispell -d british -t file.tex
  • \gtrsim \lesssim

OSCAR 17.2.0.3

  • ensure after cmt co of OSUserDiMuons the version.cmt file exists
  • use updated JetUncertainties requirements file from mjackson
  • use updated requirements OSUserDiMuons file (from 17.0.3.4)
  • copy source code from OSUserDiMuons 17.0.3.4
  • change "MET_Final" to "MET_RefFinal" in OSUserDiMuons.cxx

Cpp

  • cout
#include <iostream>
using namespace std;
  • printf
std::string chain;
printf(" hello %s \n", string.c_str() )

Makefiles

zsh

  • ls -1 *txt | while read a; do cp $a ~/.; done
  • cat  BlackMax.c | tr '\015' ' ' | awk '{print substr($0,1,length($0)-1)}'  > new.c
  • grep -i "function\|subroutine" fgen113.f
  • sort -k 1 file1>a; sort -k 3 file2>b ; join -t, -1 1 -2 3 
    Files must be sorted! option t to set delimiter character

fortran

      do 10 i = 1, 5
         write(*,1000) (a(i,j), j=1,10)
      10 continue

SVN

  • http://svnbook.red-bean.com/
  • svn import ReviewPaper file:///afs/desy.de/user/r/rizvi/h1/svn/Repository/!ReviewPaper [import ReviewPaper directory into SVN]
  • svn import -m "initial import" trunk svn+ssh://erizvi@svn.cern.ch/reps/atlasgrp/Physics/StandardModel/WZPhysics/Analyses/DrellYan/SupportingDocument/trunk
  • svn co svn+ssh://rizvi@pplxint1.physics.ox.ac.uk/data/atlas/atlasdata/hardy/blackmax ./
  • svn co svn+ssh://rizvi@login.hepforge.org/hepforge/svn/blackmax/ BlackMax/*
  • svn co svn+ssh://rizvi@h1wgs/afs/desy.de/user/r/rizvi/h1/svn/Repository/ReviewPaper
  • svn co svn+ssh://svn.cern.ch/reps/atlasphys/Physics/StandardModel/WZPhysics/Analyses/DrellYan/SupportingDocument/trunk DYnote
  • https://svnweb.cern.ch/trac/atlasphys/browser/Physics/StandardModel/WZPhysics/Analyses/WZInclusive/SupportingDocument/trunk
  • svn co svn+ssh://svn.cern.ch/reps/atlasphys/Physics/StandardModel/WZPhysics/Analyses/WZInclusive/SupportingDocument/trunk
  • svn info [info about files]
  • svn log --limit 3 [last 3 log entries]
  • svn status -u [shows if file is out-of-date w.r.t. repsoitory with * in 8th column]
  • svn resolve --accept working sandwich.txt [After manual edit of file to resolve conflict by hand using working copy]
  • svn propset svn:keywords "Date Author Rev" [then add fixed width tags $Rev:: $ ]
  • svn propedit svn:ignore . [then add filenames and wildcard patterns to list of files to ignore for directory "."]
  • svn log -v -r HEAD:BASE [shows log entries between your base version and the head version. -v option is verbose = shows which files changed]
  • svnadmin create RepositoryName [cd to directory where you want the repo first!]
  • svnadmin dump /path/to/repository > repository-name.dmp [export entire repository to a file]
  • svnadmin load --force-uuid repository-name< repository-name.dmp [import entire repository from a file]
  • svnadmin recover /path/to/repository [makes repository self-consistent again - use if you get errors]
  • svn diff --diff-cmd /usr/bin/diff -x "-B -b" [use your own diff command and pass args into it]
  • svn status -v -N [list each files status and which revision it was last modified, do not recurse into subdirs (-N) ]

Athena

  • cmt co -r 00-15-06 Trigger/TriggerCommon/TriggerMenuPython
  • cmt show versions Trigger/TriggerCommon/TriggerMenuPython
  • when compiling goes a bit weird then delete the entire i686* directory or simply do gmake binclean
  • If Athena reconstruction stops running after ESD production, but before AOD production with this unbuffered output below, then you've either run out out of disk space, or have done previously in an earlier run. Remove all files that reconstruction produces and try again!
Py:PerfMonSvc        INFO  --> [ntuple_rdotoesd.pmon.dat] =>   24.000 kb
Py:PerfMonSvc        INFO  --> [ntuple_rdotoesd.pmon.root] =>   20.883 kb
Py:PerfMonSvc        INFO Writing out collected data... [ntuple_rdotoesd.pmon.gz] =>   20.324 kb

dq2

  • https://twiki.cern.ch/twiki/bin/viewauth/Atlas/DQ2ClientsHowTo
  • dq2-get -n 3 DATASET [get 3 random files from the dataset]
  • dq2-get -f FILENAME DATASETNAME [Get one specific file from dataset]
  • dq2-get -H /tmp DATASETNAME [Get dataset and put it in /tmp]
  • dq2-get DATASETNAME [Just get the complete dataset]
  • dq2-get -f \*AANT\*root* user.epiccaro.20110211100956.2/ [get just the root files from your job]

pathena

ganga

  • https://twiki.cern.ch/twiki/bin/viewauth/Atlas/DAGangaFAQ
  • https://twiki.cern.ch/twiki/bin/view/Atlas/WorkBookGanga
  • jobs [list jobs]
  • execfile('grid_dataGRL.py') [submit the job]
  • jobs(ID nr).subjobs [lists status of subjobs]
  • jobs(ID nr):resubmit() [automatically resubmits all failed jobs]
  • jobs(ID nr).kill() [kill jobs]
  • jobs(ID nr).remove() [remove job from your job repository list]
  • jobs(ID nr).peek('stdout.gz','less')
  • make sure the GRL "name" is set correctly in osdimuons_dataAutoConf.py --> take from inside the xml file
  • use ganga on machine with a test AOD for the autoconfig - location is set at top of osdimuons_dataAutoConf.py
  • change the output dataset name in grid_dataGRL.py j.outputdata.datasetname='Muons180164b'
ERROR : could not create container in DQ2
Ganga.GPIDev.Lib.Job               : ERROR    BackendError: Exception in Client.createContainer user.EramRizvi.Muons182726/: <type 'exceptions.SystemExit'> 255 (Panda backend) 
Ganga.GPIDev.Lib.Job               : ERROR    BackendError: Exception in Client.createContainer user.EramRizvi.Muons182726/: <type 'exceptions.SystemExit'> 255 (Panda backend) 
Means change the j.outputdata.datasetname in grid_dataGRL.py

GRLTriggerAlg1                                       INFO initialize() :: Now registering this GRL Selector with unique name <Sequence0>.
ToolSvc.GoodRunsListSelectorTool                    ERROR registerGRLSelector() :: requested GRL object with name <muon_7TeV> not found. Have you provided an obj
ect name from the GRL xml-file(s)?
GRLTriggerAlg1                                      ERROR initialize() :: Failure to register this GRL Selector with name <Sequence0>. Return failure.
AthMasterSeq                                        ERROR Unable to initialize Algorithm GRLTriggerAlg1
AthenaEventLoopMgr                                  ERROR Unable to initialize Algorithm: AthMasterSeq
AthenaEventLoopMgr                                  ERROR Failed to initialize base class MinimalEventLoopMgr
ServiceManager                                      ERROR Unable to initialize Service: AthenaEventLoopMgr
Py:Athena            INFO leaving with code 33: "failure in initialization"
Look in the GRL xml file and get the name of GRL object, and insert into osdimuons_dataAutoConf.py here:
seq.GRLTriggerAlg1.GoodRunsListArray  = ['All_Good']

Castor

  • browse and copy with rfcp and rfdir
  • copy files with xrdcp : xrdcp root://castoratlas//castor/cern.ch/grid/atlas/atlasscratchdisk/your_file_name /tmp/your_file_name
  • Castor twiki page
  • CAF twiki page
  • for atlcal pool first do export STAGE_SVCCLASS=atlcal
  • then you can do (file by file) rfcp /castor/cern.ch/grid/atlas/caf/atlcal/perm/trigger/data11_7TeV/physics_EnhancedBias/00178044/data11_7TeV.00178044.physics_EnhancedBias.hltmerge.AOD.c580_c583_m274/data11_7TeV.00178044.physics_EnhancedBias.hltmerge.AOD.c580_c583_m274._0028.1 .
  • check a file is staged first by doing stager_qry -S atlcal -M /castor/cern.ch/grid/atlas/blah... and remember you cannot stage files on atlcal pool

Getting jobOptions and other files

  • get_files CSC.005118.JimmyZmumuLowM_onelep.py
  • get_files checkFile.py
  • get_files checkTrigger.py

Links and Tips for Viewing Code

Examining files

  • to tell if a file is ESD or AOD etc: checkFile.py YourAODorESD.pool.root
  • to find the geometry version: dumpVersionTags.py yourESD.pool.root

vp1

  • use vp1 to visualise the experiment and data (not atlantis). After doing std athena setup just run vp1 on the commandline and play with the gui, optionally give it a root filename argument to read data from

Atlantis

  • create XML files by running athena and using ESD or AOD jobOptions files:
    athena AtlantisESD_jobOptions.py or athena AtlantisAOD_jobOptions.py at QM
    Make sure you set the correct geometry tag in the jobOptions
  • then at QM run atlantis on the XML files like so:
    /usr/bin/java -jar  /afs/cern.ch/atlas/project/Atlantis/current/atlantis.jar  tag

gdb

  • run < parameter.txt read steering from file
  • run 1 2 supply command line arguments
  • break main break at line 1
  • break pylist_ break in routine pylist
  • break pyrand.f:60 break at line 60 of pyrand.f
  • step one line at a time; steps *into functions*
  • next as above but executes entire funtions
  • finish continues till end of currect function
  • cont continue till next breakpoint
  • whatis
  • where
  • list
  • info breakpoints list all breakpoints
  • tbreak 110 temp breakpoint active once
  • kill stop program, can restart again
  • delete 2 delete breakpoint 2
Edit | Attach | Watch | Print version | History: r43 < r42 < r41 < r40 < r39 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r43 - 2012-12-14 - EramRizvi
 
    • 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