1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
if [ $# -ne 1 ]
then
echo Error: createExtended2017Payloads.sh requires exactly one argument which is the tag
exit 1
fi
mytag=$1
echo ${mytag}
# Set the tag in all the scripts and the metadata text files
sed -i {s/TagXX/${mytag}/g} *.py
#sed -i {s/TagXX/${mytag}/g} *.txt
sed -i {s/TagXX/${mytag}/g} splitExtended2017Database.sh
# First read in the little XML files and create the
# large XML file for the Phase1_R30F12_HCal Ideal scenario.
# Input cff Output file
# GeometryExtended2017_cff geSingleBigFile.xml
cmsRun geometryExtended2017_xmlwriter.py
# Now convert the content of the large XML file into
# a "blob" and write it to the database.
# Also reads in the little XML files again and fills
# the DDCompactView. From the DDCompactView the
# reco parts of the database are also filled.
cmsRun geometryExtended2017_writer.py
# All the database objects were written into one database
# (myfile.db) in the steps above. Extract the different
# pieces into separate database files. These are the payloads
# that get uploaded to the dropbox. There is one for each tag
./splitExtended2017Database.sh
|