Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/sh
0002 
0003 if [ $# -ne 1 ]
0004 then
0005   echo Error: createRun1Payloads.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 compgen -G "*.txt" > /dev/null && sed -i {s/TagXX/${mytag}/g} *.txt
0014 sed -i {s/TagXX/${mytag}/g} splitRun1Database.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 # GeometryExtended_cff         geSingleBigFile.xml
0020 cmsRun geometryxmlwriter.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 geometrywriter.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 # GeometryIdeal_cff            giSingleBigFile.xml
0038 #
0039 sed -i '{s/Extended/ExtendedZeroMaterial/g}' geometryxmlwriter.py
0040 sed -i '{s/\/ge/\/gez/g}' geometryxmlwriter.py
0041 cmsRun geometryxmlwriter.py
0042 sed -i '{s/ExtendedZeroMaterial/Ideal/g}' geometryxmlwriter.py
0043 sed -i '{s/\/gez/\/gi/g}' geometryxmlwriter.py
0044 cmsRun geometryxmlwriter.py
0045 
0046 # Read the one big XML file and output a record to the
0047 # database with the an identifying tag
0048 # This is repeated several times below.  The sed commands
0049 # serve to give the following sequence of input file and output
0050 # tag
0051 #
0052 # Input file                Output tag
0053 # gegSingleBigFile.xml      XMLFILE_Geometry_${mytag}_Extended2015GFlash_mc
0054 # giSingleBigFile.xml       XMLFILE_Geometry_${mytag}_Ideal_mc
0055 #
0056 sed -i '{s/Extended/ExtendedZeroMaterial/g}' xmlgeometrywriter.py
0057 sed -i '{s/\/ge/\/gez/g}' xmlgeometrywriter.py
0058 cmsRun xmlgeometrywriter.py
0059 sed -i '{s/ExtendedZeroMaterial/Ideal/g}' xmlgeometrywriter.py
0060 sed -i '{s/\/gez/\/gi/g}' xmlgeometrywriter.py
0061 cmsRun xmlgeometrywriter.py
0062 
0063 # All the database objects were written into one database
0064 # (myfile.db) in the steps above.  Extract the different
0065 # pieces into separate database files.  These are the payloads
0066 # that get uploaded to the dropbox.  There is one for each tag
0067 ./splitRun1Database.sh