Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:04

0001 #!/bin/sh
0002 
0003 
0004 if [ $# -ne 1 ]
0005 then
0006   echo Error: createExtended2018Payloads.sh requires exactly one argument which is the tag
0007   exit 1
0008 fi
0009 mytag=$1
0010 echo ${mytag}
0011 
0012 # Set the tag in all the scripts and the metadata text files
0013 sed -i {s/TagXX/${mytag}/g} *.py
0014 compgen -G "*.txt" > /dev/null && sed -i {s/TagXX/${mytag}/g} *.txt
0015 sed -i {s/TagXX/${mytag}/g} splitExtended2018Database.sh
0016 
0017 # First read in the little XML files and create the
0018 # large XML file for the Phase1_R30F12_HCal Ideal scenario.
0019 # Input cff                                             Output file
0020 # GeometryExtended2018_cff                       geSingleBigFile.xml
0021 cmsRun geometryExtended2018_xmlwriter.py
0022 
0023 # Now convert the content of the large XML file into
0024 # a "blob" and write it to the database.
0025 # Also reads in the little XML files again and fills
0026 # the DDCompactView. From the DDCompactView the
0027 # reco parts of the database are also filled.
0028 cmsRun geometryExtended2018_writer.py
0029 
0030 # Now put the other scenarios into the database.
0031 # Input the many XML files referenced by the cff file and
0032 # output a single big XML file.
0033 # This is repeated several times below.  The sed commands
0034 # serve to give the following sequence of input and output
0035 # files
0036 #
0037 # Input cff                    Output file
0038 # GeometryIdeal_cff            giSingleBigFile.xml
0039 #
0040 sed -i '{s/Extended2018/Extended2018ZeroMaterial/g}' geometryExtended2018_xmlwriter.py
0041 sed -i '{s/\/ge/\/gez/g}' geometryExtended2018_xmlwriter.py
0042 cmsRun geometryExtended2018_xmlwriter.py
0043 
0044 sed -i '{s/Extended2018ZeroMaterial/Extended2018DetailedCavern/g}' geometryExtended2018_xmlwriter.py
0045 sed -i '{s/\/gez/\/geDC/g}' geometryExtended2018_xmlwriter.py
0046 cmsRun geometryExtended2018_xmlwriter.py
0047 
0048 sed -i '{s/Extended2018DetailedCavern/Extended2018FlatMinus05Percent/g}' geometryExtended2018_xmlwriter.py
0049 sed -i '{s/\/geDC/\/geFM05/g}' geometryExtended2018_xmlwriter.py
0050 cmsRun geometryExtended2018_xmlwriter.py
0051 
0052 sed -i '{s/Extended2018FlatMinus05Percent/Extended2018FlatMinus10Percent/g}' geometryExtended2018_xmlwriter.py
0053 sed -i '{s/\/geFM05/\/geFM10/g}' geometryExtended2018_xmlwriter.py
0054 cmsRun geometryExtended2018_xmlwriter.py
0055 
0056 sed -i '{s/Extended2018FlatMinus10Percent/Extended2018FlatPlus05Percent/g}' geometryExtended2018_xmlwriter.py
0057 sed -i '{s/\/geFM10/\/geFP05/g}' geometryExtended2018_xmlwriter.py
0058 cmsRun geometryExtended2018_xmlwriter.py
0059 
0060 sed -i '{s/Extended2018FlatPlus05Percent/Extended2018FlatPlus10Percent/g}' geometryExtended2018_xmlwriter.py
0061 sed -i '{s/\/geFP05/\/geFP10/g}' geometryExtended2018_xmlwriter.py
0062 cmsRun geometryExtended2018_xmlwriter.py
0063 
0064 # Read the one big XML file and output a record to the
0065 # database with the an identifying tag
0066 # This is repeated several times below.  The sed commands
0067 # serve to give the following sequence of input file and output
0068 # tag
0069 #
0070 # Input file                Output tag
0071 # gezSingleBigFile.xml      XMLFILE_Geometry_${mytag}_Extended2018ZeroMaterial_mc
0072 #
0073 sed -i '{s/Extended/Extended2018ZeroMaterial/g}' xmlgeometrywriter.py
0074 sed -i '{s/\/ge/\/gez/g}' xmlgeometrywriter.py
0075 cmsRun xmlgeometrywriter.py
0076 
0077 sed -i '{s/Extended2018ZeroMaterial/Extended2018DetailedCavern/g}' xmlgeometrywriter.py
0078 sed -i '{s/\/gez/\/geDC/g}' xmlgeometrywriter.py
0079 cmsRun xmlgeometrywriter.py
0080 
0081 sed -i '{s/Extended2018DetailedCavern/Extended2018FlatMinus05Percent/g}' xmlgeometrywriter.py
0082 sed -i '{s/\/geDC/\/geFM05/g}' xmlgeometrywriter.py
0083 cmsRun xmlgeometrywriter.py
0084 
0085 sed -i '{s/Extended2018FlatMinus05Percent/Extended2018FlatMinus10Percent/g}' xmlgeometrywriter.py
0086 sed -i '{s/\/geFM05/\/geFM10/g}' xmlgeometrywriter.py
0087 cmsRun xmlgeometrywriter.py
0088 
0089 sed -i '{s/Extended2018FlatMinus10Percent/Extended2018FlatPlus05Percent/g}' xmlgeometrywriter.py
0090 sed -i '{s/\/geFM10/\/geFP05/g}' xmlgeometrywriter.py
0091 cmsRun xmlgeometrywriter.py
0092 
0093 sed -i '{s/Extended2018FlatPlus05Percent/Extended2018FlatPlus10Percent/g}' xmlgeometrywriter.py
0094 sed -i '{s/\/geFP05/\/geFP10/g}' xmlgeometrywriter.py
0095 cmsRun xmlgeometrywriter.py
0096 
0097 # All the database objects were written into one database
0098 # (myfile.db) in the steps above.  Extract the different
0099 # pieces into separate database files.  These are the payloads
0100 # that get uploaded to the dropbox.  There is one for each tag
0101 ./splitExtended2018Database.sh