Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:54

0001 #!/bin/sh
0002 
0003 function run(){
0004     cmsRun DummyCondDBWriter_tmp_cfg.py
0005     [ $? -ne 0 ] && echo "PROBLEM" && cat DummyCondDBWriter_tmp_cfg.py && exit
0006 }
0007 
0008 rm dbfile.db
0009 $CMSSW_RELEASE_BASE/src/CondTools/SiStrip/scripts/CreatingTables.sh sqlite_file:dbfile.db a a
0010 
0011 oldDest="sqlite_file:dbfile.db"
0012 newDest="sqlite_file:dbfile.db"
0013 #newDest="oracle://cms_orcoff_prep/CMS_COND_STRIP"
0014 
0015 oldTag="31X"
0016 newTag="31X"
0017 #newTag="31X_v2"
0018 
0019 cat DummyCondDBWriter_SiStripApvGain_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0020 run
0021 cat DummyCondDBWriter_SiStripApvGain_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" -e "s@SiStripApvGain_Ideal@SiStripApvGain_IdealSim@" > DummyCondDBWriter_tmp_cfg.py
0022 run
0023 # Need to change also default to gaussian. default = value fixed to 1, gaussian = gaussian smearing with mean = MeanGain and sigma = SigmaGain
0024 cat DummyCondDBWriter_SiStripApvGain_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" -e "s@SiStripApvGain_Ideal@SiStripApvGain_StartUp@" -e "s@SigmaGain=0.0@SigmaGain=0.10@" -e "s@default@gaussian@" > DummyCondDBWriter_tmp_cfg.py
0025 run
0026 # #
0027 cat DummyCondDBWriter_SiStripBadChannel_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0028 run
0029 cat DummyCondDBWriter_SiStripBadFiber_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0030 run
0031 cat DummyCondDBWriter_SiStripBadModule_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0032 run
0033 # #
0034 # 
0035 cat DummyCondDBWriter_SiStripThreshold_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0036 run
0037 cat DummyCondDBWriter_SiStripClusterThreshold_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0038 run
0039 # #
0040 cat DummyCondDBWriter_SiStripFedCabling_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0041 run
0042 # #
0043 cat DummyCondDBWriter_SiStripLorentzAngle_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0044 run
0045 # 
0046 cat DummyCondDBWriter_SiStripLorentzAngle_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" -e "s@SiStripLorentzAngle_Ideal@SiStripLorentzAngle_IdealSim@" -e "s@TIB_PerCent_Err=cms.double(0.)@TIB_PerCent_Err=cms.double(0.)@" -e "s@TOB_PerCent_Err=cms.double(0.)@TOB_PerCent_Err=cms.double(0.)@"> DummyCondDBWriter_tmp_cfg.py
0047 run
0048 cat DummyCondDBWriter_SiStripLorentzAngle_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" -e "s@SiStripLorentzAngle_Ideal@SiStripLorentzAngle_StartUp@" -e "s@TIB_PerCent_Err=cms.double(0.)@TIB_PerCent_Err=cms.double(20.)@" -e "s@TOB_PerCent_Err=cms.double(0.)@TOB_PerCent_Err=cms.double(20.)@"> DummyCondDBWriter_tmp_cfg.py
0049 run
0050 # #
0051 cat DummyCondDBWriter_SiStripDetVOff_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0052 run
0053 # #
0054 cat DummyCondDBWriter_SiStripNoises_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0055 run
0056 mv NoisesBuilder.log NoisesBuilder_DecMode.log
0057 cat DummyCondDBWriter_SiStripNoises_PeakMode_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0058 run
0059 mv NoisesBuilder.log NoisesBuilder_PeakMode.log
0060 # #
0061 cat DummyCondDBWriter_SiStripPedestals_cfg.py | sed -e "s@$oldDest@$newDest@" -e "s@$oldTag@$newTag@" > DummyCondDBWriter_tmp_cfg.py
0062 run