# the Ecal rechit collection found in MINIAOD # EcalRecHitSource = cms.InputTag('reducedEgamma','reducedEERecHits'), # minimum rechit et to flag as bad: ecalMinEt = cms.double(50.), # DetId of bad channel: baddetEcal = cms.vuint32(), taggingMode = cms.bool(False), #prints debug info for each channel if set to true debug = cms.bool(False), ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(ecalBadCalibFilter, baddetEcal = [872439604,872422825,872420274,872423218, 872423215,872416066,872435036,872439336, 872420273,872436907,872420147,872439731, 872436657,872420397,872439732,872439339, 872439603,872422436,872439861,872437051, 872437052,872420649,872421950,872437185, 872422564,872421566,872421695,872421955, 872421567,872437184,872421951,872421694, 872437056,872437057,872437313]) from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv1_cff import run2_nanoAOD_94XMiniAODv1 from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv2_cff import run2_nanoAOD_94XMiniAODv2 from Configuration.Eras.Modifier_run2_nanoAOD_102Xv1_cff import run2_nanoAOD_102Xv1 (run2_nanoAOD_94XMiniAODv1 | run2_nanoAOD_94XMiniAODv2 | run2_nanoAOD_102Xv1).toModify(ecalBadCalibFilter, EcalRecHitSource = 'reducedEgamma:reducedEERecHits')
QualityEnableME3b = cms.uint32(65535), QualityEnableME3c = cms.uint32(65535), QualityEnableME4a = cms.uint32(65535), QualityEnableME4b = cms.uint32(65535), QualityEnableME4c = cms.uint32(65535), firmwareSP = cms.uint32(20120319),#core 20120313 firmwareFA = cms.uint32(20091026), firmwareDD = cms.uint32(20091026), firmwareVM = cms.uint32(20091026), isCoreVerbose = cms.bool(False), #use firmware version and PTLUTs listed in this files if True #use firmware and PTLUTs from O2O if False #initializeFromPSet = cms.bool(True) initializeFromPSet = cms.bool(False) ), isTMB07 = cms.bool(True), useDT = cms.bool(True), readDtDirect = cms.bool(False), ) # # If the run2 era is active, make the required changes # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( csctfTrackDigis, _modifyCsctfTrackDigisForRun2 )
TreeHadID=cms.string('hadParticles'), ApplyFiducialCut=cms.bool(True), FileVersion=cms.int32(0), Verbosity=cms.untracked.bool(False), BranchPost=cms.untracked.string(''), BranchEvt=cms.untracked.string(''), BranchPre=cms.untracked.string('')) HFShowerBlock = cms.PSet(ProbMax=cms.double(1.0), CFibre=cms.double(0.5), OnlyLong=cms.bool(True), IgnoreTimeShift=cms.bool(False)) ## ## Change the HFShowerLibrary file from Run 2 ## from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( HFLibraryFileBlock, FileName='SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root') run2_common.toModify(HFShowerBlock, ProbMax=0.5) ## ## Change for the new HFShowerLibrary file to be used for Run 3 ## from Configuration.Eras.Modifier_run3_HFSL_cff import run3_HFSL run3_HFSL.toModify(HFLibraryFileBlock, FileName='SimG4CMS/Calo/data/HFShowerLibrary_run3_v5.root', FileVersion=1) run3_HFSL.toModify(HFShowerBlock, IgnoreTimeShift=True)
HcalTB06BeamSD=cms.PSet(UseBirkLaw=cms.bool(False), BirkC1=cms.double(0.013), BirkC3=cms.double(1.75), BirkC2=cms.double(0.0568)), AHCalSD=cms.PSet( UseBirkLaw=cms.bool(True), BirkC3=cms.double(1.75), BirkC2=cms.double(0.142), BirkC1=cms.double(0.0052), EminHit=cms.double(0.0), TimeSliceUnit=cms.double(1), IgnoreTrackID=cms.bool(False), ), ) ## ## Change the HFShowerLibrary file used for Run 2 ## from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( g4SimHits.HFShowerLibrary, FileName='SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root') run2_common.toModify(g4SimHits.HFShower, ProbMax=0.5) from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 run2_HCAL_2017.toModify(g4SimHits, HCalSD=dict(TestNumberingScheme=True)) from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing phase2_timing.toModify(g4SimHits.ECalSD, StoreLayerTimeSim=cms.untracked.bool(True), TimeSliceUnit=cms.double(0.001))
import FWCore.ParameterSet.Config as cms triggerLutTest = cms.EDAnalyzer("DTLocalTriggerLutTest", # prescale factor (in luminosity blocks) to perform client analysis diagnosticPrescale = cms.untracked.int32(1), # run in online environment runOnline = cms.untracked.bool(True), # kind of trigger data processed by DTLocalTriggerTask hwSources = cms.untracked.vstring('TM','DDU'), # false if DTLocalTriggerTask used LTC digis localrun = cms.untracked.bool(True), # enable/disable correlation plot tests doCorrelationStudy = cms.untracked.bool(False), # root folder for booking of histograms folderRoot = cms.untracked.string('') ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( triggerLutTest, hwSources = cms.untracked.vstring('TM'))
## efficiency recovery switches dropLowQualityCLCTsNoRPCs = cms.bool(True), buildLCTfromALCTandRPC = cms.bool(True), buildLCTfromCLCTandRPC = cms.bool(False), buildLCTfromLowQstubandRPC = cms.bool(True), promoteCLCTRPCquality = cms.bool(True), promoteALCTRPCpattern = cms.bool(True), promoteALCTRPCquality = cms.bool(True), ) ## unganging in ME1/a from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( cscTriggerPrimitiveDigis, debugParameters = True, checkBadChambers = False, commonParam = dict(gangedME1a = False) ) ## GEM-CSC ILT in ME1/1 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( cscTriggerPrimitiveDigis, GEMPadDigiProducer = cms.InputTag("simMuonGEMPadDigis"), commonParam = dict(isSLHC = cms.bool(True), smartME1aME1b = cms.bool(True), runME11ILT = cms.bool(True)), clctSLHC = dict(clctNplanesHitPattern = 3), me11tmbSLHCGEM = me11tmbSLHCGEM, copadParam = copadParam )
import FWCore.ParameterSet.Config as cms # # This cfi should be included to build the CSC geometry model. # # modelling flags (for completeness - internal defaults are already sane) # GF would like to have a shorter name (e.g. CSCGeometry), but since originally # there was no name, replace statements in other configs would not work anymore... from Geometry.CSCGeometryBuilder.CSCGeometryESModule_cfi import CSCGeometryESModule # # Modify for running in run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( CSCGeometryESModule, useGangedStripsInME1a = False ) # # Modify for running with dd4hep # from Configuration.ProcessModifiers.dd4hep_cff import dd4hep dd4hep.toModify( CSCGeometryESModule, fromDDD = False, fromDD4hep = True )
inputTagMuons = cms.untracked.InputTag('muons'), SegmArbitration = cms.untracked.string("SegmentAndTrackArbitration"), # labels of DDU/TM data and 4D segments inputTagTM = cms.untracked.InputTag('dttfDigis'), # inputTagTM = cms.untracked.InputTag('dttfDigis'), inputTagDDU = cms.untracked.InputTag('muonDTDigis'), inputTagSEG = cms.untracked.InputTag('dt4DSegments'), inputTagGMT = cms.untracked.InputTag('gtDigis'), processDDU = cms.untracked.bool(True), # Not needed any longer. Switches below for 2016 Eras and onwards processTM = cms.untracked.bool(True), # if true enables TM data analysis minBXDDU = cms.untracked.int32(7), # min BX for DDU eff computation maxBXDDU = cms.untracked.int32(15), # max BX for DDU eff computation checkRPCtriggers = cms.untracked.bool(False), # Not needed any longer. Swittches below for 2016 Eras and onwards nMinHitsPhi = cms.untracked.int32(5), phiAccRange = cms.untracked.double(30.), detailedAnalysis = cms.untracked.bool(False), #if true enables detailed analysis plots ) # # Modify for running in run 2 2016 data # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( dtTriggerEfficiencyMonitor, checkRPCtriggers = cms.untracked.bool(False),processDDU = cms.untracked.bool(False))
import FWCore.ParameterSet.Config as cms CSCIndexerESSource = cms.ESSource("EmptyESSource", recordName=cms.string("CSCIndexerRecord"), firstValid=cms.vuint32(1), iovIsRunNotTime=cms.bool(True)) CSCIndexerESProducer = cms.ESProducer("CSCIndexerESProducer", AlgoName=cms.string("CSCIndexerStartup")) # # Modify for running in run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(CSCIndexerESProducer, AlgoName=cms.string("CSCIndexerPostls1"))
etaBinSize=cms.double(0.087), nEta=cms.int32(70), nPhi=cms.int32(72)) muonDetIdAssociator = cms.ESProducer( "DetIdAssociatorESProducer", ComponentName=cms.string('MuonDetIdAssociator'), etaBinSize=cms.double(0.125), nEta=cms.int32(48), nPhi=cms.int32(48), includeBadChambers=cms.bool(False), includeGEM=cms.bool(False), includeME0=cms.bool(False)) # If running in Run 2, include bad chambers from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(muonDetIdAssociator, includeBadChambers=True) # include GEM & ME0 for phase2 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(muonDetIdAssociator, includeGEM=True) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify(muonDetIdAssociator, includeME0=True) preshowerDetIdAssociator = cms.ESProducer( "DetIdAssociatorESProducer", ComponentName=cms.string('PreshowerDetIdAssociator'), etaBinSize=cms.double(0.1), nEta=cms.int32(60), nPhi=cms.int32(30))
wireDigiTag=cms.InputTag("simMuonCSCDigis", "MuonCSCWireDigi"), stripDigiTag=cms.InputTag("simMuonCSCDigis", "MuonCSCStripDigi"), comparatorDigiTag=cms.InputTag("simMuonCSCDigis", "MuonCSCComparatorDigi"), alctDigiTag=cms.InputTag("simCscTriggerPrimitiveDigis"), clctDigiTag=cms.InputTag("simCscTriggerPrimitiveDigis"), preTriggerTag=cms.InputTag("simCscTriggerPrimitiveDigis"), correlatedLCTDigiTag=cms.InputTag("simCscTriggerPrimitiveDigis", "MPCSORTED"), # if min parameter = -999 always accept alctWindowMin=cms.int32(-3), alctWindowMax=cms.int32(3), clctWindowMin=cms.int32(-3), clctWindowMax=cms.int32(3), preTriggerWindowMin=cms.int32(-3), preTriggerWindowMax=cms.int32(1)) ## ## Make changes for running in Run 2 ## # packer - simply get rid of it from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(cscpacker, useFormatVersion=cms.uint32(2013)) run2_common.toModify(cscpacker, usePreTriggers=cms.bool(False)) run2_common.toModify(cscpacker, packEverything=cms.bool(True)) ## in Run-3 include GEMs from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(cscpacker, padDigiClusterTag=cms.InputTag("simMuonGEMPadDigiClusters")) run3_GEM.toModify(cscpacker, useGEMs=cms.bool(False))
ecalBadCalibFilter = cms.EDFilter( "EcalBadCalibFilter", # use this if using AOD: # the Ecal rechit collection found in AOD EcalRecHitSource = cms.InputTag('reducedEcalRecHitsEE'), # use this if using MINIAOD: # the Ecal rechit collection found in MINIAOD # EERecHitSource = cms.InputTag('reducedEgamma','reducedEERecHits'), # minimum rechit et to flag as bad: ecalMinEt = cms.double(50.), # DetId of bad channel: baddetEcal = cms.vuint32(), taggingMode = cms.bool(False), #prints debug info for each channel if set to true debug = cms.bool(False), ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(ecalBadCalibFilter, baddetEcal = [872439604,872422825,872420274,872423218, 872423215,872416066,872435036,872439336, 872420273,872436907,872420147,872439731, 872436657,872420397,872439732,872439339, 872439603,872422436])
import FWCore.ParameterSet.Config as cms CSCChannelMapperESSource = cms.ESSource("EmptyESSource", recordName = cms.string("CSCChannelMapperRecord"), firstValid = cms.vuint32(1), iovIsRunNotTime = cms.bool(True) ) CSCChannelMapperESProducer = cms.ESProducer("CSCChannelMapperESProducer", AlgoName = cms.string("CSCChannelMapperStartup") ) # # Modify for running in run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( CSCChannelMapperESProducer, AlgoName=cms.string("CSCChannelMapperPostls1") )
doSiPMSmearing=cms.bool(False), sipmTau=cms.double(0.), ), ) hcalSimParameters.hoZecotek = hcalSimParameters.ho.clone() hcalSimParameters.hoZecotek.photoelectronsToAnalog = [3.0] * 16 hcalSimParameters.hoHamamatsu = hcalSimParameters.ho.clone() hcalSimParameters.hoHamamatsu.photoelectronsToAnalog = [3.0] * 16 # Customises the HCal digitiser for post LS1 running from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(hcalSimParameters, ho=dict(photoelectronsToAnalog=cms.vdouble([4.0] * 16), siPMCode=cms.int32(1)), hf1=dict(samplingFactor=cms.double(0.67)), hf2=dict(samplingFactor=cms.double(0.67))) from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017 run2_HE_2017.toModify(hcalSimParameters, he=dict( doSiPMSmearing=cms.bool(True), sipmTau=cms.double(10.), )) from Configuration.Eras.Modifier_run3_HB_cff import run3_HB run3_HB.toModify(hcalSimParameters, hb=dict( doSiPMSmearing=cms.bool(True), sipmTau=cms.double(10.),
import FWCore.ParameterSet.Config as cms from SimMuon.GEMDigitizer.simMuonGEMDigisDef_cfi import * simMuonGEMDigis = simMuonGEMDigisDef.clone() from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2 premix_stage2.toModify(simMuonGEMDigis, mixLabel="mixData") from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(simMuonGEMDigis, instLumi=1.5, bx0filter=True) from Configuration.Eras.Modifier_run3_common_cff import run3_common run3_common.toModify(simMuonGEMDigis, instLumi=2.0, bx0filter=True) from Configuration.Eras.Modifier_phase2_common_cff import phase2_common phase2_common.toModify(simMuonGEMDigis, instLumi=5, bx0filter=False)
# root folder for booking of histograms folderRoot = cms.untracked.string(''), # Read old delays from file or from Db readOldFromDb = cms.bool(False), # Input file name for old delays oldDelaysInputFile = cms.string("dtOldFineDelays.txt"), # Write new delays to file or to Db writeDB = cms.bool(False), # output file name outputFile = cms.string("dtFineDelaysNew.txt"), # Tag for the t0Mean Histograms t0MeanHistoTag = cms.string("TrackCrossingTimeAll"), # Hardware Source (DDU or TM) hwSource = cms.string("DDU"), # Choose to use Hist Mean or Gaussian Fit Mean gaussMean = cms.bool(False), # Require Minimum Number Of Entries in the t0Mean Histogram minEntries = cms.untracked.int32(300) #bxTimeInterval = cms.double(24.95), #rangeWithinBX = cms.bool(True), #dbFromTM = cms.bool(False) ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( dtFineDelayCorr, hwSources = cms.untracked.vstring('TM'))
import FWCore.ParameterSet.Config as cms HBHENoiseFilterResultProducer = cms.EDProducer( 'HBHENoiseFilterResultProducer', noiselabel = cms.InputTag('hcalnoise'), minHPDHits = cms.int32(17), minHPDNoOtherHits = cms.int32(10), minZeros = cms.int32(9999), IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(True), defaultDecision = cms.string("HBHENoiseFilterResultRun2Loose"), minNumIsolatedNoiseChannels = cms.int32(10), minIsolatedNoiseSumE = cms.double(50.0), minIsolatedNoiseSumEt = cms.double(25.0), useBunchSpacingProducer = cms.bool(True) ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(HBHENoiseFilterResultProducer, IgnoreTS4TS5ifJetInLowBVRegion=False)
cms.PSet(name=cms.string("PFRecHitQTestHCALChannel"), maxSeverities=cms.vint32(11), cleaningThresholds=cms.vdouble(0.0), flags=cms.vstring('Standard')))))) # # Need to change the quality tests for Run 2 # def _modifyParticleFlowRecHitHOForRun2(object): """ Customises PFRecHitProducer for Run 2 by lowering the HO threshold for SiPM """ for prod in object.producers: prod.qualityTests = cms.VPSet( cms.PSet( name=cms.string("PFRecHitQTestThreshold"), threshold=cms.double(0.05) # new threshold for SiPM HO ), cms.PSet(name=cms.string("PFRecHitQTestHCALChannel"), maxSeverities=cms.vint32(11), cleaningThresholds=cms.vdouble(0.0), flags=cms.vstring('Standard'))) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(particleFlowRecHitHO, func=_modifyParticleFlowRecHitHOForRun2)
hwSources=cms.untracked.vstring('TM', 'DDU'), # false if DTLocalTriggerTask used LTC digis localrun=cms.untracked.bool(True), # root folder for booking of histograms folderRoot=cms.untracked.string(''), # Read old delays from file or from Db readOldFromDb=cms.bool(False), # Input file name for old delays oldDelaysInputFile=cms.string("dtOldFineDelays.txt"), # Write new delays to file or to Db writeDB=cms.bool(False), # output file name outputFile=cms.string("dtFineDelaysNew.txt"), # Tag for the t0Mean Histograms t0MeanHistoTag=cms.string("TrackCrossingTimeAll"), # Hardware Source (DDU or TM) hwSource=cms.string("DDU"), # Choose to use Hist Mean or Gaussian Fit Mean gaussMean=cms.bool(False), # Require Minimum Number Of Entries in the t0Mean Histogram minEntries=cms.untracked.int32(300) #bxTimeInterval = cms.double(24.95), #rangeWithinBX = cms.bool(True), #dbFromTM = cms.bool(False) ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(dtFineDelayCorr, hwSources=cms.untracked.vstring('TM'))
nPhi = cms.int32(72) ) muonDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer", ComponentName = cms.string('MuonDetIdAssociator'), etaBinSize = cms.double(0.125), nEta = cms.int32(48), nPhi = cms.int32(48), includeBadChambers = cms.bool(False), includeGEM = cms.bool(False), includeME0 = cms.bool(False) ) # If running in Run 2, include bad chambers from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( muonDetIdAssociator, includeBadChambers = True ) # include GEM & ME0 for phase2 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( muonDetIdAssociator, includeGEM = True ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( muonDetIdAssociator, includeME0 = True ) phase2_muon.toModify( hcalDetIdAssociator, hcalRegion = 1 ) preshowerDetIdAssociator = cms.ESProducer("DetIdAssociatorESProducer", ComponentName = cms.string('PreshowerDetIdAssociator'), etaBinSize = cms.double(0.1), nEta = cms.int32(60), nPhi = cms.int32(30) )
timePhase = cms.double(-4.0), doSiPMSmearing = cms.bool(False), sipmTau = cms.double(0.), ), ) hcalSimParameters.hoZecotek = hcalSimParameters.ho.clone() hcalSimParameters.hoHamamatsu = hcalSimParameters.ho.clone() # Customises the HCal digitiser for post LS1 running from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( hcalSimParameters, ho = dict( siPMCode = cms.int32(1) ), hf1 = dict( samplingFactor = cms.double(0.67) ), hf2 = dict( samplingFactor = cms.double(0.67) ) ) from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017 run2_HE_2017.toModify( hcalSimParameters, he = dict( doSiPMSmearing = cms.bool(True), sipmTau = cms.double(10.), ) ) from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017 run2_HF_2017.toModify( hcalSimParameters, hf1 = dict(
), BackProbability=cms.double(0.2), TreeEMID=cms.string('emParticles'), TreeHadID=cms.string('hadParticles'), Verbosity=cms.untracked.bool(False), ApplyFiducialCut=cms.bool(True), BranchEvt=cms.untracked.string(''), BranchPre=cms.untracked.string(''), BranchPost=cms.untracked.string(''))), GFlash=cms.PSet(GflashExportToFastSim=cms.bool(True), GflashHadronPhysics=cms.string('QGSP_BERT'), GflashEMShowerModel=cms.bool(False), GflashHadronShowerModel=cms.bool(True), GflashHcalOuter=cms.bool(False), GflashHistogram=cms.bool(False), GflashHistogramName=cms.string('gflash_histogram.root'), Verbosity=cms.untracked.int32(0), bField=cms.double(3.8), watcherOn=cms.bool(False), tuning_pList=cms.vdouble())) FamosCalorimetryBlock.Calorimetry.ECAL.Digitizer = True FamosCalorimetryBlock.Calorimetry.HCAL.Digitizer = True from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( FamosCalorimetryBlock.Calorimetry.HFShowerLibrary, FileName='SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root') run2_common.toModify(FamosCalorimetryBlock.Calorimetry.HFShower, ProbMax=0.5)
'keep *_mixData_HcalSamples_*', 'keep *_mix_HcalHits_*', 'keep *_mixData_HcalHits_*', )) SimCalorimetryRAW = cms.PSet(outputCommands=cms.untracked.vstring( 'keep EBSrFlagsSorted_simEcalDigis_*_*', 'keep EESrFlagsSorted_simEcalDigis_*_*')) SimCalorimetryRECO = cms.PSet(outputCommands=cms.untracked.vstring()) SimCalorimetryAOD = cms.PSet(outputCommands=cms.untracked.vstring()) # # Add extra event content if running in Run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_simHcalUnsuppressedDigis_*_*')) run2_common.toModify(SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_simHcalUnsuppressedDigis_*_*')) from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing phase2_timing.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_mix_EETimeDigi_*')) phase2_timing.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_mix_EBTimeDigi_*')) phase2_timing.toModify(SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append(
import FWCore.ParameterSet.Config as cms TrackerSimHitsBlock = cms.PSet( TrackerSimHits = cms.PSet( # Smallest charged particle pT for which SimHit's are saved (GeV/c) pTmin = cms.untracked.double(0.2), # Save SimHit's only for the first loop firstLoop = cms.untracked.bool(True) ) ) # # Modify for running in Run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( TrackerSimHitsBlock.TrackerSimHits, pTmin = 0.1 )
recHitCleaners = cms.VPSet(), seedFinder = _localMaxSeeds_HO, initialClusteringStep = _topoClusterizer_HO, pfClusterBuilder = _pfClusterizer_HO, positionReCalc = cms.PSet(), energyCorrector = cms.PSet() ) # # Need to change the quality tests for Run 2 # def _modifyParticleFlowClusterHOForRun2( object ) : """ Customises PFClusterProducer for Run 2. """ for p in object.seedFinder.thresholdsByDetector: p.seedingThreshold = cms.double(0.08) for p in object.initialClusteringStep.thresholdsByDetector: p.gatheringThreshold = cms.double(0.05) for p in object.pfClusterBuilder.recHitEnergyNorms: p.recHitEnergyNorm = cms.double(0.05) object.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05) object.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05) # Call the function above to modify particleFlowClusterHO only if the run2 era is active from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( particleFlowClusterHO, func=_modifyParticleFlowClusterHOForRun2 )
import FWCore.ParameterSet.Config as cms # # This cfi should be included to build the CSC geometry model. # # modelling flags (for completeness - internal defaults are already sane) # GF would like to have a shorter name (e.g. CSCGeometry), but since originally # there was no name, replace statements in other configs would not work anymore... CSCGeometryESModule = cms.ESProducer("CSCGeometryESModule", appendToDataLabel = cms.string(''), debugV = cms.untracked.bool(False), useGangedStripsInME1a = cms.bool(True), alignmentsLabel = cms.string(''), useOnlyWiresInME1a = cms.bool(False), useRealWireGeometry = cms.bool(True), useCentreTIOffsets = cms.bool(False), applyAlignment = cms.bool(True), ## GF: to be abandoned useDDD = cms.bool(False) ) # # Modify for running in run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( CSCGeometryESModule, useGangedStripsInME1a=False )
# Anode-DAQ rate determined by pre-CLCTs keepCLCTPreTriggers=cms.bool(True), # Anode-DAQ rate determined by ALCTs keepALCTPreTriggers=cms.bool(False), # special triggers for showers in chambers keepShowers=cms.bool(False), commonParam=auxPSets.commonParam.clone(), mpcParam=auxPSets.mpcParamRun1.clone(), showerParam=showerPSet.clone()) ## unganging in ME1/a ## no sorting/selecting in MPC from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(cscTriggerPrimitiveDigis, debugParameters=True, checkBadChambers=False, commonParam=dict(gangedME1a=False), mpcParam=auxPSets.mpcParamRun2.clone()) ## turn on upgrade CSC algorithm without GEMs ## originally intended for Phase-2, but moved up to Run-3 from Configuration.Eras.Modifier_run3_common_cff import run3_common run3_common.toModify(cscTriggerPrimitiveDigis, keepShowers=True, commonParam=dict(run3=True, runCCLUT_OTMB=True, runPhase2=True, runME11Up=True, runME21Up=True, runME31Up=True, runME41Up=True))
shapingTime = cms.int32(30), readBadChannels = cms.bool(False), timeBitForBxZero = cms.int32(6), samplingTime = cms.double(5.0), # bunchTimingOffsets - comments for strips (above) also apply bunchTimingOffsets = cms.vdouble(0.00, 21.64, 21.64, 28.29, 29.36, 29.33, 28.57, 28.61, 28.83, 29.09, 28.22), tailShaping = cms.int32(2), doNoise = cms.bool(True) ), mixLabel = cms.string("mix"), InputCollection = cms.string("g4SimHitsMuonCSCHits"), stripConditions = cms.string('Database'), GeometryType = cms.string('idealForDigi'), digitizeBadChambers = cms.bool(False), layersNeeded = cms.uint32(3), dumpGasCollisions = cms.untracked.bool(False) ) ## ## Change the the bunch timing offsets if running in Run 2 ## from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( simMuonCSCDigis.strips, bunchTimingOffsets=[0.0, 37.53, 37.66, 55.4, 48.2, 54.45, 53.78, 53.38, 54.12, 51.98, 51.28] ) run2_common.toModify( simMuonCSCDigis.wires, bunchTimingOffsets=[0.0, 22.88, 22.55, 29.28, 30.0, 30.0, 30.5, 31.0, 29.5, 29.1, 29.88] ) from Configuration.Eras.Modifier_fastSim_cff import fastSim if fastSim.isChosen(): simMuonCSCDigis.InputCollection = 'MuonSimHitsMuonCSCHits'
# minimum rechit et to flag as bad: ecalMinEt = cms.double(50.), # DetId of bad channel: baddetEcal = cms.vuint32(), taggingMode = cms.bool(False), #prints debug info for each channel if set to true debug = cms.bool(False), ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(ecalBadCalibFilter, baddetEcal = [872439604,872422825,872420274,872423218, 872423215,872416066,872435036,872439336, 872420273,872436907,872420147,872439731, 872436657,872420397,872439732,872439339, 872439603]) from Configuration.Eras.Modifier_run2_miniAOD_devel_cff import run2_miniAOD_devel from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv1_cff import run2_nanoAOD_94XMiniAODv1 from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv2_cff import run2_nanoAOD_94XMiniAODv2 from Configuration.Eras.Modifier_run2_nanoAOD_102Xv1_cff import run2_nanoAOD_102Xv1 (run2_miniAOD_devel | run2_nanoAOD_94XMiniAODv1 | run2_nanoAOD_94XMiniAODv2 | run2_nanoAOD_102Xv1).toModify(ecalBadCalibFilter, baddetEcal = ecalBadCalibFilter.baddetEcal + [872422436,872439861,872437051, 872437052,872420649,872421950,872437185, 872422564,872421566,872421695,872421955, 872421567,872437184,872421951,872421694, 872437056,872437057,872437313]) (run2_nanoAOD_94XMiniAODv1 | run2_nanoAOD_94XMiniAODv2 | run2_nanoAOD_102Xv1).toModify(ecalBadCalibFilter, EcalRecHitSource = 'reducedEgamma:reducedEERecHits')
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1tCsctf = DQMEDAnalyzer( "L1TCSCTF", gmtProducer=cms.InputTag("l1GtUnpack"), statusProducer=cms.InputTag("csctfDigis"), outputFile=cms.untracked.string(''), lctProducer=cms.InputTag("csctfDigis"), verbose=cms.untracked.bool(False), gangedME11a=cms.untracked.bool(True), ## Run2: False; Run1: True trackProducer=cms.InputTag("csctfDigis"), mbProducer=cms.InputTag("csctfDigis:DT"), DQMStore=cms.untracked.bool(True), disableROOToutput=cms.untracked.bool(True)) # # Make changes for running in Run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(l1tCsctf, gangedME11a=False)
BackProbability = cms.double(0.2), TreeEMID = cms.string('emParticles'), TreeHadID = cms.string('hadParticles'), Verbosity = cms.untracked.bool(False), ApplyFiducialCut = cms.bool(True), BranchEvt = cms.untracked.string(''), BranchPre = cms.untracked.string(''), BranchPost = cms.untracked.string('') ) ), GFlash = cms.PSet( GflashExportToFastSim = cms.bool(True), GflashHadronPhysics = cms.string('QGSP_BERT'), GflashEMShowerModel = cms.bool(False), GflashHadronShowerModel = cms.bool(True), GflashHcalOuter = cms.bool(False), GflashHistogram = cms.bool(False), GflashHistogramName = cms.string('gflash_histogram.root'), Verbosity = cms.untracked.int32(0), bField = cms.double(3.8), watcherOn = cms.bool(False), tuning_pList = cms.vdouble() ) ) FamosCalorimetryBlock.Calorimetry.ECAL.Digitizer = True FamosCalorimetryBlock.Calorimetry.HCAL.Digitizer = True from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(FamosCalorimetryBlock.Calorimetry.HFShowerLibrary, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' )
import FWCore.ParameterSet.Config as cms from SimMuon.GEMDigitizer.simMuonGEMDigisDef_cfi import * simMuonGEMDigis = simMuonGEMDigisDef.clone() from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2 premix_stage2.toModify(simMuonGEMDigis, mixLabel="mixData") from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(simMuonGEMDigis, instLumi=1.5) from Configuration.Eras.Modifier_run3_common_cff import run3_common run3_common.toModify(simMuonGEMDigis, instLumi=2.0) from Configuration.Eras.Modifier_phase2_common_cff import phase2_common phase2_common.toModify(simMuonGEMDigis, instLumi=5)
SegmArbitration=cms.untracked.string("SegmentAndTrackArbitration"), # labels of DDU/TM data and 4D segments inputTagTM=cms.untracked.InputTag('dttfDigis'), # inputTagTM = cms.untracked.InputTag('dttfDigis'), inputTagDDU=cms.untracked.InputTag('muonDTDigis'), inputTagSEG=cms.untracked.InputTag('dt4DSegments'), inputTagGMT=cms.untracked.InputTag('gtDigis'), processDDU=cms.untracked.bool( True ), # Not needed any longer. Switches below for 2016 Eras and onwards processTM=cms.untracked.bool(True), # if true enables TM data analysis minBXDDU=cms.untracked.int32(7), # min BX for DDU eff computation maxBXDDU=cms.untracked.int32(15), # max BX for DDU eff computation checkRPCtriggers=cms.untracked.bool( False ), # Not needed any longer. Swittches below for 2016 Eras and onwards nMinHitsPhi=cms.untracked.int32(5), phiAccRange=cms.untracked.double(30.), detailedAnalysis=cms.untracked.bool( False), #if true enables detailed analysis plots ) # # Modify for running in run 2 2016 data # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(dtTriggerEfficiencyMonitor, checkRPCtriggers=cms.untracked.bool(False), processDDU=cms.untracked.bool(False))
RealPedestals = cms.bool(True), #The pedestal for each stip is read from the Db. if False it is added to all the strips the cnetral strip pedestal value SingleStripNoise = cms.bool(True), #The noise RMS is read from the Db. If false it is considered the central strip noise CommonModeNoise = cms.bool(True), BaselineShift = cms.bool(True), APVSaturationFromHIP = cms.bool(False), APVSaturationProbScaling = cms.double(1.0), APVProbabilityFile = cms.FileInPath("SimTracker/SiStripDigitizer/data/APVProbaList.txt"), cmnRMStib = cms.double(5.92), cmnRMStob = cms.double(1.08), cmnRMStid = cms.double(3.08), cmnRMStec = cms.double(2.44), PedestalsOffset = cms.double(128), # TOFCutForDeconvolution = cms.double(50.0), TOFCutForPeak = cms.double(100.0), Inefficiency = cms.double(0.0) ) from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1 premix_stage1.toModify(SiStripSimBlock, Noise = False, PreMixingMode = True, FedAlgorithm = 5, # special ZS mode: accept adc>0 ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(SiStripSimBlock, CouplingConstantsRunIIDecB = True, #for TIB and TOB CouplingConstantsRunIIDecW = True #for TID and TEC )
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester triggerLutTest = DQMEDHarvester("DTLocalTriggerLutTest", # prescale factor (in luminosity blocks) to perform client analysis diagnosticPrescale = cms.untracked.int32(1), # run in online environment runOnline = cms.untracked.bool(True), # kind of trigger data processed by DTLocalTriggerTask hwSources = cms.untracked.vstring('TM','DDU'), # false if DTLocalTriggerTask used LTC digis localrun = cms.untracked.bool(True), # enable/disable correlation plot tests doCorrelationStudy = cms.untracked.bool(False), # root folder for booking of histograms folderRoot = cms.untracked.string('') ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( triggerLutTest, hwSources = cms.untracked.vstring('TM'))
SingleStripNoise = cms.bool(True), #The noise RMS is read from the Db. If false it is considered the central strip noise CommonModeNoise = cms.bool(True), BaselineShift = cms.bool(True), APVSaturationFromHIP = cms.bool(False), APVSaturationProbScaling = cms.double(1.0), APVProbabilityFile = cms.FileInPath("SimTracker/SiStripDigitizer/data/APVProbaList.txt"), cmnRMStib = cms.double(5.92), cmnRMStob = cms.double(1.08), cmnRMStid = cms.double(3.08), cmnRMStec = cms.double(2.44), PedestalsOffset = cms.double(128), # TOFCutForDeconvolution = cms.double(50.0), TOFCutForPeak = cms.double(100.0), Inefficiency = cms.double(0.0) ) from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1 premix_stage1.toModify(SiStripSimBlock, Noise = False, PreMixingMode = True, FedAlgorithm = 5, # special ZS mode: accept adc>0 ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(SiStripSimBlock, CouplingConstantsRunIIDecB = True, #for TIB and TOB CouplingConstantsRunIIDecW = True, #for TID and TEC APVShapeDecoFile =cms.FileInPath("SimTracker/SiStripDigitizer/data/APVShapeDeco_320.txt") )
import FWCore.ParameterSet.Config as cms l1tCsctf = cms.EDAnalyzer("L1TCSCTF", gmtProducer = cms.InputTag("l1GtUnpack"), statusProducer = cms.InputTag("csctfDigis"), outputFile = cms.untracked.string(''), lctProducer = cms.InputTag("csctfDigis"), verbose = cms.untracked.bool(False), gangedME11a = cms.untracked.bool(True), ## Run2: False; Run1: True trackProducer = cms.InputTag("csctfDigis"), mbProducer = cms.InputTag("csctfDigis:DT"), DQMStore = cms.untracked.bool(True), disableROOToutput = cms.untracked.bool(True) ) # # Make changes for running in Run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( l1tCsctf, gangedME11a = False )
CommonModeNoise=cms.bool(True), BaselineShift=cms.bool(True), APVSaturationFromHIP=cms.bool(False), APVSaturationProbScaling=cms.double(1.0), APVProbabilityFile=cms.FileInPath( "SimTracker/SiStripDigitizer/data/APVProbaList.txt"), cmnRMStib=cms.double(5.92), cmnRMStob=cms.double(1.08), cmnRMStid=cms.double(3.08), cmnRMStec=cms.double(2.44), PedestalsOffset=cms.double(128), # TOFCutForDeconvolution=cms.double(50.0), TOFCutForPeak=cms.double(100.0), Inefficiency=cms.double(0.0)) from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1 premix_stage1.toModify( SiStripSimBlock, Noise=False, PreMixingMode=True, FedAlgorithm=5, # special ZS mode: accept adc>0 ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( SiStripSimBlock, CouplingConstantsRunIIDecB=True, #for TIB and TOB CouplingConstantsRunIIDecW=True #for TID and TEC )
useHighMultiplicityBits=cms.bool(False), ) # MPC sorter config for Run2 and beyond mpcParamsRun2 = cms.PSet( sortStubs=cms.bool(False), dropInvalidStubs=cms.bool(False), dropLowQualityStubs=cms.bool(False), maxStubs=cms.uint32(18), ) ## unganging in ME1/a from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(cscTriggerPrimitiveDigis, debugParameters=True, checkBadChambers=False, commonParam=dict(gangedME1a=False), mpcParams=mpcParamsRun2) ## GEM-CSC ILT in ME1/1 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( cscTriggerPrimitiveDigis, GEMPadDigiProducer=cms.InputTag("simMuonGEMPadDigis"), GEMPadDigiClusterProducer=cms.InputTag("simMuonGEMPadDigiClusters"), commonParam=dict(isSLHC=True, runME11Up=cms.bool(True), runME11ILT=cms.bool(True), useClusters=cms.bool(False), enableAlctSLHC=cms.bool(True)), clctSLHC=dict(clctNplanesHitPattern=3),
outputCommands = cms.untracked.vstring('keep *_simMuonCSCDigis_*_*', 'keep *_simMuonDTDigis_*_*', 'keep *_simMuonRPCDigis_*_*') ) #RAW content SimMuonRAW = cms.PSet( outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*', 'keep CSCDetIdCSCComparatorDigiMuonDigiCollection_simMuonCSCDigis_*_*', 'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*', 'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*') ) # Add extra collections if running in Run 2. Not sure why but these # collections were added to pretty much all event content in the old # customisation function. from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonCSCDigis_*_*') ) run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonRPCDigis_*_*') ) #RECO content SimMuonRECO = cms.PSet( outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*', 'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*', 'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*') ) #AOD content SimMuonAOD = cms.PSet( outputCommands = cms.untracked.vstring() ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*',
SimCalorimetryRAW = cms.PSet( outputCommands = cms.untracked.vstring('keep EBSrFlagsSorted_simEcalDigis_*_*', 'keep EESrFlagsSorted_simEcalDigis_*_*') ) SimCalorimetryRECO = cms.PSet( outputCommands = cms.untracked.vstring() ) SimCalorimetryAOD = cms.PSet( outputCommands = cms.untracked.vstring() ) # # Add extra event content if running in Run 2 # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*') ) run2_common.toModify( SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*') ) from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal phase2_hcal.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_DMHcalDigis_*_*') ) from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing phase2_timing.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_mix_EETimeDigi_*') ) phase2_timing.toModify(SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_mix_EBTimeDigi_*') ) phase2_timing.toModify(SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_mix_EETimeDigi_*') ) phase2_timing.toModify(SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_mix_EBTimeDigi_*') ) from Configuration.Eras.Modifier_phase2_common_cff import phase2_common phase2_common.toModify( SimCalorimetryFEVTDEBUG.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simEcalUnsuppressedDigis_*_*') ) phase2_common.toModify( SimCalorimetryRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simEcalUnsuppressedDigis_*_*') )
QualityEnableME1f=cms.uint32(65535), QualityEnableME2a=cms.uint32(65535), QualityEnableME2b=cms.uint32(65535), QualityEnableME2c=cms.uint32(65535), QualityEnableME3a=cms.uint32(65535), QualityEnableME3b=cms.uint32(65535), QualityEnableME3c=cms.uint32(65535), QualityEnableME4a=cms.uint32(65535), QualityEnableME4b=cms.uint32(65535), QualityEnableME4c=cms.uint32(65535), firmwareSP=cms.uint32(20120319), #core 20120313 firmwareFA=cms.uint32(20091026), firmwareDD=cms.uint32(20091026), firmwareVM=cms.uint32(20091026), isCoreVerbose=cms.bool(False), #use firmware version and PTLUTs listed in this files if True #use firmware and PTLUTs from O2O if False #initializeFromPSet = cms.bool(True) initializeFromPSet=cms.bool(False)), isTMB07=cms.bool(True), useDT=cms.bool(True), readDtDirect=cms.bool(False), ) # # If the run2 era is active, make the required changes # from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(csctfTrackDigis, _modifyCsctfTrackDigisForRun2)
import FWCore.ParameterSet.Config as cms dtTriggerBaseMonitor = cms.EDAnalyzer("DTLocalTriggerBaseTask", testPulseMode = cms.untracked.bool(False), detailedAnalysis = cms.untracked.bool(False), targetBXTM = cms.untracked.int32(0), targetBXDDU = cms.untracked.int32(9), bestTrigAccRange = cms.untracked.int32(3), processDDU = cms.untracked.bool(True), #Not needed any longer, switches below for 2016 Eras and onwards processTM = cms.untracked.bool(True), nTimeBins = cms.untracked.int32(100), nLSTimeBin = cms.untracked.int32(15), ResetCycle = cms.untracked.int32(9999), inputTagTM = cms.untracked.InputTag('twinMuxStage2Digis:PhIn'), inputTagTMphIn = cms.untracked.InputTag('twinMuxStage2Digis:PhIn'), inputTagTMphOut = cms.untracked.InputTag('twinMuxStage2Digis:PhOut'), inputTagTMth = cms.untracked.InputTag('twinMuxStage2Digis:ThIn'), inputTagDDU = cms.untracked.InputTag('dtunpacker'), minBXDDU = cms.untracked.int32(0), maxBXDDU = cms.untracked.int32(20), minBXTM = cms.untracked.int32(-2), maxBXTM = cms.untracked.int32(2) ) from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( dtTriggerBaseMonitor, processDDU = cms.untracked.bool(False))
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer HcalSimHitsAnalyser = DQMEDAnalyzer('HcalSimHitsValidation', outputFile=cms.untracked.string(''), hf1=cms.double(1 / 0.383), hf2=cms.double(1 / 0.368)) from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toModify(HcalSimHitsAnalyser, ModuleLabel=cms.untracked.string("fastSimProducer")) from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 (run2_HCAL_2017 & ~fastSim).toModify(HcalSimHitsAnalyser, TestNumber=cms.untracked.bool(True)) from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal phase2_hcal.toModify(HcalSimHitsAnalyser, EEHitCollection=cms.untracked.string("")) # post-LS1 switch for sampling factors from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(HcalSimHitsAnalyser, hf1=cms.double(1 / 0.67), hf2=cms.double(1 / 0.67))
#Full Event content with DIGI SimMuonFEVTDEBUG = cms.PSet(outputCommands=cms.untracked.vstring( 'keep *_simMuonCSCDigis_*_*', 'keep *_simMuonDTDigis_*_*', 'keep *_simMuonRPCDigis_*_*')) #RAW content SimMuonRAW = cms.PSet(outputCommands=cms.untracked.vstring( 'keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*', 'keep CSCDetIdCSCComparatorDigiMuonDigiCollection_simMuonCSCDigis_*_*', 'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*', 'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')) # Add extra collections if running in Run 2. Not sure why but these # collections were added to pretty much all event content in the old # customisation function. from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_simMuonCSCDigis_*_*')) run2_common.toModify(SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append( 'keep *_simMuonRPCDigis_*_*')) #RECO content SimMuonRECO = cms.PSet(outputCommands=cms.untracked.vstring( 'keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*', 'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*', 'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')) #AOD content SimMuonAOD = cms.PSet(outputCommands=cms.untracked.vstring()) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(
import FWCore.ParameterSet.Config as cms cscpacker = cms.EDProducer("CSCDigiToRawModule", wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi"), stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi"), comparatorDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCComparatorDigi"), alctDigiTag = cms.InputTag("simCscTriggerPrimitiveDigis"), clctDigiTag = cms.InputTag("simCscTriggerPrimitiveDigis"), preTriggerTag = cms.InputTag("simCscTriggerPrimitiveDigis"), correlatedLCTDigiTag = cms.InputTag("simCscTriggerPrimitiveDigis", "MPCSORTED"), # if min parameter = -999 always accept alctWindowMin = cms.int32(-3), alctWindowMax = cms.int32(3), clctWindowMin = cms.int32(-3), clctWindowMax = cms.int32(3), preTriggerWindowMin = cms.int32(-3), preTriggerWindowMax = cms.int32(1) ) ## ## Make changes for running in Run 2 ## # packer - simply get rid of it from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( cscpacker, useFormatVersion = cms.uint32(2013) ) run2_common.toModify( cscpacker, usePreTriggers = cms.bool(False) ) run2_common.toModify( cscpacker, packEverything = cms.bool(True) )
positionReCalc=cms.PSet(), energyCorrector=cms.PSet()) # # Need to change the quality tests for Run 2 # def _modifyParticleFlowClusterHOForRun2(object): """ Customises PFClusterProducer for Run 2. """ for p in object.seedFinder.thresholdsByDetector: p.seedingThreshold = cms.double(0.08) for p in object.initialClusteringStep.thresholdsByDetector: p.gatheringThreshold = cms.double(0.05) for p in object.pfClusterBuilder.recHitEnergyNorms: p.recHitEnergyNorm = cms.double(0.05) object.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double( 0.05) object.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double( 0.05) # Call the function above to modify particleFlowClusterHO only if the run2 era is active from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify(particleFlowClusterHO, func=_modifyParticleFlowClusterHOForRun2)
# wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi"), # stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi"), # # Use dead channels information readBadChannels = cms.bool(True), readBadChambers = cms.bool(True), # # Do we use the chip and chamber and L1A phase corrections when filling the recHit time? # CSCUseTimingCorrections = cms.bool(True), # # Do we correct the energy deposited for gas gains? CSCUseGasGainCorrections = cms.bool(True), # # Parameters which are not used currently # CSCDebug = cms.untracked.bool(False), # To be set once wire digis have proper timing info: CSCstripWireDeltaTime = cms.int32(8), # to be deleted CSCStripClusterSize = cms.untracked.int32(3) ) ## ## Modify for running in Run 2 ## from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( csc2DRecHits, readBadChannels = False ) run2_common.toModify( csc2DRecHits, CSCUseGasGainCorrections = False )
), HGCalTestBeamSD = cms.PSet( Material = cms.string('Scintillator'), UseBirkLaw = cms.bool(False), BirkC1 = cms.double(0.013), BirkC3 = cms.double(1.75), BirkC2 = cms.double(0.0568), ), HcalTB06BeamSD = cms.PSet( UseBirkLaw = cms.bool(False), BirkC1 = cms.double(0.013), BirkC3 = cms.double(1.75), BirkC2 = cms.double(0.0568) ) ) ## ## Change the HFShowerLibrary file used for Run 2 ## from Configuration.Eras.Modifier_run2_common_cff import run2_common run2_common.toModify( g4SimHits.HFShowerLibrary, FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root' ) from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 run2_HCAL_2017.toModify( g4SimHits, HCalSD = dict( TestNumberingScheme = True ) ) from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing phase2_timing.toModify( g4SimHits.ECalSD, StoreLayerTimeSim = cms.untracked.bool(True), TimeSliceUnit = cms.double(0.001) ) from Configuration.Eras.Modifier_phase2_common_cff import phase2_common phase2_common.toModify(g4SimHits.HCalSD, doNeutralDensityFilter = cms.bool(True))