Skip to content

Commit

Permalink
Merge pull request #6079 from grasph/update-sr-settings
Browse files Browse the repository at this point in the history
Updated CMSSW configuration file used to write Selective Readout into condDB
  • Loading branch information
cmsbuild committed Oct 29, 2014
2 parents 61e77f5 + 400b866 commit 287772a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 16 deletions.
@@ -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
Expand All @@ -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')
Expand All @@ -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')
))

Expand Down
Expand Up @@ -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",
Expand All @@ -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')
))
)

Expand Down Expand Up @@ -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)

0 comments on commit 287772a

Please sign in to comment.