Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:08

0001 #!/bin/sh
0002 
0003 if [ $# -ne 1 ]
0004 then
0005   echo Error: createRun2Payloads.sh requires exactly one argument which is the tag
0006   exit 1
0007 fi
0008 mytag=$1
0009 echo ${mytag}
0010 
0011 # Set the tag in all the scripts and the metadata text files
0012 sed -i {s/TagXX/${mytag}/g} *.py
0013 sed -i {s/TagXX/${mytag}/g} *.txt
0014 sed -i {s/TagXX/${mytag}/g} splitRun2Database.sh
0015 
0016 # First read in the little XML files and create the
0017 # large XML file for the Extended2015 scenario.
0018 # Input cff                    Output file
0019 # GeometryExtended2015_cff  geSingleBigFile.xml
0020 cmsRun geometryrun2xmlwriter.py
0021 
0022 # Now convert the content of the large XML file into
0023 # a "blob" and write it to the database.
0024 # Also reads in the little XML files again and fills
0025 # the DDCompactView. From the DDCompactView the
0026 # reco parts of the database are also filled.
0027 cmsRun geometryrun2writer.py
0028 
0029 # Now put the other scenarios into the database.
0030 # Input the many XML files referenced by the cff file and
0031 # output a single big XML file.
0032 # This is repeated several times below.  The sed commands
0033 # serve to give the following sequence of input and output
0034 # files
0035 #
0036 # Input cff                    Output file
0037 # GeometryIdeal2015_cff     giSingleBigFile.xml
0038 #
0039 sed -i '{s/Extended/Ideal/g}' geometryrun2xmlwriter.py
0040 sed -i '{s/\/ge/\/gi/g}' geometryrun2xmlwriter.py
0041 cmsRun geometryrun2xmlwriter.py
0042 sed -i '{s/Ideal2015/Extended2015ZeroMaterial/g}' geometryrun2xmlwriter.py
0043 sed -i '{s/\/gi/\/gz/g}' geometryrun2xmlwriter.py
0044 cmsRun geometryrun2xmlwriter.py
0045 sed -i '{s/ZeroMaterial/CastorMeasured/g}' geometryrun2xmlwriter.py
0046 sed -i '{s/\/gz/\/gc/g}' geometryrun2xmlwriter.py
0047 cmsRun geometryrun2xmlwriter.py
0048 sed -i '{s/CastorMeasured/CastorSystMinus/g}' geometryrun2xmlwriter.py
0049 sed -i '{s/\/gc/\/gm/g}' geometryrun2xmlwriter.py
0050 cmsRun geometryrun2xmlwriter.py
0051 sed -i '{s/CastorSystMinus/CastorSystPlus/g}' geometryrun2xmlwriter.py
0052 sed -i '{s/\/gm/\/gp/g}' geometryrun2xmlwriter.py
0053 cmsRun geometryrun2xmlwriter.py
0054 sed -i '{s/CastorSystPlus/FlatMinus05Percent/g}' geometryrun2xmlwriter.py
0055 sed -i '{s/\/gp/\/gfm05/g}' geometryrun2xmlwriter.py
0056 cmsRun geometryrun2xmlwriter.py
0057 sed -i '{s/FlatMinus05Percent/FlatMinus10Percent/g}' geometryrun2xmlwriter.py
0058 sed -i '{s/\/gfm05/\/gfm10/g}' geometryrun2xmlwriter.py
0059 cmsRun geometryrun2xmlwriter.py
0060 sed -i '{s/FlatMinus10Percent/FlatPlus05Percent/g}' geometryrun2xmlwriter.py
0061 sed -i '{s/\/gfm10/\/gfp05/g}' geometryrun2xmlwriter.py
0062 cmsRun geometryrun2xmlwriter.py
0063 sed -i '{s/FlatPlus05Percent/FlatPlus10Percent/g}' geometryrun2xmlwriter.py
0064 sed -i '{s/\/gfp05/\/gfp10/g}' geometryrun2xmlwriter.py
0065 cmsRun geometryrun2xmlwriter.py
0066 
0067 # Read the one big XML file and output a record to the
0068 # database with the an identifying tag
0069 # This is repeated several times below.  The sed commands
0070 # serve to give the following sequence of input file and output
0071 # tag
0072 #
0073 # Input file                Output tag
0074 # gegSingleBigFile.xml      XMLFILE_Geometry_${mytag}_Extended2015GFlash_mc
0075 # giSingleBigFile.xml       XMLFILE_Geometry_${mytag}_Ideal2015_mc
0076 #
0077 sed -i '{s/Extended/Ideal/g}' xmlgeometryrun2writer.py
0078 sed -i '{s/\/ge/\/gi/g}' xmlgeometryrun2writer.py
0079 cmsRun xmlgeometryrun2writer.py
0080 sed -i '{s/Ideal2015/Extended2015ZeroMaterial/g}' xmlgeometryrun2writer.py
0081 sed -i '{s/\/gi/\/gz/g}' xmlgeometryrun2writer.py
0082 cmsRun xmlgeometryrun2writer.py
0083 sed -i '{s/ZeroMaterial/CastorMeasured/g}' xmlgeometryrun2writer.py
0084 sed -i '{s/\/gz/\/gc/g}' xmlgeometryrun2writer.py
0085 cmsRun xmlgeometryrun2writer.py
0086 sed -i '{s/CastorMeasured/CastorSystMinus/g}' xmlgeometryrun2writer.py
0087 sed -i '{s/\/gc/\/gm/g}' xmlgeometryrun2writer.py
0088 cmsRun xmlgeometryrun2writer.py
0089 sed -i '{s/CastorSystMinus/CastorSystPlus/g}' xmlgeometryrun2writer.py
0090 sed -i '{s/\/gm/\/gp/g}' xmlgeometryrun2writer.py
0091 cmsRun xmlgeometryrun2writer.py
0092 sed -i '{s/CastorSystPlus/FlatMinus05Percent/g}' xmlgeometryrun2writer.py
0093 sed -i '{s/\/gp/\/gfm05/g}' xmlgeometryrun2writer.py
0094 cmsRun xmlgeometryrun2writer.py
0095 sed -i '{s/FlatMinus05Percent/FlatMinus10Percent/g}' xmlgeometryrun2writer.py
0096 sed -i '{s/\/gfm05/\/gfm10/g}' xmlgeometryrun2writer.py
0097 cmsRun xmlgeometryrun2writer.py
0098 sed -i '{s/FlatMinus10Percent/FlatPlus05Percent/g}' xmlgeometryrun2writer.py
0099 sed -i '{s/\/gfm10/\/gfp05/g}' xmlgeometryrun2writer.py
0100 cmsRun xmlgeometryrun2writer.py
0101 sed -i '{s/FlatPlus05Percent/FlatPlus10Percent/g}' xmlgeometryrun2writer.py
0102 sed -i '{s/\/gfp05/\/gfp10/g}' xmlgeometryrun2writer.py
0103 cmsRun xmlgeometryrun2writer.py
0104 
0105 # All the database objects were written into one database
0106 # (myfile.db) in the steps above.  Extract the different
0107 # pieces into separate database files.  These are the payloads
0108 # that get uploaded to the dropbox.  There is one for each tag
0109 ./splitRun2Database.sh