diff --git a/Configuration/Eras/python/Era_Phase2_cff.py b/Configuration/Eras/python/Era_Phase2_cff.py index 7702dd3b83a1c..9e76017824dff 100644 --- a/Configuration/Eras/python/Era_Phase2_cff.py +++ b/Configuration/Eras/python/Era_Phase2_cff.py @@ -15,5 +15,6 @@ from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 -Phase2 = cms.ModifierChain(Run3.copyAndExclude([phase1Pixel,trackingPhase1]), phase2_common, phase2_tracker, trackingPhase2PU140, phase2_ecal, phase2_hcal, phase2_hgcal, phase2_muon, phase2_GEM, hcalHardcodeConditions, phase2_timing, phase2_timing_layer, phase2_trigger) +Phase2 = cms.ModifierChain(Run3.copyAndExclude([phase1Pixel,trackingPhase1,ctpps_2021]), phase2_common, phase2_tracker, trackingPhase2PU140, phase2_ecal, phase2_hcal, phase2_hgcal, phase2_muon, phase2_GEM, hcalHardcodeConditions, phase2_timing, phase2_timing_layer, phase2_trigger) diff --git a/Configuration/StandardSequences/python/DigiToRaw_cff.py b/Configuration/StandardSequences/python/DigiToRaw_cff.py index 0df921bc98efe..0a0896c59bda9 100644 --- a/Configuration/StandardSequences/python/DigiToRaw_cff.py +++ b/Configuration/StandardSequences/python/DigiToRaw_cff.py @@ -17,8 +17,9 @@ from EventFilter.CastorRawToDigi.CastorDigiToRaw_cfi import * from EventFilter.RawDataCollector.rawDataCollector_cfi import * from L1Trigger.Configuration.L1TDigiToRaw_cff import * +from EventFilter.CTPPSRawToDigi.ctppsDigiToRaw_cff import * -DigiToRawTask = cms.Task(L1TDigiToRawTask, siPixelRawData, SiStripDigiToRaw, ecalPacker, esDigiToRaw, hcalRawDataTask, cscpacker, dtpacker, rpcpacker, castorRawData, rawDataCollector) +DigiToRawTask = cms.Task(L1TDigiToRawTask, siPixelRawData, SiStripDigiToRaw, ecalPacker, esDigiToRaw, hcalRawDataTask, cscpacker, dtpacker, rpcpacker, ctppsRawData, castorRawData, rawDataCollector) DigiToRaw = cms.Sequence(DigiToRawTask) ecalPacker.Label = 'simEcalDigis' @@ -52,4 +53,4 @@ phase2_muon.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([rpcpacker])) from Configuration.Eras.Modifier_fastSim_cff import fastSim -fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData])) +fastSim.toReplaceWith(DigiToRawTask, DigiToRawTask.copyAndExclude([siPixelRawData,SiStripDigiToRaw,castorRawData,ctppsRawData])) diff --git a/Configuration/StandardSequences/python/Digi_cff.py b/Configuration/StandardSequences/python/Digi_cff.py index 2f91db9464322..d36d10f4fba66 100644 --- a/Configuration/StandardSequences/python/Digi_cff.py +++ b/Configuration/StandardSequences/python/Digi_cff.py @@ -20,6 +20,10 @@ # from SimMuon.Configuration.SimMuon_cff import * # +# PPS Digis +# returns sequence "ctppsDigi" +from SimPPS.Configuration.SimPPS_cff import * +# # TrackingParticle Producer is now part of the mixing module, so # it is no longer run here. # @@ -29,7 +33,7 @@ from Configuration.StandardSequences.Generator_cff import * from GeneratorInterface.Core.generatorSmeared_cfi import * -doAllDigiTask = cms.Task(generatorSmeared, calDigiTask, muonDigiTask) +doAllDigiTask = cms.Task(generatorSmeared, calDigiTask, muonDigiTask, ctppsDigiTask) from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2 # premixing stage2 runs muon digis after PreMixingModule (configured in DataMixerPreMix_cff) premix_stage2.toReplaceWith(doAllDigiTask, doAllDigiTask.copyAndExclude([muonDigiTask])) @@ -79,5 +83,3 @@ def _modifyEnableHcalHardcode( theProcess ): from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions modifyEnableHcalHardcode_ = hcalHardcodeConditions.makeProcessModifier( _modifyEnableHcalHardcode ) - - diff --git a/Configuration/StandardSequences/python/Generator_cff.py b/Configuration/StandardSequences/python/Generator_cff.py index 05fa303750296..efebc7fed5b68 100644 --- a/Configuration/StandardSequences/python/Generator_cff.py +++ b/Configuration/StandardSequences/python/Generator_cff.py @@ -55,7 +55,8 @@ GeneInfo = cms.Sequence(GeneInfoTask) genJetMET = cms.Sequence(genJetMETTask) -pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+GenSmeared+GeneInfo+genJetMET) +from SimPPS.Configuration.GenPPS_cff import * +pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+GenSmeared+GeneInfo+genJetMET, PPSTransportTask) # sequence for bare generator result only, without vertex smearing and analysis objects added diff --git a/EventFilter/CTPPSRawToDigi/python/ctppsDigiToRaw_cff.py b/EventFilter/CTPPSRawToDigi/python/ctppsDigiToRaw_cff.py new file mode 100644 index 0000000000000..fec70961835d6 --- /dev/null +++ b/EventFilter/CTPPSRawToDigi/python/ctppsDigiToRaw_cff.py @@ -0,0 +1,20 @@ +import FWCore.ParameterSet.Config as cms +from EventFilter.RawDataCollector.rawDataCollector_cfi import * + +from EventFilter.CTPPSRawToDigi.ctppsPixelRawData_cfi import ctppsPixelRawData +from EventFilter.CTPPSRawToDigi.ctppsTotemRawData_cfi import ctppsTotemRawData + +ctppsRawData = cms.Task() +# The comment lines below will be included in the next PR for Run2 + +#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 +#ctpps_2016.toReplaceWith(ctppsRawData, cms.Task(ctppsTotemRawData)) + +#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 +#ctpps_2017.toReplaceWith(ctppsRawData, cms.Task(ctppsTotemRawData,ctppsPixelRawData)) + +#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 +#ctpps_2018.toReplaceWith(ctppsRawData, cms.Task(ctppsPixelRawData)) + +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toReplaceWith(ctppsRawData, cms.Task(ctppsPixelRawData)) diff --git a/EventFilter/RawDataCollector/python/rawDataCollector_cfi.py b/EventFilter/RawDataCollector/python/rawDataCollector_cfi.py index 173d1eca02cfa..23b4beae72dbe 100644 --- a/EventFilter/RawDataCollector/python/rawDataCollector_cfi.py +++ b/EventFilter/RawDataCollector/python/rawDataCollector_cfi.py @@ -34,3 +34,7 @@ from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gemPacker")) ) + +# For Run2 it is needed to include the general ctpps era ctpps_2016 +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toModify(rawDataCollector.RawCollectionList, func = lambda list: list.extend([cms.InputTag("ctppsTotemRawData"),cms.InputTag("ctppsPixelRawData")]) ) diff --git a/IOMC/RandomEngine/python/IOMC_cff.py b/IOMC/RandomEngine/python/IOMC_cff.py index 5d3dd8101658b..c8c2b93668ca0 100644 --- a/IOMC/RandomEngine/python/IOMC_cff.py +++ b/IOMC/RandomEngine/python/IOMC_cff.py @@ -19,7 +19,7 @@ ), LHCTransport = cms.PSet( initialSeed = cms.untracked.uint32(87654321), - engineName = FastSimEngine + engineName = cms.untracked.string('TRandom3') ), hiSignalLHCTransport = cms.PSet( initialSeed = cms.untracked.uint32(88776655), @@ -148,6 +148,16 @@ simBeamSpotFilter = cms.PSet( initialSeed = cms.untracked.uint32(87654321), engineName = FullSimEngine + ), + + RPixDetDigitizer = cms.PSet( + initialSeed = cms.untracked.uint32(137137), + engineName = FullSimEngine + ), + + RPSiDetDigitizer = cms.PSet( + initialSeed = cms.untracked.uint32(137137), + engineName = FullSimEngine ) # to save the status of the last event (useful for crashes) ,saveFileName = cms.untracked.string('') diff --git a/SimG4Core/Application/python/g4SimHits_cfi.py b/SimG4Core/Application/python/g4SimHits_cfi.py index d9ae796fe3c22..7106929af7a94 100644 --- a/SimG4Core/Application/python/g4SimHits_cfi.py +++ b/SimG4Core/Application/python/g4SimHits_cfi.py @@ -576,6 +576,23 @@ 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_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toModify(g4SimHits, + Generator = dict( + HepMCProductLabel = 'LHCTransport', + MinEtaCut = -13.0, + MaxEtaCut = 13.0 + ), + SteppingAction = dict( + MaxTrackTime = 2000.0 + ), + StackingAction = dict( + MaxTrackTime = 2000.0 + ) +) + + 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 diff --git a/SimGeneral/MixingModule/python/mixObjects_cfi.py b/SimGeneral/MixingModule/python/mixObjects_cfi.py index ec097c34f8bf2..68ee1af8d3d49 100644 --- a/SimGeneral/MixingModule/python/mixObjects_cfi.py +++ b/SimGeneral/MixingModule/python/mixObjects_cfi.py @@ -294,3 +294,12 @@ crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'FastTimerHitsBarrel','FastTimerHitsEndcap' ] ) ) + +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toModify( theMixObjects, + mixSH = dict( + input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","TotemHitsRP"),cms.InputTag("g4SimHits","CTPPSPixelHits") ], + subdets = theMixObjects.mixSH.subdets + [ 'TotemHitsRP', 'CTPPSPixelHits' ], + crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'TotemHitsRP' , 'CTPPSPixelHits'] + ) +) diff --git a/SimPPS/Configuration/python/GenPPS_cff.py b/SimPPS/Configuration/python/GenPPS_cff.py new file mode 100644 index 0000000000000..5f245626016a6 --- /dev/null +++ b/SimPPS/Configuration/python/GenPPS_cff.py @@ -0,0 +1,19 @@ +import FWCore.ParameterSet.Config as cms +from SimTransport.PPSProtonTransport.PPSTransport_cff import LHCTransport + + +PPSTransportTask = cms.Task() + +# The 2016-2018 commented line below need to be activated to integrate the simulation into Run2 + +#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 +#ctpps_2016.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) + +#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 +#ctpps_2017.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) + +#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 +#ctpps_2018.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) + +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) diff --git a/SimPPS/Configuration/python/SimPPS_cff.py b/SimPPS/Configuration/python/SimPPS_cff.py new file mode 100644 index 0000000000000..92ed24fb7669d --- /dev/null +++ b/SimPPS/Configuration/python/SimPPS_cff.py @@ -0,0 +1,26 @@ +import FWCore.ParameterSet.Config as cms + +# PPS Digitization +from SimPPS.PPSPixelDigiProducer.RPixDetDigitizer_cfi import * +from SimPPS.RPDigiProducer.RPSiDetDigitizer_cfi import * +RPixDetDigitizerTask=cms.Task(RPixDetDigitizer) +RPSiDetDigitizerTask=cms.Task(RPSiDetDigitizer) + +ctppsDigiTask = cms.Task() + +# The commented lines below NEED to be activated in order to insert PPS into Run2 +# add PPS 2016 digi modules +#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 +#ctpps_2016.toReplaceWith( ctppsDigiTask, RPSiDetDigitizerTask) + +# add PPS 2017 digi modules +#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 +#ctpps_2017Task = cms.Task(RPixDetDigitizer,RPSiDetDigitizer) +#ctpps_2017.toReplaceWith(ctppsDigiTask, ctpps_2017Task) + +# add PPS 2018 digi modules +#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 +#ctpps_2018.toReplaceWith(ctppsDigiTask, RPixDetDigitizerTask) + +from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 +ctpps_2021.toReplaceWith(ctppsDigiTask, RPixDetDigitizerTask) diff --git a/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2016.py b/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2016.py new file mode 100644 index 0000000000000..02aa1bbc679fe --- /dev/null +++ b/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2016.py @@ -0,0 +1,112 @@ +import FWCore.ParameterSet.Config as cms + +import random +import math + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run2_2016) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeV2016Collision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load('Configuration.Geometry.GeometryExtended2016_CTPPS_cff') + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 1000 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) + ) + +process.source = cms.Source("EmptySource") +""" +process.source = cms.Source("EmptySource", + #firstRun = cms.untracked.uint32(306572), # 2016H data + #firstTime = cms.untracked.uint64(6487615523004612608) # this is needed because it lacks the MC tag, run based + #firstRun = cms.untracked.uint32(273730), # 2016H data + #firstTime = cms.untracked.uint64(6286859745043152896) # this is needed because it lacks the MC tag, run based + firstRun = cms.untracked.uint32(282730), # 2016H data + firstTime = cms.untracked.uint64(6339435345951588352) # this is needed because it lacks the MC tag, run based +) +""" + +process.options = cms.untracked.PSet() + + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') +#process.GlobalTag = GlobalTag(process.GlobalTag, "106X_dataRun2_v26") + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('GeneratorInterface/ExhumeInterface/python/ExHuME_CEPDijetsGG_M100_7TeV_cff.py nevts:1'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# generator + +process.generator = cms.EDFilter("ExhumeGeneratorFilter", + ExhumeParameters = cms.PSet( + AlphaEw = cms.double(0.0072974), + B = cms.double(4.0), + BottomMass = cms.double(4.6), + CharmMass = cms.double(1.42), + HiggsMass = cms.double(120.0), + HiggsVev = cms.double(246.0), + LambdaQCD = cms.double(80.0), + MinQt2 = cms.double(0.64), + MuonMass = cms.double(0.1057), + PDF = cms.double(11000), + Rg = cms.double(1.2), + StrangeMass = cms.double(0.19), + Survive = cms.double(0.03), + TauMass = cms.double(1.77), + TopMass = cms.double(175.0), + WMass = cms.double(80.33), + ZMass = cms.double(91.187) + ), + ExhumeProcess = cms.PSet( + MassRangeHigh = cms.double(2000.0), + MassRangeLow = cms.double(300.0), + ProcessType = cms.string('GG'), + ThetaMin = cms.double(0.3) + ), + PythiaParameters = cms.PSet( + parameterSets = cms.vstring() + ), + comEnergy = cms.double(13000.0), + maxEventsToPrint = cms.untracked.int32(2), + pythiaHepMCVerbosity = cms.untracked.bool(False), + pythiaPylistVerbosity = cms.untracked.int32(1) +) + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +############ +process.o1 = cms.OutputModule("PoolOutputModule", + outputCommands = cms.untracked.vstring('keep *'), + fileName = cms.untracked.string('gluglu_step1_SIM2016.root') + ) + +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.outpath = cms.EndPath(process.o1) +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.outpath) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2017.py b/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2017.py new file mode 100644 index 0000000000000..5bf2d78d5dbdf --- /dev/null +++ b/SimPPS/Configuration/test/gluglu_step1_GEN_SIM_2017.py @@ -0,0 +1,140 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +# with command line options: GluGluTo2Jets_M_100_7TeV_exhume_cff.py --mc --eventcontent FEVTDEBUG --datatier GEN-SIM --conditions 80X_mcRun2_asymptotic_2016_v2 --step GEN,SIM --era Run2_25ns --geometry Extended2017dev --processName=CTPPS --no_exec +import FWCore.ParameterSet.Config as cms +import random + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run2_2017) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2017Collision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load('Configuration.Geometry.GeometryExtended2017_CTPPS_cff') # This line must be added to simulate PPS while its sim geometry is not in the DB + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 100 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) +) + +# Input source +process.source = cms.Source("EmptySource") + +process.options = cms.untracked.PSet() + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +# beam optics +process.CondDB.connect = 'frontier://FrontierProd/CMS_CONDITIONS' +process.PoolDBESSource = cms.ESSource("PoolDBESSource", + process.CondDB + # timetype = cms.untracked.string('runnumber'), + # DumpStat=cms.untracked.bool(True), + #toGet = cms.VPSet( + #cms.PSet( + # record = cms.string('LHCInfoRcd'), + # tag = cms.string("LHCInfoEndFill_prompt_v2") # FrontierProd + #), + #cms.PSet( + #record = cms.string('CTPPSOpticsRcd'), + #tag = cms.string("PPSOpticalFunctions_offline_v5") + #), + #cms.PSet( + # record = cms.string("CTPPSBeamParametersRcd"), + # tag = cms.string("CTPPSBeamParameters_v1") + #) + #) +) + + +process.generator = cms.EDFilter("ExhumeGeneratorFilter", + ExhumeParameters = cms.PSet( + AlphaEw = cms.double(0.0072974), + B = cms.double(4.0), + BottomMass = cms.double(4.6), + CharmMass = cms.double(1.42), + HiggsMass = cms.double(120.0), + HiggsVev = cms.double(246.0), + LambdaQCD = cms.double(80.0), + MinQt2 = cms.double(0.64), + MuonMass = cms.double(0.1057), + PDF = cms.double(11000), + Rg = cms.double(1.2), + StrangeMass = cms.double(0.19), + Survive = cms.double(0.03), + TauMass = cms.double(1.77), + TopMass = cms.double(175.0), + WMass = cms.double(80.33), + ZMass = cms.double(91.187) + ), + ExhumeProcess = cms.PSet( + MassRangeHigh = cms.double(2000.0), + MassRangeLow = cms.double(300.0), + ProcessType = cms.string('GG'), + ThetaMin = cms.double(0.3) + ), + PythiaParameters = cms.PSet( + parameterSets = cms.vstring() + ), + comEnergy = cms.double(13000.0), + maxEventsToPrint = cms.untracked.int32(2), + pythiaHepMCVerbosity = cms.untracked.bool(False), + pythiaPylistVerbosity = cms.untracked.int32(1) +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('GluGluTo2Jets_M_100_7TeV_exhume_cff.py nevts:1'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Other statements +process.genstepfilter.triggerConditions=cms.vstring("generation_step") + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + SelectEvents = cms.untracked.PSet( + SelectEvents = cms.vstring('generation_step') + ), + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('GluGlu_GEN_SIM_2017.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands, + splitLevel = cms.untracked.int32(0) +) + +# Path and EndPath definitions +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) + +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) + +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq diff --git a/SimPPS/Configuration/test/gluglu_step2_DIGI_DIGI2RAW_2017.py b/SimPPS/Configuration/test/gluglu_step2_DIGI_DIGI2RAW_2017.py new file mode 100644 index 0000000000000..1972a2faa6cb5 --- /dev/null +++ b/SimPPS/Configuration/test/gluglu_step2_DIGI_DIGI2RAW_2017.py @@ -0,0 +1,86 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +# with command line options: step2 --filein=file:GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM_HECTOR_CTPPS.root --conditions auto:run2_mc -s DIGI:pdigi_valid,DIGI2RAW --datatier GEN-SIM-DIGI-RAW -n 10 --era Run2_2016 --eventcontent FEVTDEBUG --no_exec +import FWCore.ParameterSet.Config as cms +import random + + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run2_2017) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +process.RandomNumberGeneratorService.g4SimHits.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) +process.RandomNumberGeneratorService.VtxSmeared.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + + +# Input source +process.source = cms.Source("PoolSource", + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:GluGlu_GEN_SIM_2017.root'), + inputCommands = cms.untracked.vstring('keep *'), + secondaryFileNames = cms.untracked.vstring() +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition + +process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('GluGlu_DIGI_DIGI2RAW_2017.root'), + outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands+['keep *_ctpps*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +# Path and EndPath definitions +process.digitisation_step = cms.Path(process.pdigi) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput) + +# Schedule definition +process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step) +process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step]) +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) diff --git a/SimPPS/Configuration/test/gluglu_step3_RAW2DIGI_L1Reco_RECO_2017.py b/SimPPS/Configuration/test/gluglu_step3_RAW2DIGI_L1Reco_RECO_2017.py new file mode 100644 index 0000000000000..efb52083b4014 --- /dev/null +++ b/SimPPS/Configuration/test/gluglu_step3_RAW2DIGI_L1Reco_RECO_2017.py @@ -0,0 +1,101 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +# with command line options: step3 --conditions auto:phase1_2017_realistic -n 10 --era Run2_2017 --eventcontent RECOSIM,MINIAODSIM,DQM --runUnscheduled -s RAW2DIGI,L1Reco,RECO,EI,PAT,VALIDATION:@standardValidation+@miniAODValidation,DQM:@standardDQM+@miniAODDQM --datatier GEN-SIM-RECO,MINIAODSIM,DQMIO --geometry DB:Extended --filein file:step2.root --fileout file:step3.root +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras + +process = cms.Process('RECO',eras.Run2_2017) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.RawToDigi_cff') +process.load('Configuration.StandardSequences.L1Reco_cff') +process.load('Configuration.StandardSequences.Reconstruction_cff') +process.load('CommonTools.ParticleFlow.EITopPAG_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +# Input source +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring('file:GluGlu_DIGI_DIGI2RAW_2017.root'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step3 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition + +process.output = cms.OutputModule("PoolOutputModule", + fileName = cms.untracked.string('file:GluGlu_RAW2DIGI_L1Reco_RECO_2017.root'), + outputCommands = cms.untracked.vstring("drop *","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*',"keep *_ak4*_*_*") +) + +# Additional output definition + +# Other statements +process.mix.playback = True +process.mix.digitizers = cms.PSet() +for a in process.aliases: delattr(process, a) +process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string("randomEngineStateProducer") +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +# do not make testID for simulation - keeping the frame +from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi +totemRPRawToDigi.RawToDigi.testID = cms.uint32(1) + +# Path and EndPath definitions +process.raw2digi_step = cms.Path(process.RawToDigi) +process.L1Reco_step = cms.Path(process.L1Reco) +process.reconstruction_step = cms.Path(process.reconstruction) +process.output_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.output_step) + +# customisation of the process. + +# Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff +from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn + +#call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff +process = setCrossingFrameOn(process) + +# End of customisation functions +#do not add changes to your config after this point (unless you know what you are doing) +from FWCore.ParameterSet.Utilities import convertToUnscheduled +process=convertToUnscheduled(process) + +# customisation of the process. + +# End of customisation functions + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/Configuration/test/pg_step1_GEN_SIM_2016.py b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2016.py new file mode 100644 index 0000000000000..d1ce91963ce84 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2016.py @@ -0,0 +1,101 @@ +import FWCore.ParameterSet.Config as cms + +import random +import math + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run2_2016) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeV2016Collision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load('Configuration.Geometry.GeometryExtended2016_CTPPS_cff') + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 1000 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) + ) + +process.source = cms.Source("EmptySource") +""" +process.source = cms.Source("EmptySource", + #firstRun = cms.untracked.uint32(306572), # 2016H data + #firstTime = cms.untracked.uint64(6487615523004612608) # this is needed because it lacks the MC tag, run based + #firstRun = cms.untracked.uint32(273730), # 2016H data + #firstTime = cms.untracked.uint64(6286859745043152896) # this is needed because it lacks the MC tag, run based + firstRun = cms.untracked.uint32(282730), # 2016H data + firstTime = cms.untracked.uint64(6339435345951588352) # this is needed because it lacks the MC tag, run based +) +""" + +process.options = cms.untracked.PSet() + + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') +#process.GlobalTag = GlobalTag(process.GlobalTag, "106X_dataRun2_v26") + +# beam optics + +# generator + +phi_min = -math.pi +phi_max = math.pi +t_min = 0. +t_max = 2. +xi_min = 0.02 +xi_max = 0.2 +ecms = 13000. + +process.generator = cms.EDProducer("RandomtXiGunProducer", + PGunParameters = cms.PSet( + PartID = cms.vint32(2212), + MinPhi = cms.double(phi_min), + MaxPhi = cms.double(phi_max), + ECMS = cms.double(ecms), + Mint = cms.double(t_min), + Maxt = cms.double(t_max), + MinXi = cms.double(xi_min), + MaxXi = cms.double(xi_max) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single protons'), + FireBackward = cms.bool(True), + FireForward = cms.bool(True), + firstRun = cms.untracked.uint32(1), + ) + + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +############ +process.o1 = cms.OutputModule("PoolOutputModule", + outputCommands = cms.untracked.vstring('keep *'), + fileName = cms.untracked.string('step1_SIM2016.root') + ) + +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) + + +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.outpath = cms.EndPath(process.o1) +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.outpath) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step1_GEN_SIM_2017.py b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2017.py new file mode 100644 index 0000000000000..7d6ad1b1b0f83 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2017.py @@ -0,0 +1,97 @@ +import FWCore.ParameterSet.Config as cms + +import random +import math + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run2_2017) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2017Collision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.Geometry.GeometryExtended2017_CTPPS_cff') + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 1000 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) + ) + +process.source = cms.Source("EmptySource") +""" +process.source = cms.Source("EmptySource", + firstRun = cms.untracked.uint32(297046), # 2017B data + firstTime = cms.untracked.uint64(6432299367889108992) + #firstRun = cms.untracked.uint32(298653), # 2017B data + #firstTime = cms.untracked.uint64(6440921708009357312) + #firstRun = cms.untracked.uint32(303719), # 2017E data + #firstTime = cms.untracked.uint64(6468633270794846208) + #firstRun = cms.untracked.uint32(306896), # 2017H data + #firstTime = cms.untracked.uint64(6490831126364422144) +) +""" + +process.options = cms.untracked.PSet() + + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +# generator + +phi_min = -math.pi +phi_max = math.pi +t_min = 0. +t_max = 2. +xi_min = 0.02 +xi_max = 0.20 +ecms = 13000. + +process.generator = cms.EDProducer("RandomtXiGunProducer", + PGunParameters = cms.PSet( + PartID = cms.vint32(2212), + MinPhi = cms.double(phi_min), + MaxPhi = cms.double(phi_max), + ECMS = cms.double(ecms), + Mint = cms.double(t_min), + Maxt = cms.double(t_max), + MinXi = cms.double(xi_min), + MaxXi = cms.double(xi_max) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single protons'), + FireBackward = cms.bool(True), + FireForward = cms.bool(True), + firstRun = cms.untracked.uint32(1), + ) + + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +############ +process.o1 = cms.OutputModule("PoolOutputModule", + outputCommands = cms.untracked.vstring('keep *'), + fileName = cms.untracked.string('step1_SIM2017.root') + ) + +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.outpath = cms.EndPath(process.o1) +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.outpath) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step1_GEN_SIM_2018.py b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2018.py new file mode 100644 index 0000000000000..4452a31a368dc --- /dev/null +++ b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2018.py @@ -0,0 +1,101 @@ +import FWCore.ParameterSet.Config as cms + +import random +import math + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run2_2018) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load('Configuration.Geometry.GeometryExtended2018_CTPPS_cff') + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 1000 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) + ) + +process.source = cms.Source("EmptySource") +""" +process.source = cms.Source("EmptySource", + firstRun = cms.untracked.uint32(315252), # 2018A + firstTime = cms.untracked.uint64(6548822380385402880) + #firstRun = cms.untracked.uint32(319337), # 2018C + #firstTime = cms.untracked.uint64(6575656846424539136) + #firstRun = cms.untracked.uint32(323363), # 2018D + #firstTime = cms.untracked.uint64(6604361306864615424) + #firstRun = cms.untracked.uint32(324612), #2018D + #firstTime = cms.untracked.uint64(6612348794983940096) +) +""" + + +process.options = cms.untracked.PSet() + +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') + + +# generator + +phi_min = -math.pi +phi_max = math.pi +t_min = 0. +t_max = 2. +xi_min = 0.02 +xi_max = 0.2 +ecms = 13000. + +process.generator = cms.EDProducer("RandomtXiGunProducer", + PGunParameters = cms.PSet( + PartID = cms.vint32(2212), + MinPhi = cms.double(phi_min), + MaxPhi = cms.double(phi_max), + ECMS = cms.double(ecms), + Mint = cms.double(t_min), + Maxt = cms.double(t_max), + MinXi = cms.double(xi_min), + MaxXi = cms.double(xi_max) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single protons'), + FireBackward = cms.bool(True), + FireForward = cms.bool(True), + firstRun = cms.untracked.uint32(1), + ) + + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +############ +process.o1 = cms.OutputModule("PoolOutputModule", + outputCommands = cms.untracked.vstring('keep *'), + fileName = cms.untracked.string('step1_SIM2018.root') + ) + +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) + + +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.outpath = cms.EndPath(process.o1) +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.outpath) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step1_GEN_SIM_2021.py b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2021.py new file mode 100644 index 0000000000000..2e4acfd6f1de9 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step1_GEN_SIM_2021.py @@ -0,0 +1,90 @@ +import FWCore.ParameterSet.Config as cms + +import random +import math + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('SIM',eras.Run3) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.Generator_cff') +process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi') +process.load('GeneratorInterface.Core.genFilterSummary_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +process.load('Configuration.Geometry.GeometryExtended2021_cff') + +process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) + +nEvent_ = 1000 +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(nEvent_) + ) + +process.source = cms.Source("EmptySource") +""" +process.source = cms.Source("EmptySource", + firstRun = cms.untracked.uint32(324612), #2018D + firstTime = cms.untracked.uint64(6612348794983940096) +) +""" +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2021_realistic', '') +#process.GlobalTag = GlobalTag(process.GlobalTag, "106X_dataRun2_v26") + +# generator + +phi_min = -math.pi +phi_max = math.pi +t_min = 0. +t_max = 2. +xi_min = 0.03 +xi_max = 0.15 +ecms = 13000. + +process.generator = cms.EDProducer("RandomtXiGunProducer", + PGunParameters = cms.PSet( + PartID = cms.vint32(2212), + MinPhi = cms.double(phi_min), + MaxPhi = cms.double(phi_max), + ECMS = cms.double(ecms), + Mint = cms.double(t_min), + Maxt = cms.double(t_max), + MinXi = cms.double(xi_min), + MaxXi = cms.double(xi_max) + ), + Verbosity = cms.untracked.int32(0), + psethack = cms.string('single protons'), + FireBackward = cms.bool(True), + FireForward = cms.bool(True), + firstRun = cms.untracked.uint32(1), + ) + +process.ProductionFilterSequence = cms.Sequence(process.generator) + +############ +process.o1 = cms.OutputModule("PoolOutputModule", + outputCommands = cms.untracked.vstring('keep *'), + fileName = cms.untracked.string('step1_SIM2021.root') + ) + +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) + + +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.outpath = cms.EndPath(process.o1) +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.outpath) + +# filter all path with the production filter sequence +for path in process.paths: + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2016.py b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2016.py new file mode 100644 index 0000000000000..c4ed2620a5e73 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2016.py @@ -0,0 +1,113 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run2_2016) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +#process.load('CalibPPS.ESProducers.CTPPSPixelDAQMappingESSourceXML_cfi') + +# Since the PPS simulation geometry is not yet in the database, the line below is needed +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2016_cfi") +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + +# Input source +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1)) +process.source = cms.Source("PoolSource", + skipEvents=cms.untracked.uint32(0), + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:step1_SIM2016.root'), + inputCommands = cms.untracked.vstring('keep *', + 'drop *_genParticles_*_*', + 'drop *_genParticlesForJets_*_*', + 'drop *_kt4GenJets_*_*', + 'drop *_kt6GenJets_*_*', + 'drop *_iterativeCone5GenJets_*_*', + 'drop *_ak4GenJets_*_*', + 'drop *_ak7GenJets_*_*', + 'drop *_ak8GenJets_*_*', + 'drop *_ak4GenJetsNoNu_*_*', + 'drop *_ak8GenJetsNoNu_*_*', + 'drop *_genCandidatesForMET_*_*', + 'drop *_genParticlesForMETAllVisible_*_*', + 'drop *_genMetCalo_*_*', + 'drop *_genMetCaloAndNonPrompt_*_*', + 'drop *_genMetTrue_*_*', + 'drop *_genMetIC5GenJs_*_*'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2016.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') + +# modify Totem 2016 mapping +process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi') +process.totemDAQMappingESSourceXML.configuration = cms.VPSet( + cms.PSet( + validityRange = cms.EventRange("1:min - 999999999:max"), + mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_from_fill_5330.xml"), + maskFileNames = cms.vstring() + ) +) + +# Path and EndPath definitions +process.digitisation_step = cms.Path(process.pdigi) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) +# Schedule definition +process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step) +process.schedule.extend([process.endjob_step,process.FEVTDEBUGoutput_step]) + +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2017.py b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2017.py new file mode 100644 index 0000000000000..bf29524e43457 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2017.py @@ -0,0 +1,111 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run2_2017) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.SimIdeal_cff') +process.load('Configuration.StandardSequences.GeometryDB_cff') +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2017_cfi") +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + + +# Input source +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1)) +process.source = cms.Source("PoolSource", + skipEvents= cms.untracked.uint32(0), + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:step1_SIM2017.root'), + inputCommands = cms.untracked.vstring('keep *', + 'drop *_genParticles_*_*', + 'drop *_genParticlesForJets_*_*', + 'drop *_kt4GenJets_*_*', + 'drop *_kt6GenJets_*_*', + 'drop *_iterativeCone5GenJets_*_*', + 'drop *_ak4GenJets_*_*', + 'drop *_ak7GenJets_*_*', + 'drop *_ak8GenJets_*_*', + 'drop *_ak4GenJetsNoNu_*_*', + 'drop *_ak8GenJetsNoNu_*_*', + 'drop *_genCandidatesForMET_*_*', + 'drop *_genParticlesForMETAllVisible_*_*', + 'drop *_genMetCalo_*_*', + 'drop *_genMetCaloAndNonPrompt_*_*', + 'drop *_genMetTrue_*_*', + 'drop *_genMetIC5GenJs_*_*'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + #SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2017.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +# modify Totem 2017 mapping +process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi') +process.totemDAQMappingESSourceXML.configuration = cms.VPSet( + cms.PSet( + validityRange = cms.EventRange("1:min - 999999999:max"), + mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"), + maskFileNames = cms.vstring() + ) +) + +# Path and EndPath definitions +process.digitisation_step = cms.Path(process.pdigi) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) +# Schedule definition +process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step) +process.schedule.extend([process.endjob_step,process.FEVTDEBUGoutput_step]) +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2018.py b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2018.py new file mode 100644 index 0000000000000..2d2754b64a355 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2018.py @@ -0,0 +1,121 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run2_2018) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +# Since the PPS simulation geometry is not yet in the database, the line below is needed +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + tag = cms.string("CTPPSPixelGainCalibrations_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_v1_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) +# Input source +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1)) +process.source = cms.Source("PoolSource", + skipEvents=cms.untracked.uint32(0), + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:step1_SIM2018.root'), + inputCommands = cms.untracked.vstring('keep *', + 'drop *_genParticles_*_*', + 'drop *_genParticlesForJets_*_*', + 'drop *_kt4GenJets_*_*', + 'drop *_kt6GenJets_*_*', + 'drop *_iterativeCone5GenJets_*_*', + 'drop *_ak4GenJets_*_*', + 'drop *_ak7GenJets_*_*', + 'drop *_ak8GenJets_*_*', + 'drop *_ak4GenJetsNoNu_*_*', + 'drop *_ak8GenJetsNoNu_*_*', + 'drop *_genCandidatesForMET_*_*', + 'drop *_genParticlesForMETAllVisible_*_*', + 'drop *_genMetCalo_*_*', + 'drop *_genMetCaloAndNonPrompt_*_*', + 'drop *_genMetTrue_*_*', + 'drop *_genMetIC5GenJs_*_*'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2018.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +#process.GlobalTag = GlobalTag(process.GlobalTag, '110X_upgrade2018_realistic_v5') +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') + + +# Path and EndPath definitions +process.digitisation_step = cms.Path(process.pdigi) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) +# Schedule definition +process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step) +process.schedule.extend([process.endjob_step,process.FEVTDEBUGoutput_step]) + +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2021.py b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2021.py new file mode 100644 index 0000000000000..e689227e37b9b --- /dev/null +++ b/SimPPS/Configuration/test/pg_step2_DIGI_DIGI2RAW_2021.py @@ -0,0 +1,122 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run3) + +# import of standard configurations +process.load("CondCore.CondDB.CondDB_cfi") +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.SimL1Emulator_cff') +process.load('Configuration.StandardSequences.DigiToRaw_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') + +# Since the PPS simulation geometry is not yet in the database, the line below is needed +process.load('Configuration.StandardSequences.GeometryDB_cff') +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2021_cfi") +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") + +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + tag = cms.string("CTPPSPixelGainCalibrations_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_v1_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) +# Input source +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1)) +process.source = cms.Source("PoolSource", + skipEvents=cms.untracked.uint32(0), + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:step1_SIM2021.root'), + inputCommands = cms.untracked.vstring('keep *', + 'drop *_genParticles_*_*', + 'drop *_genParticlesForJets_*_*', + 'drop *_kt4GenJets_*_*', + 'drop *_kt6GenJets_*_*', + 'drop *_iterativeCone5GenJets_*_*', + 'drop *_ak4GenJets_*_*', + 'drop *_ak7GenJets_*_*', + 'drop *_ak8GenJets_*_*', + 'drop *_ak4GenJetsNoNu_*_*', + 'drop *_ak8GenJetsNoNu_*_*', + 'drop *_genCandidatesForMET_*_*', + 'drop *_genParticlesForMETAllVisible_*_*', + 'drop *_genMetCalo_*_*', + 'drop *_genMetCaloAndNonPrompt_*_*', + 'drop *_genMetTrue_*_*', + 'drop *_genMetIC5GenJs_*_*'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2021.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +#process.GlobalTag = GlobalTag(process.GlobalTag, '111X_mcRun3_2021_realistic_Candidate_2020_06_03_17_55_10', '') +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2021_realistic', '') + + +# Path and EndPath definitions +process.digitisation_step = cms.Path(process.pdigi) +process.L1simulation_step = cms.Path(process.SimL1Emulator) +process.digi2raw_step = cms.Path(process.DigiToRaw) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) +# Schedule definition +process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step) +process.schedule.extend([process.endjob_step,process.FEVTDEBUGoutput_step]) + +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2016.py b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2016.py new file mode 100644 index 0000000000000..5923bfe4a8787 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2016.py @@ -0,0 +1,110 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('RECO',eras.Run2_2016) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load("Configuration.EventContent.EventContent_cff") +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') +process.load('Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2016_cfi') + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +process.source = cms.Source("EmptyIOVSource", + timetype = cms.string('runnumber'), + firstValue = cms.uint64(1), + lastValue = cms.uint64(1), + interval = cms.uint64(1) +) + +# Input source +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2016.root'), + secondaryFileNames = cms.untracked.vstring() +) + +# Track memory leaks +process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) ) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Output definition + +process.output = cms.OutputModule("PoolOutputModule", + fileName = cms.untracked.string('step3_RAW2DIGI_RECO2016.root'), + outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*') +) + + +# Additional output definition +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') + +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + tag = cms.string("CTPPSPixelGainCalibrations_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) + +# modify Totem 2016 mapping +process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi') +process.totemDAQMappingESSourceXML.configuration = cms.VPSet( + cms.PSet( + validityRange = cms.EventRange("1:min - 999999999:max"), + mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2016_from_fill_5330.xml"), + maskFileNames = cms.vstring() + ) +) + +# modify CTPPS 2016 raw-to-digi modules +process.load('Configuration.StandardSequences.RawToDigi_cff') + +# do not make testID for simulation - keeping the frame +from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi +totemRPRawToDigi.RawToDigi.testID = cms.uint32(1) + +from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction +process.load('RecoPPS.Local.totemRPLocalReconstruction_cff') +from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction +process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff') + +# Path and EndPath definitions +process.raw2digi_step = cms.Path(process.ctppsRawToDigi) +process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.output_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step) + +# filter all path with the production filter sequence +for path in process.paths: + # getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + getattr(process,path)._seq = getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2017.py b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2017.py new file mode 100644 index 0000000000000..f846ed0eb1fa9 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2017.py @@ -0,0 +1,121 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('RECO',eras.Run2_2017) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load("Configuration.EventContent.EventContent_cff") +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.GeometryDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") # totem frame +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2017_cfi") # CMS frame +""" +process.GlobalTag.toGet = cms.VPSet( + cms.PSet(record = cms.string("GeometryFileRcd"), + tag = cms.string("XMLFILE_Geometry_110YV3_Extended2017CTPPS_mc"), + connect = cms.string("sqlite_file:PPS_geometry_DB.db") + ) +) +process.XMLFromDBSource.label='' +""" + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +process.source = cms.Source("EmptyIOVSource", + timetype = cms.string('runnumber'), + firstValue = cms.uint64(1), + lastValue = cms.uint64(1), + interval = cms.uint64(1) +) + +# Input source +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2017.root'), + secondaryFileNames = cms.untracked.vstring() +) + +# Track memory leaks +process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) ) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Output definition + +process.output = cms.OutputModule("PoolOutputModule", + fileName = cms.untracked.string('step3_RAW2DIGI_RECO2017.root'), + outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*') +) + + +# Additional output definition +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +""" +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + tag = cms.string("CTPPSPixelGainCalibrations_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) +""" +# modify Totem 2017 mapping +process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi') +process.totemDAQMappingESSourceXML.configuration = cms.VPSet( + cms.PSet( + validityRange = cms.EventRange("1:min - 999999999:max"), + mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"), + maskFileNames = cms.vstring() + ) +) + +# modify CTPPS 2017 raw-to-digi modules +process.load('Configuration.StandardSequences.RawToDigi_cff') + +# do not make testID for simulation - keeping the frame +from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi +totemRPRawToDigi.RawToDigi.testID = cms.uint32(1) + +from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction +process.load('RecoPPS.Local.totemRPLocalReconstruction_cff') +from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction +process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff') + +# Path and EndPath definitions +process.raw2digi_step = cms.Path(process.ctppsRawToDigi) +process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.output_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step) + +# filter all path with the production filter sequence +for path in process.paths: + # getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + getattr(process,path)._seq = getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2018.py b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2018.py new file mode 100644 index 0000000000000..dd6f4235135e1 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2018.py @@ -0,0 +1,101 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('RECO',eras.Run2_2018) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load("Configuration.EventContent.EventContent_cff") +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.GeometryDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2018_cfi") # CMS frame + + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +process.source = cms.Source("EmptyIOVSource", + timetype = cms.string('runnumber'), + firstValue = cms.uint64(1), + lastValue = cms.uint64(1), + interval = cms.uint64(1) +) + +# Input source +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2018.root'), + secondaryFileNames = cms.untracked.vstring() +) + +# Track memory leaks +process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) ) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Output definition + +process.output = cms.OutputModule("PoolOutputModule", + fileName = cms.untracked.string('step3_RAW2DIGI_RECO2018.root'), + outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*') +) + + +# Additional output definition +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + #tag = cms.string("CTPPSPixelGainCalibrations_mc"), + tag = cms.string("CTPPSPixelGainCalibrations_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_v1_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) +# modify CTPPS 2018 raw-to-digi modules ONLY FOR PARTICLE GUN, TO AVOID RUN THIS FOR THE WHOLE CMS +process.load('Configuration.StandardSequences.RawToDigi_cff') + +# do not make testID for simulation - keeping the frame +from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi +totemRPRawToDigi.RawToDigi.testID = cms.uint32(1) + +from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction +process.load('RecoPPS.Local.totemRPLocalReconstruction_cff') +from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction +process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff') + +# Path and EndPath definitions +process.raw2digi_step = cms.Path(process.ctppsRawToDigi) +process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.output_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step) + +# filter all path with the production filter sequence +for path in process.paths: + # getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + getattr(process,path)._seq = getattr(process,path)._seq + diff --git a/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2021.py b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2021.py new file mode 100644 index 0000000000000..e81e205f530e5 --- /dev/null +++ b/SimPPS/Configuration/test/pg_step3_MCDB_RAW2DIGI_RECO_2021.py @@ -0,0 +1,101 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('RECO',eras.Run3) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load("Configuration.EventContent.EventContent_cff") +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('Configuration.StandardSequences.GeometryDB_cff') +process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") +#process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2021_cfi") # CMS frame + + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) + +process.source = cms.Source("EmptyIOVSource", + timetype = cms.string('runnumber'), + firstValue = cms.uint64(1), + lastValue = cms.uint64(1), + interval = cms.uint64(1) +) + +# Input source +process.source = cms.Source("PoolSource", + fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2021.root'), + secondaryFileNames = cms.untracked.vstring() +) + +# Track memory leaks +process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) ) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Output definition + +process.output = cms.OutputModule("PoolOutputModule", + fileName = cms.untracked.string('step3_RAW2DIGI_RECO2021.root'), + outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*') +) + + +# Additional output definition +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2021_realistic', '') +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + #tag = cms.string("CTPPSPixelGainCalibrations_mc"), + tag = cms.string("CTPPSPixelGainCalibrations_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_v1_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_v1_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) +# modify CTPPS 2018 raw-to-digi modules ONLY FOR PARTICLE GUN, TO AVOID RUN THIS FOR THE WHOLE CMS +process.load('Configuration.StandardSequences.RawToDigi_cff') + +# do not make testID for simulation - keeping the frame +from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi +totemRPRawToDigi.RawToDigi.testID = cms.uint32(1) + +from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction +process.load('RecoPPS.Local.totemRPLocalReconstruction_cff') +from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction +process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff') + +# Path and EndPath definitions +process.raw2digi_step = cms.Path(process.ctppsRawToDigi) +process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.output_step = cms.EndPath(process.output) + +# Schedule definition +process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step) + +# filter all path with the production filter sequence +for path in process.paths: + # getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq + getattr(process,path)._seq = getattr(process,path)._seq + diff --git a/SimPPS/PPSPixelDigiProducer/src/RPixChargeShare.cc b/SimPPS/PPSPixelDigiProducer/src/RPixChargeShare.cc index 001b10668d293..bae137e74bf1b 100644 --- a/SimPPS/PPSPixelDigiProducer/src/RPixChargeShare.cc +++ b/SimPPS/PPSPixelDigiProducer/src/RPixChargeShare.cc @@ -1,4 +1,5 @@ #include "SimPPS/PPSPixelDigiProducer/interface/RPixChargeShare.h" +#include "FWCore/ParameterSet/interface/FileInPath.h" #include #include @@ -24,7 +25,8 @@ RPixChargeShare::RPixChargeShare(const edm::ParameterSet ¶ms, uint32_t det_i int yUpper[] = {50, 50, 100, 100}; int ix, iy; for (int i = 0; i < 4; i++) { - std::ifstream fChargeMap(ChargeMapFile2E_[i]); + edm::FileInPath filename(ChargeMapFile2E_[i]); + std::ifstream fChargeMap(filename.fullPath().c_str()); if (fChargeMap.is_open()) { while (fChargeMap >> xMap >> yMap >> chargeprobcollect) { ix = int((xMap + xUpper[i]) / 5); diff --git a/SimPPS/PPSPixelDigiProducer/test/FromGun2DigiAnal_.py b/SimPPS/PPSPixelDigiProducer/test/FromGun2DigiAnal_.py deleted file mode 100644 index 5df5480215484..0000000000000 --- a/SimPPS/PPSPixelDigiProducer/test/FromGun2DigiAnal_.py +++ /dev/null @@ -1,258 +0,0 @@ -import FWCore.ParameterSet.Config as cms - -process = cms.Process("TestFlatGun") - -# Specify the maximum events to simulate -process.maxEvents = cms.untracked.PSet( - input = cms.untracked.int32(100) -) - -# Configure the output module (save the result in a file) -process.o1 = cms.OutputModule("PoolOutputModule", - outputCommands = cms.untracked.vstring('keep *','drop *_*mix*_*_*', 'drop *_*_*Muon*_*', 'drop *_*_*Ecal*_*', 'drop *_*_*Hcal*_*', 'drop *_*_*Calo*_*', 'drop *_*_*Castor*_*', 'drop *_*_*FP420SI_*', 'drop *_*_*ZDCHITS_*', 'drop *_*_*BSCHits_*', 'drop *_*_*ChamberHits_*', 'drop *_*_*FibreHits_*', 'drop *_*_*WedgeHits_*','drop Sim*_*_*_*','drop edm*_*_*_*'), - fileName = cms.untracked.string('file:MYtest44_.root') -) -process.outpath = cms.EndPath(process.o1) - -# Configure if you want to detail or simple log information. -# LoggerMax -- detail log info output including: errors.log, warnings.log, infos.log, debugs.log -# LoggerMin -- simple log info output to the standard output (e.g. screen) -#process.load("Configuration.TotemCommon.LoggerMax_cfi") -process.MessageLogger = cms.Service("MessageLogger", - destinations = cms.untracked.vstring('MYwarnings44', - 'MYerrors44', - # 'MYinfos44', - 'MYdebugs44'), - categories = cms.untracked.vstring('ForwardSim', - 'TotemRP'), - debugModules = cms.untracked.vstring('*'), - MYerrors44 = cms.untracked.PSet( - threshold = cms.untracked.string('ERROR') - ), - MYwarnings44 = cms.untracked.PSet( - threshold = cms.untracked.string('WARNING') - ), - # MYinfos44 = cms.untracked.PSet( - # threshold = cms.untracked.string('INFO') - # ), - MYdebugs44 = cms.untracked.PSet( - threshold = cms.untracked.string('DEBUG'), - INFO = cms.untracked.PSet( - limit = cms.untracked.int32(0) - ), - DEBUG = cms.untracked.PSet( - limit = cms.untracked.int32(0) - ), - TotemRP = cms.untracked.PSet( - limit = cms.untracked.int32(1000000) - ), - ForwardSim = cms.untracked.PSet( - limit = cms.untracked.int32(1000000) - ) - ) -) - -################## STEP 1 - process.generator -process.source = cms.Source("EmptySource") - -# Use random number generator service -process.load("Configuration.TotemCommon.RandomNumbers_cfi") -process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137)) -# particle generator paramteres -process.load("IOMC.FlatProtonLogKsiLogTGun.Beta90Energy6500GeV_cfi") -process.generator.MinT = cms.untracked.double(-0.25) -process.generator.MaxT = cms.untracked.double(-0.55) -process.generator.MinPhi = cms.untracked.double(-2.099) -process.generator.MaxPhi = cms.untracked.double(-2.099) -process.generator.MinKsi = cms.untracked.double(-0.06) -process.generator.MaxKsi = cms.untracked.double(-0.065) - -process.generator.RightArm = cms.untracked.bool(True) -process.generator.LeftArm = cms.untracked.bool(True) - - -process.generator.Verbosity = cms.untracked.int32(0) -#process.generator.MinT = cms.untracked.double(-0.0001) -#process.generator.MaxT = cms.untracked.double(-20.0) -#process.generator.MinPhi = cms.untracked.double(-3.141592654) -#process.generator.MaxPhi = cms.untracked.double(3.141592654) -#process.generator.MinKsi = cms.untracked.double(-0.0001) -#process.generator.MaxKsi = cms.untracked.double(-0.3) - -################## STEP 2 process.SmearingGenerator - -# declare optics parameters -process.load("Configuration.TotemOpticsConfiguration.OpticsConfig_6500GeV_0p8_145urad_cfi") - -# Smearing -process.load("IOMC.SmearingGenerator.SmearingGenerator_cfi") - -################## STEP 3 process.g4SimHits - -# Geometry - beta* specific -process.load("Configuration.TotemCommon.geometryRP_CTPPS_cfi") - -# TODO Change to the LowBetaSettings -process.XMLIdealGeometryESSource.geomXMLFiles.append('Geometry/TotemRPData/data/RP_Beta_90/RP_Dist_Beam_Cent.xml') - -# misalignments -process.load("TotemAlignment.RPDataFormats.TotemRPIncludeAlignments_cfi") -process.TotemRPIncludeAlignments.MisalignedFiles = cms.vstring() - -# Magnetic Field, by default we have 3.8T -process.load("Configuration.StandardSequences.MagneticField_cff") - -# G4 simulation & proton transport -process.load("Configuration.TotemCommon.g4SimHits_cfi") -process.g4SimHits.Physics.BeamProtTransportSetup = process.BeamProtTransportSetup -process.g4SimHits.Generator.HepMCProductLabel = 'generator' # The input source for G4 module is connected to "process.source". -process.g4SimHits.G4TrackingManagerVerbosity = cms.untracked.int32(0) - -# Use particle table -process.load("SimGeneral.HepPDTESSource.pdt_cfi") - -process.g4SimHits.CTPPSSD = cms.PSet( - Verbosity = cms.untracked.int32(0) -) - -################## Step 3 - Magnetic field configuration -# todo declare in standard way (not as hardcoded raw config) - -process.magfield = cms.ESSource("XMLIdealGeometryESSource", - geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', - 'Geometry/CMSCommonData/data/cms.xml', - 'Geometry/CMSCommonData/data/cmsMagneticField.xml', - 'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml', - 'Geometry/CMSCommonData/data/materials.xml'), - rootNodeName = cms.string('cmsMagneticField:MAGF') -) -process.prefer("magfield") - -process.ParametrizedMagneticFieldProducer = cms.ESProducer("ParametrizedMagneticFieldProducer", - version = cms.string('OAE_1103l_071212'), - parameters = cms.PSet( - BValue = cms.string('3_8T') - ), - label = cms.untracked.string('parametrizedField') -) - -process.VolumeBasedMagneticFieldESProducer = cms.ESProducer("VolumeBasedMagneticFieldESProducer", - scalingVolumes = cms.vint32(14100, 14200, 17600, 17800, 17900, - 18100, 18300, 18400, 18600, 23100, - 23300, 23400, 23600, 23800, 23900, - 24100, 28600, 28800, 28900, 29100, - 29300, 29400, 29600, 28609, 28809, - 28909, 29109, 29309, 29409, 29609, - 28610, 28810, 28910, 29110, 29310, - 29410, 29610, 28611, 28811, 28911, - 29111, 29311, 29411, 29611), - scalingFactors = cms.vdouble(1, 1, 0.994, 1.004, 1.004, - 1.005, 1.004, 1.004, 0.994, 0.965, - 0.958, 0.958, 0.953, 0.958, 0.958, - 0.965, 0.918, 0.924, 0.924, 0.906, - 0.924, 0.924, 0.918, 0.991, 0.998, - 0.998, 0.978, 0.998, 0.998, 0.991, - 0.991, 0.998, 0.998, 0.978, 0.998, - 0.998, 0.991, 0.991, 0.998, 0.998, - 0.978, 0.998, 0.998, 0.991), - useParametrizedTrackerField = cms.bool(True), - label = cms.untracked.string(''), - version = cms.string('grid_1103l_090322_3_8t'), - debugBuilder = cms.untracked.bool(False), - paramLabel = cms.string('parametrizedField'), - geometryVersion = cms.int32(90322), - gridFiles = cms.VPSet(cms.PSet( - path = cms.string('grid.[v].bin'), - master = cms.int32(1), - volumes = cms.string('1-312'), - sectors = cms.string('0') - ), - cms.PSet( - path = cms.string('S3/grid.[v].bin'), - master = cms.int32(3), - volumes = cms.string('176-186,231-241,286-296'), - sectors = cms.string('3') - ), - cms.PSet( - path = cms.string('S4/grid.[v].bin'), - master = cms.int32(4), - volumes = cms.string('176-186,231-241,286-296'), - sectors = cms.string('4') - ), - cms.PSet( - path = cms.string('S9/grid.[v].bin'), - master = cms.int32(9), - volumes = cms.string('14,15,20,21,24-27,32,33,40,41,48,49,56,57,62,63,70,71,286-296'), - sectors = cms.string('9') - ), - cms.PSet( - path = cms.string('S10/grid.[v].bin'), - master = cms.int32(10), - volumes = cms.string('14,15,20,21,24-27,32,33,40,41,48,49,56,57,62,63,70,71,286-296'), - sectors = cms.string('10') - ), - cms.PSet( - path = cms.string('S11/grid.[v].bin'), - master = cms.int32(11), - volumes = cms.string('14,15,20,21,24-27,32,33,40,41,48,49,56,57,62,63,70,71,286-296'), - sectors = cms.string('11') - )), - cacheLastVolume = cms.untracked.bool(True) -) - -################## STEP 4 mix pdt_cfi - -process.load("Configuration.TotemCommon.mixNoPU_cfi") - -# Use particle table -process.load("SimGeneral.HepPDTESSource.pdt_cfi") - -################## STEP 5 RPDigiProducer & RPix - -process.load("SimTotem.RPDigiProducer.RPSiDetConf_cfi") -process.load("SimPPS.CTPPSPixelDigiProducer.RPixDetConf_cfi") - -################## STEP 6 reco - -process.load("Configuration.TotemStandardSequences.RP_Digi_and_TrackReconstruction_cfi") - -################## STEP 7 TotemNtuplizer - -process.load("TotemAnalysis.TotemNtuplizer.TotemNtuplizer_cfi") -process.TotemNtuplizer.outputFileName = "test.ntuple.root" -process.TotemNtuplizer.RawEventLabel = 'source' -process.TotemNtuplizer.RPReconstructedProtonCollectionLabel = cms.InputTag('RP220Reconst') -process.TotemNtuplizer.RPReconstructedProtonPairCollectionLabel = cms.InputTag('RP220Reconst') -process.TotemNtuplizer.RPMulFittedTrackCollectionLabel = cms.InputTag("RPMulTrackNonParallelCandCollFit") -process.TotemNtuplizer.includeDigi = cms.bool(True) -process.TotemNtuplizer.includePatterns = cms.bool(True) - -process.digiAnal = cms.EDAnalyzer("CTPPSPixelDigiAnalyzer", - label=cms.untracked.string("RPixDetDigitizer"), - Verbosity = cms.int32(0), - RPixVerbosity = cms.int32(0), - RPixActiveEdgeSmearing = cms.double(0.020), - RPixActiveEdgePosition = cms.double(0.150) -) -######## - -process.p1 = cms.Path( - process.generator -# *process.SmearingGenerator - *process.g4SimHits - *process.mix -# *process.RPSiDetDigitizer -*process.RPixDetDigitizer -#*process.digiAnal -# *process.RPClustProd -# *process.RPHecoHitProd -# *process.RPSinglTrackCandFind -# *process.RPSingleTrackCandCollFit - - -# *process.RP220Reconst -# *process.TotemNtuplizer - -) - - diff --git a/SimPPS/PPSPixelDigiProducer/test/testDigi.py b/SimPPS/PPSPixelDigiProducer/test/testDigi.py new file mode 100644 index 0000000000000..694b02ccf8074 --- /dev/null +++ b/SimPPS/PPSPixelDigiProducer/test/testDigi.py @@ -0,0 +1,138 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +import FWCore.ParameterSet.Config as cms + +from Configuration.StandardSequences.Eras import eras +process = cms.Process('DIGI2RAW',eras.Run2_2017) + +# import of standard configurations +process.load('Configuration.StandardSequences.Services_cff') +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') +process.load('FWCore.MessageService.MessageLogger_cfi') +process.load('Configuration.EventContent.EventContent_cff') +process.load('Configuration.StandardSequences.MagneticField_cff') +process.load('SimGeneral.MixingModule.mixNoPU_PPS_cfi') +process.load('Configuration.StandardSequences.Digi_cff') +process.load('Configuration.StandardSequences.EndOfProcess_cff') +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') +process.load('CalibPPS.ESProducers.CTPPSPixelDAQMappingESSourceXML_cfi') + +process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi') +############### using only CTPPS geometry +process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2017_cfi") + +process.maxEvents = cms.untracked.PSet( + input = cms.untracked.int32(-1) +) +process.load("IOMC.RandomEngine.IOMC_cff") +process.RandomNumberGeneratorService.generator.initialSeed = 456789 +process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876 +process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789 +process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137)) +process.RandomNumberGeneratorService.RPSiDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137)) + +# Input source +process.source = cms.Source("PoolSource", + dropDescendantsOfDroppedBranches = cms.untracked.bool(False), + fileNames = cms.untracked.vstring('file:step1_SIM2017.root'), + inputCommands = cms.untracked.vstring('keep *', + 'drop *_genParticles_*_*', + 'drop *_genParticlesForJets_*_*', + 'drop *_kt4GenJets_*_*', + 'drop *_kt6GenJets_*_*', + 'drop *_iterativeCone5GenJets_*_*', + 'drop *_ak4GenJets_*_*', + 'drop *_ak7GenJets_*_*', + 'drop *_ak8GenJets_*_*', + 'drop *_ak4GenJetsNoNu_*_*', + 'drop *_ak8GenJetsNoNu_*_*', + 'drop *_genCandidatesForMET_*_*', + 'drop *_genParticlesForMETAllVisible_*_*', + 'drop *_genMetCalo_*_*', + 'drop *_genMetCaloAndNonPrompt_*_*', + 'drop *_genMetTrue_*_*', + 'drop *_genMetIC5GenJs_*_*'), + secondaryFileNames = cms.untracked.vstring() +) + +process.options = cms.untracked.PSet( + SkipEvent = cms.untracked.vstring('ProductNotFound') +) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + annotation = cms.untracked.string('step2 nevts:10'), + name = cms.untracked.string('Applications'), + version = cms.untracked.string('$Revision: 1.19 $') +) + +# Output definition +process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", + dataset = cms.untracked.PSet( + dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'), + filterName = cms.untracked.string('') + ), + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), + fileName = cms.untracked.string('step2_DIGI_DIGI2RAW2017.root'), + outputCommands = process.FEVTDEBUGEventContent.outputCommands + ['keep *_CTPPS*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'], + splitLevel = cms.untracked.int32(0) +) + +# Additional output definition + +# Other statements +from Configuration.AlCa.GlobalTag import GlobalTag +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '') + +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string('CTPPSPixelGainCalibrationsRcd'), + tag = cms.string("CTPPSPixelGainCalibrations_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelAnalysisMaskRcd'), + tag = cms.string("CTPPSPixelAnalysisMask_mc"), + label = cms.untracked.string(""), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ), + cms.PSet( + record = cms.string('CTPPSPixelDAQMappingRcd'), + tag = cms.string("CTPPSPixelDAQMapping_mc"), + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') + ) +) + +# modify Totem 2017 mapping +process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi') +process.totemDAQMappingESSourceXML.configuration = cms.VPSet( + cms.PSet( + validityRange = cms.EventRange("1:min - 999999999:max"), + mappingFileNames = cms.vstring("CondFormats/CTPPSReadoutObjects/xml/mapping_tracking_strip_2017.xml"), + maskFileNames = cms.vstring() + ) +) + +process.load("EventFilter.CTPPSRawToDigi.ctppsDigiToRaw_cff") +process.load("EventFilter.RawDataCollector.rawDataCollector_cfi") + +# Path and EndPath definitions +process.mixedigi_step = cms.Path(process.mix*process.RPixDetDigitizer*process.RPSiDetDigitizer) +process.digi2raw_step = cms.Path(process.ctppsTotemRawData*process.ctppsPixelRawData*process.rawDataCollector) +process.endjob_step = cms.EndPath(process.endOfProcess) +process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) + +# Schedule definition +process.schedule = cms.Schedule(process.mixedigi_step,process.digi2raw_step,process.endjob_step,process.FEVTDEBUGoutput_step) +from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask +associatePatAlgosToolsTask(process) + + +# Customisation from command line + +# Add early deletion of temporary data products to reduce peak memory need +from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete +process = customiseEarlyDelete(process) +# End adding early deletion diff --git a/SimPPS/PPSPixelDigiProducer/test/testDigi3.py b/SimPPS/PPSPixelDigiProducer/test/testDigi3.py deleted file mode 100644 index d1dae4e0a9be6..0000000000000 --- a/SimPPS/PPSPixelDigiProducer/test/testDigi3.py +++ /dev/null @@ -1,58 +0,0 @@ -import FWCore.ParameterSet.Config as cms - -process = cms.Process("testDigi") - -# Specify the maximum events to simulate -process.maxEvents = cms.untracked.PSet( - input = cms.untracked.int32(-1) -) - -process.load('FWCore.MessageService.MessageLogger_cfi') -process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(5000) - -################## STEP 1 - process.generator - -process.source = cms.Source("PoolSource", -duplicateCheckMode = cms.untracked.string("noDuplicateCheck"), - fileNames = - cms.untracked.vstring( -# 'file:/tmp/andriusj/6EC8FCC8-E2A8-E411-9506-002590596468.root' -# '/store/relval/CMSSW_7_4_0_pre6/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/MCRUN2_74_V1-v1/00000/6EC8FCC8-E2A8-E411-9506-002590596468.root' -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest441_.root', -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest442_.root', -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest444_.root', -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest445_.root', -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest447_.root', -# 'file:/home/ferro/ferroCMS/CMSSW_7_5_0/src/MYtest448_.root', - 'file:/home/ferro/ferroCMS/CMSSW_7_5_0_myCTPPS/CMSSW_7_5_0/src/MYtest44_.root' - ) -) - - -# Use random number generator service -process.load("Configuration.TotemCommon.RandomNumbers_cfi") -process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137)) - - -process.load("TotemAnalysis.TotemNtuplizer.TotemNtuplizer_cfi") -process.TotemNtuplizer.outputFileName = "test.ntuple.root" -process.TotemNtuplizer.RawEventLabel = 'source' -process.TotemNtuplizer.RPReconstructedProtonCollectionLabel = cms.InputTag('RP220Reconst') -process.TotemNtuplizer.RPReconstructedProtonPairCollectionLabel = cms.InputTag('RP220Reconst') -process.TotemNtuplizer.RPMulFittedTrackCollectionLabel = cms.InputTag("RPMulTrackNonParallelCandCollFit") -process.TotemNtuplizer.includeDigi = cms.bool(True) -process.TotemNtuplizer.includePatterns = cms.bool(True) - - -process.digiAnal = cms.EDAnalyzer("CTPPSPixelDigiAnalyzer", - label=cms.untracked.string("RPixDetDigitizer"), - Verbosity = cms.int32(0), - RPixVerbosity = cms.int32(0), - RPixActiveEdgeSmearing = cms.double(0.020), - RPixActiveEdgePosition = cms.double(0.150) - -) - -process.p1 = cms.Path( process.digiAnal ) - - diff --git a/SimTransport/PPSProtonTransport/python/HectorTransport_cfi.py b/SimTransport/PPSProtonTransport/python/HectorTransport_cfi.py index dbc4b5092fa9b..28ef1bf2c6780 100644 --- a/SimTransport/PPSProtonTransport/python/HectorTransport_cfi.py +++ b/SimTransport/PPSProtonTransport/python/HectorTransport_cfi.py @@ -97,6 +97,57 @@ BeamYatIP = cms.untracked.double(0.), ) +Nominal_2018_beta30cm = cms.PSet( + Beam1Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB1_Beta0.30_6.5TeV_CR129.8_Nominal_2018.tfs'), + Beam2Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB2_Beta0.30_6.5TeV_CR129.8_Nominal_2018.tfs'), + halfCrossingAngleXSector45 = cms.double(129.8), #in mrad / Beam 1 + halfCrossingAngleYSector45 = cms.double(0.290), #in mrad / Beam 1 + halfCrossingAngleXSector56 = cms.double(129.8), #in mrad / Beam 2 + halfCrossingAngleYSector56 = cms.double(0.210), #in mrad / Beam 2 + BeamEnergyDispersion = cms.double(1.11e-4), ## beam energy dispersion (GeV); if =0.0 the default(=0.79) is used + BeamDivergenceX = cms.double(34.71), ## x angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamDivergenceY = cms.double(34.67), ## y angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamSigmaX = cms.double(10.40), + BeamSigmaY = cms.double(10.41), + BeamEnergy = cms.double(6500.0), + BeamXatIP = cms.untracked.double(0.), # mm + BeamYatIP = cms.untracked.double(-1.8) +) + +Nominal_2018_beta27cm = cms.PSet( + Beam1Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB1_Beta0.27_6.5TeV_CR130_Nominal_2018.tfs'), + Beam2Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB2_Beta0.27_6.5TeV_CR130_Nominal_2018.tfs'), + halfCrossingAngleXSector45 = cms.double(130.0), #in mrad / Beam 1 + halfCrossingAngleYSector45 = cms.double(0.), #in mrad / Beam 1 + halfCrossingAngleXSector56 = cms.double(130.0), #in mrad / Beam 2 + halfCrossingAngleYSector56 = cms.double(0.), #in mrad / Beam 2 + BeamEnergyDispersion = cms.double(1.11e-4), ## beam energy dispersion (GeV); if =0.0 the default(=0.79) is used + BeamDivergenceX = cms.double(36.56), ## x angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamDivergenceY = cms.double(36.56), ## y angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamSigmaX = cms.double(9.87), + BeamSigmaY = cms.double(9.87), + BeamEnergy = cms.double(6500.0), + BeamXatIP = cms.untracked.double(0.), # mm + BeamYatIP = cms.untracked.double(-1.8) +) + +Nominal_2018_beta25cm = cms.PSet( + Beam1Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB1_Beta0.25_6.5TeV_CR130_Nominal_2018.tfs'), + Beam2Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB2_Beta0.25_6.5TeV_CR130_Nominal_2018.tfs'), + halfCrossingAngleXSector45 = cms.double(130.0), #in mrad / Beam 1 + halfCrossingAngleYSector45 = cms.double(0.), #in mrad / Beam 1 + halfCrossingAngleXSector56 = cms.double(130.0), #in mrad / Beam 2 + halfCrossingAngleYSector56 = cms.double(0.), #in mrad / Beam 2 + BeamEnergyDispersion = cms.double(1.11e-4), ## beam energy dispersion (GeV); if =0.0 the default(=0.79) is used + BeamDivergenceX = cms.double(37.99), ## x angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamDivergenceY = cms.double(37.98), ## y angle dispersion at IP (urad); if =0.0 the default(=30.23) is used + BeamSigmaX = cms.double(9.50), + BeamSigmaY = cms.double(9.50), + BeamEnergy = cms.double(6500.0), + #BeamXatIP = cms.untracked.double(0.), # mm + #BeamYatIP = cms.untracked.double(-1.8) +) + Nominal_RunIII = cms.PSet( #TotemBeamLine = cms.bool(False), Beam1Filename = cms.string('SimTransport/PPSProtonTransport/data/LHCB1_Beta0.15_7TeV_CR250_HLLHCv1.4.tfs'), @@ -111,7 +162,7 @@ BeamSigmaX = cms.double(7.08), BeamSigmaY = cms.double(7.09), BeamEnergy = cms.double(7000.0), - BeamXatIP = cms.untracked.double(-750.), + BeamXatIP = cms.untracked.double(-0.750), BeamYatIP = cms.untracked.double(0.), ) @@ -129,7 +180,7 @@ hector_2018 = cms.PSet( baseHectorParameters, - Nominal_2017_beta30cm # CHANGE THIS WHEN THE PROPER ONE GET READY + Nominal_2018_beta25cm # CHANGE THIS WHEN THE PROPER ONE GET READY ) hector_2021 = cms.PSet(