Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:32

0001 #!/bin/tcsh
0002 
0003 #Unique version number adn tag for the DB, should match makeAll.csh
0004 set version=v9
0005 #set tag=PerformancePayloadFromTable
0006 set tag=PerformancePayloadFromBinnedTFormula
0007 
0008 foreach db(`ls DBs | sed "s#.db##"`)
0009     echo "Setting up " $db
0010     rm -f ship/ship$db.csh
0011     rm -f ship/"$db"_T.txt
0012     rm -f ship/"$db"_WP.txt
0013     cat templates/shipDB.csh | sed "s#NAME#$db#g" > ship/ship$db.csh
0014     cat templates/templateForNEWDropbox.txt | sed "s#TAG#$tag#g" | sed "s#NAME#$db#g" | sed "s#TYPE#table#g" | sed "s#TSHORT#T#g"  | sed "s#VERSION#$version#g" > ship/"$db"_T.txt
0015     cat templates/templateForNEWDropbox_WP.txt | sed "s#NAME#$db#g" | sed "s#TYPE#wp#g" | sed "s#TSHORT#WP#g"  | sed "s#VERSION#$version#g" > ship/"$db"_WP.txt
0016 
0017     pwd
0018     cd DBs
0019     pwd
0020     cmscond_export_iov -s sqlite_file:../DBs/$db.db -d sqlite_file:"$db"_T.db -t "$db"_T
0021     cmscond_export_iov -s sqlite_file:../DBs/$db.db -d sqlite_file:"$db"_WP.db -t "$db"_WP
0022     cd ..
0023     mv DBs/"$db"_T.db ship
0024     mv DBs/"$db"_WP.db ship
0025     pwd
0026 
0027 end