Tile Calorimeter

  • Working on Tile Calorimeter performance studies using muons from collisions;
  • Finished U-shape evaluation;
  • Working on LASER;
  • Including HCAL in tracking.


  • H->4mu

Useful linux commands

Find and replace strings in files on the command line.
sed -i -e 's/oldstring/newstring/g' <file>

Personal SVN

I am responsible for the
SVN repository. To import a new package to this repository, simply place the package in an empty directory and do the following.
svn import ./ svn+ssh://svn.cern.ch/reps/tilecode/ -m "initial import <package name>"

In order to check out a package from this SVN, simply do the following.

svn co svn+ssh://svn.cern.ch/reps/tilecode/<package name>
A revision number will be displayed.
Committed revision <number>.

From the main directory of a package, creating a new tag is done like this.

svn mkdir svn+ssh://svn.cern.ch/reps/tilecode/<package name>/tags
svn mkdir svn+ssh://svn.cern.ch/reps/tilecode/<package name>/tags/<package name>-<version number>
svn cp . svn+ssh://svn.cern.ch/reps/tilecode/<package name>/tags/<package name>-<version number>
Committed version <number>.

ATLAS Offline SVN Repository

Checking out a package.
cmt co TileD3PDMaker-00-00-06 PhysicsAnalysis/D3PDMaker/TileD3PDMaker

Committing a package.

svn commit -m "improvements implemented"

Importing a new package.

svn import . $SVNOFF/PhysicsAnalysis/D3PDMaker/TileD3PDMaker -m "initial import"

Creating a tag. First, update the Changelog file. Then do the following.

svn cp . $SVNOFF/PhysicsAnalysis/D3PDMaker/TileD3PDMaker/tags/TileD3PDMaker-00-00-07 -m "creating new tag"

Creating a branch.

svn cp svn+ssh://svn.cern.ch/reps/atlasoff/PhysicsAnalysis/D3PDMaker/TileD3PDMaker/tags/TileD3PDMaker-00-00-25 svn+ssh://svn.cern.ch/reps/atlasoff/PhysicsAnalysis/D3PDMaker/TileD3PDMaker/branches/TileD3PDMaker-00-00-25-branch -m "create branch"

Checking out a branch.

svn co svn+ssh://mvanwoer@svn.cern.ch/reps/atlasoff/PhysicsAnalysis/D3PDMaker/TileD3PDMaker/branches/TileD3PDMaker-00-00-25-branch/ TileD3PDMaker

Merge ROOT files

After setting up the software environment, one can merge root files using the hadd command, which runs a little macro that loops over all objects in the trees.
hadd <output.root> <input1.root> <input2.root> ... 
A very useful bash script to merge all files within a certain directory is the following.
for f in $FILES
  input="$input$f "
echo "INPUT: $input"
echo "OUTPUT: merged.root"

Filter and merge D3PDs

prun --exec "python filter-and-merge-d3pd.py -i %IN -o %OUT -s filterD3PD.py" --inDS user.mvanwoer.<input>/ --outDS user.mvanwoer.<output>/

Here, filterD3PD.py should have the following structure.

def filter_fct(t):
    if not t.var1[0] > 0: return False
    if not t.var2[0] > 0:  return False
    return True

How do I dump the detector store?

Add the following to your jobOptions.
from AthenaCommon.AppMgr import theApp
svcMgr = theApp.serviceMgr()
svcMgr.DetectorStore.Dump = True

How do I make my AFS public area is really public?

find  /afs/cern.ch/work/m/mvanwoer/public -type d -exec fs setacl -dir {} -acl system:anyuser rl \;

Useful aliases

alias asetup='source $AtlasSetup/scripts/asetup.sh'
alias astart='gowork; cd private/testarea/17.2.7/; asetup 17.2.7,here'
alias adebut='gowork; cd private/testarea/17.3.1/; asetup 17.3.1,32,here'
alias atrial='gowork; cd private/testarea/17.3.4/; asetup 17.3.4,32,here'
alias makeit='cd cmt; make clean; cmt config; source setup.sh; gmake -j4; cd ..'

Moving around

alias gowork='cd /afs/cern.ch/work/m/mvanwoer'
alias godata='cd /afs/cern.ch/work/m/mvanwoer/private/data'
alias gopriv='cd /afs/cern.ch/work/m/mvanwoer/private'
alias gotest='cd /afs/cern.ch/work/m/mvanwoer/private/testarea'
alias gomain='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7'
alias gohome='cd /afs/cern.ch/user/m/mvanwoer'
alias gotucs='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/TileCalorimeter/TileCalib/TileCalibAlgs/share/Tucs/'
alias goplot='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/TileCalorimeter/TileCalib/TileCalibAlgs/share/Tucs/plots'
alias golate='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/TileCalorimeter/TileCalib/TileCalibAlgs/share/Tucs/plots/latest'
alias golvl1='cd /afs/cern.ch/work/m/mvanwoer/private/TileMuonStudies/TileMuonsAnalysis'
alias golvl2='cd /afs/cern.ch/work/m/mvanwoer/private/TileMuonStudies/SecondLevel'
alias gocalo='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/PhysicsAnalysis/D3PDMaker/CaloD3PDMaker/'
alias gotrck='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/PhysicsAnalysis/D3PDMaker/TrackD3PDMaker/'
alias gomuon='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/PhysicsAnalysis/D3PDMaker/MuonD3PDMaker/'
alias gotrig='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/PhysicsAnalysis/D3PDMaker/TrigMuonD3PDMaker/'
alias gotest='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/'
alias gotile='cd /afs/cern.ch/work/m/mvanwoer/private/testarea/17.2.7/PhysicsAnalysis/D3PDMaker/TileD3PDMaker/'
alias gobeam='cd /afs/cern.ch/user/t/tilebeam/'

Cleaning commands

alias tenten='echo; echo; echo; echo; echo; echo; echo; echo; echo; echo'
alias gogogo='tenten; tenten; tenten; tenten; tenten'
alias cleans='rm *.txt; rm *~; rm *.xml; rm *.gz; rm *.stream; rm *.BAK; rm *.dot; rm *.pdf; rm *.root'
alias schoon='rm *~; rm */*~'
alias expand='ls -all -rth'


alias makedb='gotucs; AtlCoolCopy.exe "COOLOFL_TILE/COMP200" "sqlite://;schema=tileSqlite.db;dbname=COMP200" -create -f /TILE/OFL02/CALIB/CES -t TileOfl02CalibCes-HLT-UPD1-01'


alias dq2-ls='shopts="$SHELLOPTS"; set -f; noglob dq2-ls'
alias dq2-get='shopts="$SHELLOPTS"; set -f; noglob dq2-get'
alias dq2-put='shopts="$SHELLOPTS"; set -f; noglob dq2-put'
alias setupgrid='source /afs/cern.ch/atlas/offline/external/GRID/ddm/DQ2Clients/setup.sh'
alias sourcegrid='gohome; source /afs/cern.ch/project/gd/LCG-share/new_3.2/etc/profile.d/grid-env.sh; voms-proxy-init -voms atlas'
alias panda='export PATHENA_GRID_SETUP_SH=/afs/cern.ch/project/gd/LCG-share/current/etc/profile.d/grid_env.sh; source /afs/cern.ch/atlas/offline/external/GRID/DA/panda-client/latest/etc/panda/panda_setup.sh'
alias CleanInstallPanda='make clean; cmt clean; cmt config; rm -R ../i686-slc5-gcc43-opt/; gmake; panda;'


export STAGE_HOST=castoratlast3
export STAGE_SVCCLASS=atlaslocalgroupdisk


alias dolas='ssh -XY tilerod@valtical01'


alias getd3pd='cp /afs/cern.ch/work/m/mvanwoer/private/scripts/get_D3PD.sh .; source get_D3PD.sh; rm get_D3PD.sh'
alias maked3pd='cp /afs/cern.ch/work/m/mvanwoer/private/scripts/make_D3PD.sh .; source make_D3PD.sh; rm make_D3PD.sh'
alias dod3='getd3pd; cd PhysicsAnalysis/D3PDMaker; maked3pd'
alias run='gotile; cd share; athena makeNtuple_ESD.py; cd ..'

 tv__tree->Draw("tilecell_staco_dEdx:tilecell_to_staco_dPhi","tilecell_staco_N==1 && muon_p>10000 && muon_p<30000 && tilecell_E>60 && tilecell_staco_dx>100 && tilecell_staco_dEdx<100 && tilecell_staco_dEdx>0 && event_MET_RefFinal_EtSum>25000 && event_mass_staco>40000 && abs(tilecell_to_staco_dPhi)<1 && tilecell_samplingID==12","PROF", 3638630, 0); 

Typical CERN vocabulary

  • X is time consuming.
  • Do you accumulate X?
  • You cannot imagine.
  • It almost works.
  • I just slept in my office.
  • I don't have the results yet, but I can do it soon.
  • I am working on it.
  • How are you? I am fine.
  • I spent some time on trying to understand X.
  • I am still confused in trying to understand X.
  • It is more or less an academic exercise.
  • I am worried about X.
First Name Marco
Last Name van Woerden
Titles drs
Email mvanwoer@cernNOSPAMPLEASE.ch
Telephone +41793892997

Skype ID mwoerden

Organization CERN

Location Geneve, Switzerland

Country Switzerland
Status Update

Edit personal data
Edit | Attach | Watch | Print version | History: r19 < r18 < r17 < r16 < r15 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r19 - 2014-09-03 - unknown
    • 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