Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modification to #11868 (configuring flat BS + DQM GUI) #11998

Merged
merged 2 commits into from
Oct 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Configuration/PyReleaseValidation/python/MatrixInjector.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self,opt,mode='init',options=''):
self.wmagent = 'cmsweb.cern.ch'

if not self.dqmgui:
self.dqmgui="https://cmsweb.cern.ch/dqm/relval;https://cmsweb-testbed.cern.ch/dqm/relval"
self.dqmgui="https://cmsweb.cern.ch/dqm/relval"
#couch stuff
self.couch = 'https://'+self.wmagent+'/couchdb'
# self.couchDB = 'reqmgr_config_cache'
Expand Down
102 changes: 61 additions & 41 deletions SLHCUpgradeSimulations/Configuration/python/combinedCustoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,48 +858,68 @@ def fastsimDefault(process):
def fastsimPhase2(process):
return fastCustomisePhase2(process)

def bsStudyStep1(process):
process.VtxSmeared.MaxZ = 11.0
process.VtxSmeared.MinZ = -11.0
return process

def bsStudyStep2(process):
process.initialStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(11.0),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.7)
)
process.highPtTripletStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(11.0),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.7)
)
process.lowPtQuadStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(11.0),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.2)
)
process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.015),
originHalfLength = cms.double(11.0),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.35)
)
process.detachedQuadStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.5),
originHalfLength = cms.double(11.0),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.3)
)
def bsStudy(process,length):
if hasattr(process,"VtxSmeared") :
try:
process.VtxSmeared.MaxZ = length
process.VtxSmeared.MinZ = -length
except TypeError as error:
raise TypeError( str(error)+". Are you using '--beamspot Flat'? This customisation only works the Flat beamspot." )

if hasattr(process,"initialStepSeeds") :
process.initialStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(length),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.7)
)
if hasattr(process,"highPtTripletStepSeeds") :
process.highPtTripletStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(length),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.7)
)
if hasattr(process,"lowPtQuadStepSeeds") :
process.lowPtQuadStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.02),
originHalfLength = cms.double(length),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.2)
)
if hasattr(process,"lowPtTripletStepSeeds") :
process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.015),
originHalfLength = cms.double(length),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.35)
)
if hasattr(process,"detachedQuadStepSeeds") :
process.detachedQuadStepSeeds.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool(True),
originRadius = cms.double(0.5),
originHalfLength = cms.double(length),#nSigmaZ = cms.double(4.0),
beamSpot = cms.InputTag("offlineBeamSpot"),
ptMin = cms.double(0.3)
)
return process

def customise_bsStudy_11(process):
process=bsStudy(process,11.0)
return process

def customise_bsStudy_15(process):
process=bsStudy(process,15.0)
return process

def customise_bsStudy_20(process):
process=bsStudy(process,20.0)
return process


def customise_noPixelDataloss(process):
return cNoPixDataloss(process)
Expand Down