Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:55:05

0001 echo start
0002 date
0003 mkdir workarea
0004 cd workarea
0005 mkdir db
0006 mkdir xml
0007 cd db
0008 rm testIdeal.db
0009 touch testIdeal.db
0010 rm trIdeal.out
0011 rm twIdeal.out
0012 rm *.log.xml
0013 rm *.log
0014 rm dumpSpecsIdealWrite
0015 rm dumpGeoHistoryIdealWrite
0016 rm dumpGeoHistoryDBIdealRead
0017 rm dumpSpecsDBIdealRead
0018 
0019 echo start write Ideal
0020 date
0021 cmsRun ../../testwriteIdeal_cfg.py >twIdeal.out
0022 echo end write Ideal
0023 date
0024 
0025 mv dumpGeoHistory dumpGeoHistoryIdealWrite
0026 mv dumpSpecs dumpSpecsIdealWrite
0027 echo done with all DB writes.
0028 
0029 echo start all DB reads.
0030 echo start DB read Ideal
0031 date
0032 cmsRun ../../testreadDBIdealOnly_cfg.py > trIdeal.out
0033 echo done with read DB Ideal
0034 date
0035 
0036 mv dumpGeoHistory dumpGeoHistoryDBIdealRead
0037 mv dumpSpecs dumpSpecsDBIdealRead
0038 
0039 echo end all DB reads
0040 date
0041 cd ../xml
0042 rm trIdeal.out
0043 rm dumpGeoHistoryXMLIdealRead
0044 rm dumpSpecsXMLIdealRead
0045 rm diffgeomIdeal.out
0046 
0047 echo start XML read both
0048 date
0049 cmsRun ../../testreadXMLIdealOnly_cfg.py > trIdeal.out
0050 echo end XML read both
0051 date
0052 
0053 mv dumpGeoHistory dumpGeoHistoryXMLIdealRead
0054 mv dumpSpecs dumpSpecsXMLIdealRead
0055 echo done with reading XML
0056 
0057 echo doing seds to replace -0 with 0.
0058 date
0059 sed -i '{s/-0.0000/ 0.0000/g}' dumpGeoHistoryXMLIdealRead
0060 cd ../db
0061 sed -i '{s/-0.0000/ 0.0000/g}' dumpGeoHistoryDBIdealRead
0062 cd ../xml
0063 
0064 date
0065 echo this will show if there are any inconsistencies when reading the Ideal Geometry
0066 diff dumpGeoHistoryXMLIdealRead ../db/dumpGeoHistoryDBIdealRead > diffgeomIdeal.out
0067 
0068 echo ALL DONE!
0069 
0070