-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to produce all misalignments quickly
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Alignment/TrackerAlignment/test/testProduceAllMisalignments.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters