From 400b8667beb155f92fef34bd0dc3d04c04dc68bf Mon Sep 17 00:00:00 2001 From: Philippe Gras Date: Wed, 29 Oct 2014 14:06:45 +0100 Subject: [PATCH] . Updated CMSSW configuration file used to write Selective Readout settings in condition database --- .../test/srCondRead_cfg.py | 15 +++-- .../test/srCondWrite_cfg.py | 57 +++++++++++++++---- 2 files changed, 56 insertions(+), 16 deletions(-) diff --git a/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondRead_cfg.py b/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondRead_cfg.py index 8c3fbd34741ba..053ddb18b9049 100644 --- a/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondRead_cfg.py +++ b/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondRead_cfg.py @@ -1,6 +1,7 @@ import FWCore.ParameterSet.Config as cms -global_tag='START39_V8::All' +global_tag='START53_V29B::All' + #customize tag for SR. Empty string to use Global tag default: #use cmscond_list_iov -c frontier://FrontierProd/CMS_COND_34X_ECAL -P/afs/cern.ch/cms/DB/conddb -a | grep EcalSRSettings #and cmscond_list_iov -c frontier://FrontierPrep/CMS_COND_ECAL -P/afs/cern.ch/cms/DB/conddb -a | grep EcalSRSettings @@ -11,7 +12,8 @@ #sr_tag = 'EcalSRSettings_fullreadout_v01_mc' #full readout / 2010 heavy ion setting #sr_tag = 'EcalSRSettings_beam7TeV_v01_mc' #thresholds of beam09/beam10 but with "optimized" weights #sr_tag = 'EcalSRSettings_lumi1e33_v01_mc' #setting used in MC before June 2010 (settings estimated for 2.e33cm-2s-1) -sr_tag = 'EcalSRSettings_beam7TeV_v02_mc' #optimized weights with 300MeV threshold in EE, 80MeV in EB. Candidate for beam11 run +#sr_tag = 'EcalSRSettings_beam7TeV_v02_mc' #optimized weights with 300MeV threshold in EE, 80MeV in EB. Candidate for beam11 run +sr_tag = 'EcalSRSettings_beam2012_option1_v00_mc' #optimized weights with 360MeV threshold in EE, 96.25MeV in EB. Candidate for beam11 run process = cms.Process("ProcessOne") process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') @@ -31,14 +33,17 @@ process.source = cms.Source("EmptySource") # Conditions -process.GlobalTag.globaltag = global_tag +#process.GlobalTag.globaltag = global_tag +from Configuration.AlCa.GlobalTag import * +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup') + if sr_tag != '' : process.GlobalTag.toGet = cms.VPSet( cms.PSet(record = cms.string("EcalSRSettingsRcd"), tag = cms.string(sr_tag), -# connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_34X_ECAL") - connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL") + connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_34X_ECAL") +# connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL") # connect = cms.untracked.string('sqlite_file:' + sr_tag + '.db') )) diff --git a/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondWrite_cfg.py b/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondWrite_cfg.py index 542fc7405cb20..c59eb29bb57f4 100644 --- a/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondWrite_cfg.py +++ b/SimCalorimetry/EcalSelectiveReadoutProducers/test/srCondWrite_cfg.py @@ -2,7 +2,7 @@ process = cms.Process("ProcessOne") process.load("CondCore.DBCommon.CondDBCommon_cfi") -process.CondDBCommon.connect = 'sqlite_file:EcalSRSettings_v00_beam10_mc.db' +process.CondDBCommon.connect = 'sqlite_file:EcalSRSettings_beam2015_option1_v00_mc.db' process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb' process.MessageLogger = cms.Service("MessageLogger", @@ -21,7 +21,7 @@ process.CondDBCommon, toPut = cms.VPSet(cms.PSet( record = cms.string('EcalSRSettingsRcd'), - tag = cms.string('EcalSRSettings_v00_beam10_mc') + tag = cms.string('EcalSRSettings_beam2015_option1_v00_mc') )) ) @@ -116,23 +116,58 @@ ) -# Changes settings to 2009 and 2010 beam ones: +## Changes settings to 2009 and 2010 beam ones: +## +## DCC ZS FIR weights. +#process.writeInDB.dccNormalizedWeights = cms.vdouble(-1.1865, 0.0195, 0.2900, 0.3477, 0.3008, 0.2266) # -# DCC ZS FIR weights. -process.writeInDB.dccNormalizedWeights = cms.vdouble(-1.1865, 0.0195, 0.2900, 0.3477, 0.3008, 0.2266) +## Index of time sample (starting from 1) the first DCC weights is implied +#process.writeInDB.ecalDccZs1stSample = cms.int32(3) +# +## ZS energy threshold in GeV to apply to low interest channels of barrel +#process.writeInDB.ebDccAdcToGeV = cms.double(0.035) +#process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(2.25*0.035) +# +## ZS energy threshold in GeV to apply to low interest channels of endcap +#process.writeInDB.eeDccAdcToGeV = cms.double(0.06) +#process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(3.75*0.06) + + +## Changes settings to 2011 beam ones: +## Index of time sample (starting from 1) the first DCC weights is implied +#process.writeInDB.ecalDccZs1stSample = cms.int32(2) +# +## ZS energy threshold in GeV to apply to low interest channels of barrel +#process.writeInDB.ebDccAdcToGeV = cms.double(0.035) +#process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(2.25*0.035) +# +## ZS energy threshold in GeV to apply to low interest channels of endcap +#process.writeInDB.eeDccAdcToGeV = cms.double(0.06) +#process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(3.75*0.06) + -# Index of time sample (staring from 1) the first DCC weights is implied +## Changes settings to 2012 beam ones: +## Index of time sample (starting from 1) the first DCC weights is implied +#process.writeInDB.ecalDccZs1stSample = cms.int32(2) +# +## ZS energy threshold in GeV to apply to low interest channels of barrel +#process.writeInDB.ebDccAdcToGeV = cms.double(0.035) +#process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(2.75*0.035) +# +## ZS energy threshold in GeV to apply to low interest channels of endcap +#process.writeInDB.eeDccAdcToGeV = cms.double(0.06) +#process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(6*0.06) + +# Changes settings to 2015 beam ones: +# Index of time sample (starting from 1) the first DCC weights is implied process.writeInDB.ecalDccZs1stSample = cms.int32(3) # ZS energy threshold in GeV to apply to low interest channels of barrel process.writeInDB.ebDccAdcToGeV = cms.double(0.035) -process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(2.25*0.035) +process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(2.75*0.035) # ZS energy threshold in GeV to apply to low interest channels of endcap process.writeInDB.eeDccAdcToGeV = cms.double(0.06) -process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(3.75*0.06) - - +process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(6*0.06) process.p = cms.Path(process.writeInDB) -