Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:37:56

0001 #!/bin/sh
0002 
0003 if [ $# -ne 1 ]
0004 then
0005   echo Error: createRun2devPayloads.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} splitRun2devDatabase.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 # GeometryExtended2015dev_cff  geSingleBigFile.xml
0020 cmsRun geometryrun2devxmlwriter.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 geometryrun2devwriter.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 # GeometryIdeal2015dev_cff     giSingleBigFile.xml
0038 #
0039 sed -i '{s/Extended/Ideal/g}' geometryrun2devxmlwriter.py
0040 sed -i '{s/\/ge/\/gi/g}' geometryrun2devxmlwriter.py
0041 cmsRun geometryrun2devxmlwriter.py
0042 sed -i '{s/Ideal/ExtendedCastorMeasured/g}' geometryrun2devxmlwriter.py
0043 sed -i '{s/\/gi/\/gcm/g}' geometryrun2devxmlwriter.py
0044 cmsRun geometryrun2devxmlwriter.py
0045 sed -i '{s/ExtendedCastorMeasured/ExtendedCastorSystMinus/g}' geometryrun2devxmlwriter.py
0046 sed -i '{s/\/gcm/\/gcsm/g}' geometryrun2devxmlwriter.py
0047 cmsRun geometryrun2devxmlwriter.py
0048 sed -i '{s/ExtendedCastorSystMinus/ExtendedCastorSystPlus/g}' geometryrun2devxmlwriter.py
0049 sed -i '{s/\/gcsm/\/gcsp/g}' geometryrun2devxmlwriter.py
0050 cmsRun geometryrun2devxmlwriter.py
0051 
0052 # Read the one big XML file and output a record to the
0053 # database with the an identifying tag
0054 # This is repeated several times below.  The sed commands
0055 # serve to give the following sequence of input file and output
0056 # tag
0057 #
0058 # Input file                Output tag
0059 # gegSingleBigFile.xml      XMLFILE_Geometry_${mytag}_Extended2015GFlash_mc
0060 # giSingleBigFile.xml       XMLFILE_Geometry_${mytag}_Ideal2015_mc
0061 #
0062 sed -i '{s/Extended/Ideal/g}' xmlgeometryrun2devwriter.py
0063 sed -i '{s/\/ge/\/gi/g}' xmlgeometryrun2devwriter.py
0064 cmsRun xmlgeometryrun2devwriter.py
0065 sed -i '{s/Ideal/ExtendedCastorMeasured/g}' xmlgeometryrun2devwriter.py
0066 sed -i '{s/\/gi/\/gcm/g}' xmlgeometryrun2devwriter.py
0067 cmsRun xmlgeometryrun2devwriter.py
0068 sed -i '{s/ExtendedCastorMeasured/ExtendedCastorSystMinus/g}' xmlgeometryrun2devwriter.py
0069 sed -i '{s/\/gcm/\/gcsm/g}' xmlgeometryrun2devwriter.py
0070 cmsRun xmlgeometryrun2devwriter.py
0071 sed -i '{s/ExtendedCastorSystMinus/ExtendedCastorSystPlus/g}' xmlgeometryrun2devwriter.py
0072 sed -i '{s/\/gcsm/\/gcsp/g}' xmlgeometryrun2devwriter.py
0073 cmsRun xmlgeometryrun2devwriter.py
0074 
0075 # All the database objects were written into one database
0076 # (myfile.db) in the steps above.  Extract the different
0077 # pieces into separate database files.  These are the payloads
0078 # that get uploaded to the dropbox.  There is one for each tag
0079 ./splitRun2devDatabase.sh