Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:29

0001 #! /bin/bash
0002 
0003 #to use:
0004 #set the input geometry and IOV in testProduceSystematicMisalignment_cfg.py
0005 #set the output file name to outputfile.db or folder/outputfile.db
0006 #  (outputfile.db is replaced by (misalignment name).db)
0007 
0008 #set the magnitude for each one in the comment after the -999
0009 #set the phases for the phi dependent misalignments
0010 
0011 #then cmsenv and run this
0012 #don't bother submitting to a queue, the whole thing takes less than 2 minutes
0013 
0014 folder=$CMSSW_BASE/src/Alignment/TrackerAlignment/test
0015 
0016 for a in $(grep Epsilon $folder/testProduceSystematicMisalignment_cfg.py  | grep 999 | sed "s/Epsilon.*//"); do
0017     sed -r -e "s/(${a}Epsilon.*)-999. *#/\1/" -e "s|outputfile.db|${a}.db|" $folder/testProduceSystematicMisalignment_cfg.py > ${a}_cfg.py
0018     cmsRun ${a}_cfg.py
0019     rm ${a}_cfg.py
0020 done