Skip to content

Commit

Permalink
Add script to produce all misalignments quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
hroskes committed Nov 8, 2015
1 parent e651d39 commit 355f87f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions Alignment/TrackerAlignment/test/testProduceAllMisalignments.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /bin/bash

#to use:
#set the input geometry and IOV in testProduceSystematicMisalignment_cfg.py
#set the output file name to outputfile.db or folder/outputfile.db
# (outputfile.db is replaced by (misalignment name).db)

#set the magnitude for each one in the comment after the -999
#set the phases for the phi dependent misalignments

#then cmsenv and run this
#don't bother submitting to a queue, the whole thing takes less than 2 minutes

for a in $(grep Epsilon testProduceSystematicMisalignment_cfg.py | grep 999 | sed "s/Epsilon.*//"); do
sed -r -e "s/(${a}Epsilon.*)-999. *#/\1/" -e "s|outputfile.db|${a}.db|" testProduceSystematicMisalignment_cfg.py > ${a}_cfg.py
cmsRun ${a}_cfg.py
rm ${a}_cfg.py
done
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@


#misalignment amplitudes, -999 means no misalignment
#the commented numbers are the default magnitudes
#the commented numbers are the default magnitudes, which produce a maximum movement of around 600 microns
#see Alignment/TrackerAlignment/plugins/TrackerSystematicMisalignments.cc for definitions
#see also https://twiki.cern.ch/twiki/bin/viewauth/CMS/SystematicMisalignmentsofTracker
radialEpsilon = -999. # default 5e-4 ~ 600 um
telescopeEpsilon = -999. # default 5e-4 ~ 600 um
radialEpsilon = -999. # 5e-4
telescopeEpsilon = -999. # 5e-4
layerRotEpsilon = -999. # 9.43e-6 #cm^-1
bowingEpsilon = -999. # 6.77e-9 #cm^-2
zExpEpsilon = -999. # 2.02e-4
Expand Down

0 comments on commit 355f87f

Please sign in to comment.