How to use process method in mountebank

Best JavaScript code snippet using mountebank

Diamond_test.py

Source:Diamond_test.py Github

copy

Full Screen

1# Auto generated configuration file2# using: 3# Revision: 1.19 4# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 5# 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_exec6import FWCore.ParameterSet.Config as cms7from Configuration.StandardSequences.Eras import eras8process = cms.Process('CTPPS',eras.Run2_2017)9# import of standard configurations10process.load('Configuration.StandardSequences.Services_cff')11process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')12process.load('FWCore.MessageService.MessageLogger_cfi')13process.load('Configuration.EventContent.EventContent_cff')14process.load('SimGeneral.MixingModule.mixNoPU_cfi')15process.load('Configuration.StandardSequences.GeometryRecoDB_cff')16process.load('Configuration.Geometry.GeometryExtended2017dev_cff')17process.load('Configuration.StandardSequences.MagneticField_cff')18process.load('Configuration.StandardSequences.Generator_cff')19process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')20process.load('GeneratorInterface.Core.genFilterSummary_cff')21process.load('Configuration.StandardSequences.SimIdeal_cff')22process.load('Configuration.StandardSequences.EndOfProcess_cff')23process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')24###########SimTransport###########25process.load('SimTransport.HectorProducer.HectorTransportCTPPS_cfi')26process.load('SimG4Core.Application.g4SimHits_cfi')27process.g4SimHits.Physics.DefaultCutValue = 100.28process.g4SimHits.UseMagneticField = False29process.g4SimHits.Generator.ApplyPCuts = False30process.g4SimHits.Generator.ApplyPhiCuts = False31process.g4SimHits.Generator.ApplyEtaCuts = False32process.g4SimHits.Generator.HepMCProductLabel = 'LHCTransport'33process.g4SimHits.Generator.MinEtaCut = -13.034process.g4SimHits.Generator.MaxEtaCut = 13.035process.g4SimHits.Generator.Verbosity = 036process.g4SimHits.Generator.EtaCutForHector = 7.037process.g4SimHits.G4TrackingManagerVerbosity = cms.untracked.int32(3)38process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)39process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)40process.common_maximum_timex = cms.PSet( # need to be localy redefined41 MaxTrackTime = cms.double(2000.0), # need to be localy redefined42 MaxTimeNames = cms.vstring('ZDCRegion'), # need to be localy redefined43 MaxTrackTimes = cms.vdouble(10000.0), # need to be localy redefined44 DeadRegions = cms.vstring()45)46process.maxEvents = cms.untracked.PSet(47 input = cms.untracked.int32(10)48)49# Input source50process.source = cms.Source("EmptySource")51process.options = cms.untracked.PSet(52)53# Production Info54process.configurationMetadata = cms.untracked.PSet(55 annotation = cms.untracked.string('GluGluTo2Jets_M_100_7TeV_exhume_cff.py nevts:1'),56 name = cms.untracked.string('Applications'),57 version = cms.untracked.string('$Revision: 1.19 $')58)59# Output definition60process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",61 SelectEvents = cms.untracked.PSet(62 SelectEvents = cms.vstring('generation_step')63 ),64 dataset = cms.untracked.PSet(65 dataTier = cms.untracked.string('GEN-SIM'),66 filterName = cms.untracked.string('')67 ),68 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),69 fileName = cms.untracked.string('GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM_HECTOR_CTPPS.root'),70 outputCommands = process.FEVTDEBUGEventContent.outputCommands,71 splitLevel = cms.untracked.int32(0)72)73# Additional output definition74# Other statements75process.genstepfilter.triggerConditions=cms.vstring("generation_step")76from Configuration.AlCa.GlobalTag import GlobalTag77process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')78process.load('PhysicsTools.HepMCCandAlgos.genParticles_cfi')79process.generator = cms.EDFilter("ExhumeGeneratorFilter",80 ExhumeParameters = cms.PSet(81 AlphaEw = cms.double(0.0072974),82 B = cms.double(4.0),83 BottomMass = cms.double(4.6),84 CharmMass = cms.double(1.42),85 HiggsMass = cms.double(120.0),86 HiggsVev = cms.double(246.0),87 LambdaQCD = cms.double(80.0),88 MinQt2 = cms.double(0.64),89 MuonMass = cms.double(0.1057),90 PDF = cms.double(11000),91 Rg = cms.double(1.2),92 StrangeMass = cms.double(0.19),93 Survive = cms.double(0.03),94 TauMass = cms.double(1.77),95 TopMass = cms.double(175.0),96 WMass = cms.double(80.33),97 ZMass = cms.double(91.187)98 ),99 ExhumeProcess = cms.PSet(100 MassRangeHigh = cms.double(2000.0),101 MassRangeLow = cms.double(300.0),102 ProcessType = cms.string('GG'),103 ThetaMin = cms.double(0.3)104 ),105 PythiaParameters = cms.PSet(106 parameterSets = cms.vstring()107 ),108 comEnergy = cms.double(13000.0),109 maxEventsToPrint = cms.untracked.int32(2),110 pythiaHepMCVerbosity = cms.untracked.bool(False),111 pythiaPylistVerbosity = cms.untracked.int32(1)112)113process.ProductionFilterSequence = cms.Sequence(process.generator)114#process.load("SimCTPPS.CTPPSPixelDigiProducer.RPixDetConf_cfi")115#process.load("Configuration.Geometry.geometry_CTPPS_cfi")116process.load("Configuration.Geometry.cmsExtendedGeometry2017dev_veryforward_RP_CTPPS_XML_cfi")117# Path and EndPath definitions118process.generation_step = cms.Path(process.pgen)119process.simulation_step = cms.Path(process.psim)120# Transport121process.transport_step = cms.Path(process.LHCTransport)122process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)123process.endjob_step = cms.EndPath(process.endOfProcess)124process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)125process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.transport_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)126# filter all path with the production filter sequence127for path in process.paths:...

Full Screen

Full Screen

GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM.py

Source:GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM.py Github

copy

Full Screen

1# Auto generated configuration file2# using: 3# Revision: 1.19 4# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 5# 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_exec6import FWCore.ParameterSet.Config as cms7from Configuration.StandardSequences.Eras import eras8process = cms.Process('CTPPS',eras.Run2_2017)9# import of standard configurations10process.load('Configuration.StandardSequences.Services_cff')11process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')12process.load('FWCore.MessageService.MessageLogger_cfi')13process.load('Configuration.EventContent.EventContent_cff')14process.load('SimGeneral.MixingModule.mixNoPU_cfi')15process.load('Configuration.StandardSequences.GeometryRecoDB_cff')16process.load('Configuration.Geometry.GeometryExtended2017dev_cff')17process.load('Configuration.StandardSequences.MagneticField_cff')18process.load('Configuration.StandardSequences.Generator_cff')19process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')20process.load('GeneratorInterface.Core.genFilterSummary_cff')21process.load('Configuration.StandardSequences.SimIdeal_cff')22process.load('Configuration.StandardSequences.EndOfProcess_cff')23process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')24###########SimTransport###########25process.load('SimTransport.HectorProducer.HectorTransportCTPPS_cfi')26process.load('SimG4Core.Application.g4SimHits_cfi')27process.g4SimHits.Physics.DefaultCutValue = 100.28process.g4SimHits.UseMagneticField = False29process.g4SimHits.Generator.ApplyPCuts = False30process.g4SimHits.Generator.ApplyPhiCuts = False31process.g4SimHits.Generator.ApplyEtaCuts = False32process.g4SimHits.Generator.HepMCProductLabel = 'LHCTransport'33process.g4SimHits.Generator.MinEtaCut = -13.034process.g4SimHits.Generator.MaxEtaCut = 13.035process.g4SimHits.Generator.Verbosity = 036process.g4SimHits.Generator.EtaCutForHector = 7.037process.g4SimHits.G4TrackingManagerVerbosity = cms.untracked.int32(3)38process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)39process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)40process.common_maximum_timex = cms.PSet( # need to be localy redefined41 MaxTrackTime = cms.double(2000.0), # need to be localy redefined42 MaxTimeNames = cms.vstring('ZDCRegion'), # need to be localy redefined43 MaxTrackTimes = cms.vdouble(10000.0), # need to be localy redefined44 DeadRegions = cms.vstring()45)46process.maxEvents = cms.untracked.PSet(47 input = cms.untracked.int32(10)48)49# Input source50process.source = cms.Source("EmptySource")51process.options = cms.untracked.PSet(52)53# Production Info54process.configurationMetadata = cms.untracked.PSet(55 annotation = cms.untracked.string('GluGluTo2Jets_M_100_7TeV_exhume_cff.py nevts:1'),56 name = cms.untracked.string('Applications'),57 version = cms.untracked.string('$Revision: 1.19 $')58)59# Output definition60process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",61 SelectEvents = cms.untracked.PSet(62 SelectEvents = cms.vstring('generation_step')63 ),64 dataset = cms.untracked.PSet(65 dataTier = cms.untracked.string('GEN-SIM'),66 filterName = cms.untracked.string('')67 ),68 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),69 fileName = cms.untracked.string('GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM_HECTOR_CTPPS.root'),70 outputCommands = process.FEVTDEBUGEventContent.outputCommands,71 splitLevel = cms.untracked.int32(0)72)73# Additional output definition74# Other statements75process.genstepfilter.triggerConditions=cms.vstring("generation_step")76from Configuration.AlCa.GlobalTag import GlobalTag77process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')78process.load('PhysicsTools.HepMCCandAlgos.genParticles_cfi')79process.generator = cms.EDFilter("ExhumeGeneratorFilter",80 ExhumeParameters = cms.PSet(81 AlphaEw = cms.double(0.0072974),82 B = cms.double(4.0),83 BottomMass = cms.double(4.6),84 CharmMass = cms.double(1.42),85 HiggsMass = cms.double(120.0),86 HiggsVev = cms.double(246.0),87 LambdaQCD = cms.double(80.0),88 MinQt2 = cms.double(0.64),89 MuonMass = cms.double(0.1057),90 PDF = cms.double(11000),91 Rg = cms.double(1.2),92 StrangeMass = cms.double(0.19),93 Survive = cms.double(0.03),94 TauMass = cms.double(1.77),95 TopMass = cms.double(175.0),96 WMass = cms.double(80.33),97 ZMass = cms.double(91.187)98 ),99 ExhumeProcess = cms.PSet(100 MassRangeHigh = cms.double(2000.0),101 MassRangeLow = cms.double(300.0),102 ProcessType = cms.string('GG'),103 ThetaMin = cms.double(0.3)104 ),105 PythiaParameters = cms.PSet(106 parameterSets = cms.vstring()107 ),108 comEnergy = cms.double(13000.0),109 maxEventsToPrint = cms.untracked.int32(2),110 pythiaHepMCVerbosity = cms.untracked.bool(False),111 pythiaPylistVerbosity = cms.untracked.int32(1)112)113process.ProductionFilterSequence = cms.Sequence(process.generator)114#process.load("SimCTPPS.CTPPSPixelDigiProducer.RPixDetConf_cfi")115# Path and EndPath definitions116process.generation_step = cms.Path(process.pgen)117process.simulation_step = cms.Path(process.psim)118# Transport119process.transport_step = cms.Path(process.LHCTransport)120process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)121process.endjob_step = cms.EndPath(process.endOfProcess)122process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)123process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.transport_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)124# filter all path with the production filter sequence125for path in process.paths:...

Full Screen

Full Screen

gluglu_step2_DIGI_DIGI2RAW.py

Source:gluglu_step2_DIGI_DIGI2RAW.py Github

copy

Full Screen

1# Auto generated configuration file2# using: 3# Revision: 1.19 4# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 5# 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_exec6import FWCore.ParameterSet.Config as cms7from Configuration.StandardSequences.Eras import eras8process = cms.Process('DIGI2RAW',eras.Run2_2017)9# import of standard configurations10process.load('Configuration.StandardSequences.Services_cff')11process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')12process.load('FWCore.MessageService.MessageLogger_cfi')13process.load('Configuration.EventContent.EventContent_cff')14process.load('SimGeneral.MixingModule.mixNoPU_cfi')15process.load('Configuration.StandardSequences.GeometryRecoDB_cff')16process.load('Configuration.StandardSequences.MagneticField_cff')17process.load('Configuration.StandardSequences.cmsCTPPSDigi_cff')18process.load('Configuration.StandardSequences.SimL1Emulator_cff')19process.load('Configuration.StandardSequences.cmsCTPPSDigiToRaw_cff')20process.load('HLTrigger.Configuration.HLT_2e34v31_cff')21process.load('Configuration.StandardSequences.EndOfProcess_cff')22process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')23process.load('Configuration.Geometry.GeometryExtended2017dev_cff')24process.load("CondFormats.CTPPSReadoutObjects.CTPPSPixelDAQMappingESSourceXML_cfi")25process.maxEvents = cms.untracked.PSet(26 input = cms.untracked.int32(-1)27)28process.load("IOMC.RandomEngine.IOMC_cff")29process.RandomNumberGeneratorService.generator.initialSeed = 45678930process.RandomNumberGeneratorService.g4SimHits.initialSeed = 987631process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 12345678932process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137))33# Input source34process.source = cms.Source("PoolSource",35 dropDescendantsOfDroppedBranches = cms.untracked.bool(False),36 fileNames = cms.untracked.vstring('file:GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM_HECTOR_CTPPS.root'),37 inputCommands = cms.untracked.vstring('keep *', 38 'drop *_genParticles_*_*', 39 'drop *_genParticlesForJets_*_*', 40 'drop *_kt4GenJets_*_*', 41 'drop *_kt6GenJets_*_*', 42 'drop *_iterativeCone5GenJets_*_*', 43 'drop *_ak4GenJets_*_*', 44 'drop *_ak7GenJets_*_*', 45 'drop *_ak8GenJets_*_*', 46 'drop *_ak4GenJetsNoNu_*_*', 47 'drop *_ak8GenJetsNoNu_*_*', 48 'drop *_genCandidatesForMET_*_*', 49 'drop *_genParticlesForMETAllVisible_*_*', 50 'drop *_genMetCalo_*_*', 51 'drop *_genMetCaloAndNonPrompt_*_*', 52 'drop *_genMetTrue_*_*', 53 'drop *_genMetIC5GenJs_*_*'),54 secondaryFileNames = cms.untracked.vstring()55)56process.options = cms.untracked.PSet(57 SkipEvent = cms.untracked.vstring('ProductNotFound')58)59# Production Info60process.configurationMetadata = cms.untracked.PSet(61 annotation = cms.untracked.string('step2 nevts:10'),62 name = cms.untracked.string('Applications'),63 version = cms.untracked.string('$Revision: 1.19 $')64)65# Output definition66process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",67 dataset = cms.untracked.PSet(68 dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'),69 filterName = cms.untracked.string('')70 ),71 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),72 fileName = cms.untracked.string('gluglu_step2_DIGI_DIGI2RAW.root'),73 outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands+['keep *_RPixDetDigitizer_*_*','keep *_ctppsPixelRawData_*_*'], 74 splitLevel = cms.untracked.int32(0)75)76# Additional output definition77# Other statements78process.mix.digitizers = cms.PSet(process.theDigitizersValid)79from Configuration.AlCa.GlobalTag import GlobalTag80process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')81# Path and EndPath definitions82process.digitisation_step = cms.Path(process.pdigi_valid)83process.L1simulation_step = cms.Path(process.SimL1Emulator)84process.digi2raw_step = cms.Path(process.DigiToRaw)85process.endjob_step = cms.EndPath(process.endOfProcess)86process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)87# Schedule definition88process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step)89process.schedule.extend(process.HLTSchedule)90process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step])91from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask92associatePatAlgosToolsTask(process)93# Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC94from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC95#call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC96process = customizeHLTforMC(process)97# Add early deletion of temporary data products to reduce peak memory need98from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete99process = customiseEarlyDelete(process)100# End adding early deletion...

Full Screen

Full Screen

run_only_CTPPS_cfg_DIG_.py

Source:run_only_CTPPS_cfg_DIG_.py Github

copy

Full Screen

1import FWCore.ParameterSet.Config as cms2from Configuration.StandardSequences.Eras import eras3process = cms.Process('CTPPS2',eras.Run2_25ns)4# import of standard configurations5process.load('Configuration.StandardSequences.Services_cff')6process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')7process.load('FWCore.MessageService.MessageLogger_cfi')8process.load('Configuration.EventContent.EventContent_cff')9process.load('SimGeneral.MixingModule.mixNoPU_cfi')10process.load('Configuration.StandardSequences.MagneticField_38T_cff')11process.load('Configuration.StandardSequences.Generator_cff')12process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')13process.load('GeneratorInterface.Core.genFilterSummary_cff')14process.load('Configuration.StandardSequences.SimIdeal_cff')15process.load('Configuration.StandardSequences.EndOfProcess_cff')16process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')17############### using only CTPPS geometry 18from Configuration.Geometry.geometry_CTPPS_cfi import XMLIdealGeometryESSource_CTPPS19process.XMLIdealGeometryESSource = XMLIdealGeometryESSource_CTPPS.clone()20##########SimTransport###########21process.load('SimTransport.HectorProducer.HectorTransportCTPPS_cfi')22process.load("SimG4Core.Application.g4SimHits_cfi")23process.g4SimHits.Generator.ApplyPCuts = False24process.g4SimHits.Generator.ApplyPhiCuts = False25process.g4SimHits.Generator.ApplyEtaCuts = False26process.g4SimHits.Generator.HepMCProductLabel = 'LHCTransport'27process.g4SimHits.Generator.MinEtaCut = -13.028process.g4SimHits.Generator.MaxEtaCut = 13.029process.g4SimHits.Generator.Verbosity = 030process.g4SimHits.G4TrackingManagerVerbosity = cms.untracked.int32(3)31process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)32process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)33process.load("IOMC.RandomEngine.IOMC_cff")34process.RandomNumberGeneratorService.generator.initialSeed = 45678935process.RandomNumberGeneratorService.g4SimHits.initialSeed = 987636process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 12345678937process.RandomNumberGeneratorService.RPixDetDigitizer = cms.PSet(initialSeed =cms.untracked.uint32(137137))38process.maxEvents = cms.untracked.PSet(39 input = cms.untracked.int32(1000)40 )41from Configuration.AlCa.GlobalTag import GlobalTag42process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_hlt_relval', '')43process.load('PhysicsTools.HepMCCandAlgos.genParticles_cfi')44import math45phi_min = -math.pi46phi_max = math.pi47t_min = 0.48t_max = 2.49xi_min = 0.0150xi_max = 0.351ecms = 13000.52process.generator = cms.EDProducer("RandomtXiGunProducer",53 PGunParameters = cms.PSet(54 PartID = cms.vint32(2212),55 MinPhi = cms.double(phi_min),56 MaxPhi = cms.double(phi_max),57 ECMS = cms.double(ecms),58 Mint = cms.double(t_min),59 Maxt = cms.double(t_max),60 MinXi = cms.double(xi_min),61 MaxXi = cms.double(xi_max)62 ),63 Verbosity = cms.untracked.int32(0),64 psethack = cms.string('single protons'),65 FireBackward = cms.bool(True),66 FireForward = cms.bool(True),67 firstRun = cms.untracked.uint32(1),68 )69process.source = cms.Source("EmptySource",70 firstRun = cms.untracked.uint32(294700),71 numberEventsInRun = cms.untracked.uint32(100),72)73process.ProductionFilterSequence = cms.Sequence(process.generator)74############75process.o1 = cms.OutputModule("PoolOutputModule",76 outputCommands = cms.untracked.vstring('keep *'),77 fileName = cms.untracked.string('simevent_CTPPS_DIG.root')78 )79process.common_maximum_timex = cms.PSet( # need to be localy redefined80 MaxTrackTime = cms.double(2000.0), # need to be localy redefined81 MaxTimeNames = cms.vstring('ZDCRegion'), # need to be localy redefined82 MaxTrackTimes = cms.vdouble(10000.0), # need to be localy redefined83 DeadRegions = cms.vstring()84 )85process.generation_step = cms.Path(process.pgen)86process.simulation_step = cms.Path(process.psim)87process.g4Simhits_step = cms.Path(process.g4SimHits)88# Transport89process.transport_step = cms.Path(process.LHCTransport)90process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)91process.outpath = cms.EndPath(process.o1)92process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.transport_step,process.g4Simhits_step,process.outpath)93# filter all path with the production filter sequence94for path in process.paths:...

Full Screen

Full Screen

gluglu_step3_RAW2DIGI_L1Reco_RECO.py

Source:gluglu_step3_RAW2DIGI_L1Reco_RECO.py Github

copy

Full Screen

1# Auto generated configuration file2# using: 3# Revision: 1.19 4# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 5# 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.root6import FWCore.ParameterSet.Config as cms7from Configuration.StandardSequences.Eras import eras8process = cms.Process('RECO',eras.Run2_2017)9# import of standard configurations10process.load('Configuration.StandardSequences.Services_cff')11process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')12process.load('FWCore.MessageService.MessageLogger_cfi')13process.load('Configuration.EventContent.EventContent_cff')14process.load('SimGeneral.MixingModule.mixNoPU_cfi')15process.load('Configuration.StandardSequences.cmsctppsGeometryRecoDB_cff')16process.load('Configuration.StandardSequences.MagneticField_cff')17process.load('Configuration.StandardSequences.RawToDigi_cff')18process.load('Configuration.StandardSequences.L1Reco_cff')19process.load('Configuration.StandardSequences.Reconstruction_cff')20process.load('CommonTools.ParticleFlow.EITopPAG_cff')21process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')22process.load('CondFormats.CTPPSReadoutObjects.CTPPSPixelDAQMappingESSourceXML_cfi')23process.maxEvents = cms.untracked.PSet(24 input = cms.untracked.int32(10)25)26# Input source27process.source = cms.Source("PoolSource",28 fileNames = cms.untracked.vstring('file:gluglu_step2_DIGI_DIGI2RAW.root'),29 secondaryFileNames = cms.untracked.vstring()30)31process.options = cms.untracked.PSet(32)33# Production Info34process.configurationMetadata = cms.untracked.PSet(35 annotation = cms.untracked.string('step3 nevts:10'),36 name = cms.untracked.string('Applications'),37 version = cms.untracked.string('$Revision: 1.19 $')38)39# Output definition40process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",41 dataset = cms.untracked.PSet(42 dataTier = cms.untracked.string('GEN-SIM-RECO'),43 filterName = cms.untracked.string('')44 ),45 fileName = cms.untracked.string('file:gluglu_step3_RAW2DIGI_L1Reco_RECO.root'),46 outputCommands = process.RECOSIMEventContent.outputCommands+['keep *_ctppsPixelDigis_*_*'],47 splitLevel = cms.untracked.int32(0)48)49# Additional output definition50# Other statements51process.mix.playback = True52process.mix.digitizers = cms.PSet()53for a in process.aliases: delattr(process, a)54process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string("randomEngineStateProducer")55from Configuration.AlCa.GlobalTag import GlobalTag56process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')57# Path and EndPath definitions58process.raw2digi_step = cms.Path(process.RawToDigi)59process.L1Reco_step = cms.Path(process.L1Reco)60process.reconstruction_step = cms.Path(process.reconstruction)61process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput)62# Schedule definition63process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.RECOSIMoutput_step)64from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask65associatePatAlgosToolsTask(process)66# customisation of the process.67# Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff68from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 69#call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff70process = setCrossingFrameOn(process)71# End of customisation functions72#do not add changes to your config after this point (unless you know what you are doing)73from FWCore.ParameterSet.Utilities import convertToUnscheduled74process=convertToUnscheduled(process)75# customisation of the process.76# End of customisation functions77# Customisation from command line78# Add early deletion of temporary data products to reduce peak memory need79from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete80process = customiseEarlyDelete(process)...

Full Screen

Full Screen

geometryTestRun_cfg.py

Source:geometryTestRun_cfg.py Github

copy

Full Screen

1import FWCore.ParameterSet.Config as cms2process = cms.Process("GeometryTest")3process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff")4process.load("Geometry.RPCGeometry.rpcGeometry_cfi")5process.load("Geometry.DTGeometry.dtGeometry_cfi")6#startCSC7process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")8#process.load("Geometry.MuonCommonData.muonEndcapIdealGeometryXML_cfi")9# flags for modelling of CSC layer & strip geometry10process.load("Geometry.CSCGeometry.cscGeometry_cfi")11#process.load("Geometry.CSCGeometryBuilder.idealForDigiCscGeometry_cff")12process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")13#process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource", "FakeAlignmentSource")14process.fake2 = process.FakeAlignmentSource15del process.FakeAlignmentSource16process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource", "fake2")17process.load("Geometry.CSCGeometry.cscGeometry_cfi")18#end CSC19process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")20process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")21#process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")22process.load("Configuration.StandardSequences.MagneticField_38T_cff")23process.load("Geometry.CaloEventSetup.CaloGeometry_cff")24process.maxEvents = cms.untracked.PSet(25 input = cms.untracked.int32(1)26 )27process.source = cms.Source("EmptySource")28process.prpc = cms.EDAnalyzer("RPCGeometryAnalyzer")29process.pdt = cms.EDAnalyzer("DTGeometryAnalyzer")30process.pcsc = cms.EDAnalyzer("CSCGeometryAnalyzer")31process.ptrak = cms.EDAnalyzer("TrackerDigiGeometryAnalyzer")32#process.pcalo = cms.EDAnalyzer("CaloGeometryAnalyzer")33process.load("Geometry.CaloEventSetup.CaloGeometry_cff")34process.load("Geometry.CaloEventSetup.CaloTopology_cfi")35process.etta = cms.EDAnalyzer("dumpEcalTrigTowerMapping")36process.ctgw = cms.EDAnalyzer("testEcalGetWindow")37process.cga = cms.EDAnalyzer("CaloGeometryAnalyzer",38 fullEcalDump = cms.untracked.bool(True)39 )40process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")41process.ctgw = cms.EDAnalyzer("testEcalGetWindow")42process.mfa = cms.EDAnalyzer("testMagneticField")43process.TFileService = cms.Service("TFileService", fileName = cms.string('calogeom.root') )44process.cga = cms.EDAnalyzer("CaloGeometryAnalyzer",45 fullEcalDump = cms.untracked.bool(True)46 )47process.myprint = cms.OutputModule("AsciiOutputModule")48process.MessageLogger = cms.Service("MessageLogger",49 detailedInfo = cms.untracked.PSet(50 threshold = cms.untracked.string('DEBUG')51 ),52 warning = cms.untracked.PSet(53 threshold = cms.untracked.string('WARNING')54 ),55 debugModules = cms.untracked.vstring('*'),56 critical = cms.untracked.PSet(57 threshold = cms.untracked.string('ERROR')58 ),59 destinations = cms.untracked.vstring('detailedInfo',60 'critical',61 'info',62 'warning')63 )64process.p1 = cms.Path(process.pcsc*process.prpc*process.pdt*process.ptrak*process.etta*process.ctgw*process.cga*process.mfa) #*process.pcalo)...

Full Screen

Full Screen

step3_RAW2DIGI_RECO.py

Source:step3_RAW2DIGI_RECO.py Github

copy

Full Screen

1# Auto generated configuration file2# using: 3# Revision: 1.19 4import FWCore.ParameterSet.Config as cms5from Configuration.StandardSequences.Eras import eras6process = cms.Process('CTPPS2',eras.Run2_25ns)7# import of standard configurations8process.load('Configuration.StandardSequences.Services_cff')9process.load('FWCore.MessageService.MessageLogger_cfi')10process.load("Configuration.EventContent.EventContent_cff")11process.load('Configuration.StandardSequences.MagneticField_cff')12process.load('Configuration.StandardSequences.EndOfProcess_cff')13process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')14process.load("CondFormats.CTPPSReadoutObjects.CTPPSPixelDAQMappingESSourceXML_cfi")15process.load('Configuration.StandardSequences.CTPPSRawToDigi_cff')16process.maxEvents = cms.untracked.PSet(17 input = cms.untracked.int32(-1)18)19process.source = cms.Source("EmptyIOVSource",20 timetype = cms.string('runnumber'),21 firstValue = cms.uint64(1),22 lastValue = cms.uint64(1),23 interval = cms.uint64(1)24)25# Input source26process.source = cms.Source("PoolSource",27 fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW.root'),28 secondaryFileNames = cms.untracked.vstring()29)30# Track memory leaks31process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )32process.options = cms.untracked.PSet(33 SkipEvent = cms.untracked.vstring('ProductNotFound')34)35# Output definition36process.output = cms.OutputModule("PoolOutputModule",37 fileName = cms.untracked.string('step3_RAW2DIGI_RECO.root'),38 outputCommands = cms.untracked.vstring("drop *","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_RPix*_*_*")39)40# Additional output definition41# Other statements42from Configuration.AlCa.GlobalTag import GlobalTag43process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_hlt_relval', '')44from RecoCTPPS.PixelLocal.ctppsPixelLocalReconstruction_cff import *45process.load("RecoCTPPS.PixelLocal.ctppsPixelLocalReconstruction_cff")46# Path and EndPath definitions47process.raw2digi_step = cms.Path(process.RawToDigi)48process.reco_step = cms.Path(process.ctppsPixelLocalReconstruction)49process.endjob_step = cms.EndPath(process.endOfProcess)50process.output_step = cms.EndPath(process.output)51# Schedule definition52process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step)53# filter all path with the production filter sequence54for path in process.paths:55 # getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq...

Full Screen

Full Screen

FastSimWithCTPPS_cff.py

Source:FastSimWithCTPPS_cff.py Github

copy

Full Screen

1import FWCore.ParameterSet.Config as cms2def customise(process):3 if hasattr(process.VtxSmeared,"X0"):4 VertexX = process.VtxSmeared.X05 VertexY = process.VtxSmeared.Y06 VertexZ = process.VtxSmeared.Z07 if hasattr(process.VtxSmeared,"MeanX"):8 VertexX = process.VtxSmeared.MeanX9 VertexY = process.VtxSmeared.MeanY10 VertexZ = process.VtxSmeared.MeanZ11 12 process.load('SimTransport.HectorProducer.HectorTransportCTPPS_cfi')13 process.LHCTransport.CTPPSHector.VtxMeanX = VertexX14 process.LHCTransport.CTPPSHector.VtxMeanY = VertexY15 process.LHCTransport.CTPPSHector.VtxMeanZ = VertexZ16 ###################################17 process.load('FastSimulation.CTPPSSimHitProducer.CTPPSSimHitProducer_cfi')18 process.load('FastSimulation.CTPPSRecHitProducer.CTPPSRecHitProducer_cfi')19 process.load('FastSimulation.CTPPSFastTrackingProducer.CTPPSFastTrackingProducer_cfi')20 ###################################21 process.mix.mixObjects.mixSH.crossingFrames.append('CTPPSHits')22 process.mix.mixObjects.mixSH.input.append(cms.InputTag("CTPPSSimHits","CTPPSHits"))23 process.mix.mixObjects.mixSH.subdets.append('CTPPSHits')24 25 26 # CTPPS simHit sequence 27 process.simulation_step.replace(process.psim,process.psim+process.CTPPSSimHits)28 # SimTransport on path29 process.transport_step = cms.Path(process.generator+process.LHCTransport)30 process.schedule.insert(2,process.transport_step)31 # output32 outputModule = None33 outdict = process.outputModules_()34 if outdict.has_key("AODSIMoutput"):35 process.AODSIMoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*','keep *_CTPPSFastRecHits_*_*'36,'keep *_CTPPSFastTracks_*_*'))37 process.reconstruction_step.replace(process.reconstruction,process.reconstruction*process.CTPPSFastRecHits*process.CTPPSFastTracks) 38 elif outdict.has_key("FASTPUoutput"):39 process.FASTPUoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*')) 40 41 ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var mb = require('mountebank');2mb.create({3}, function (error) {4 if (error) {5 console.error('Error creating mountebank server', error);6 }7});8var mb = require('mountebank');9mb.create({10}, function (error) {11 if (error) {12 console.error('Error creating mountebank server', error);13 }14});15var mb = require('mountebank');16mb.create({17}, function (error) {18 if (error) {19 console.error('Error creating mountebank server', error);20 }21});22var mb = require('mountebank');23mb.create({24}, function (error) {25 if (error) {26 console.error('Error creating mountebank server', error);27 }28});29var mb = require('mountebank');30mb.create({31}, function (error) {32 if (error) {33 console.error('Error creating mountebank server', error);34 }35});36var mb = require('mountebank');37mb.create({

Full Screen

Using AI Code Generation

copy

Full Screen

1var mb = require('mountebank');2var port = "2525";3var imposters = {4 {5 {6 "is": {7 }8 }9 }10};11mb.create({12}, function (error, imposter) {13 if (error) {14 console.error("Error creating imposter", error);15 } else {16 }17});18var mb = require('mountebank');19var port = "2525";20var imposters = {21 {22 {23 "is": {24 }25 }26 }27};28mb.createImposter(2525, imposters, function (error, imposter) {29 if (error) {30 console.error("Error creating imposter", error);31 } else {32 }33});34var mb = require('mountebank');35var port = "2525";36mb.delete(port, function (error, result) {37 if (error) {38 console.error("Error deleting imposter", error);39 } else {40 console.log("Imposter deleted");41 }42});43var mb = require('mountebank');44var port = "2525";45mb.deleteImposter(port, function (error, result) {46 if (error) {47 console.error("Error deleting imposter", error);48 } else {49 console.log("Imposter deleted");

Full Screen

Using AI Code Generation

copy

Full Screen

1var mb = require('mountebank');2mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {3 console.log('done!');4});5var mb = require('mountebank');6mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {7 console.log('done!');8});9var mb = require('mountebank');10mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {11 console.log('done!');12});13var mb = require('mountebank');14mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {15 console.log('done!');16});17var mb = require('mountebank');18mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {19 console.log('done!');20});21var mb = require('mountebank');22mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {23 console.log('done!');24});25var mb = require('mountebank');26mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {27 console.log('done!');28});29var mb = require('mountebank');30mb.create({port: 2525, pidfile: 'mb.pid', logfile: 'mb.log', protofile: 'mb.proto'}, function () {

Full Screen

Using AI Code Generation

copy

Full Screen

1var mb = require('mountebank');2mb.create({port:2525, pidfile:'mb.pid', logfile:'mb.log', ipWhitelist: ['*']}).then(function (imposter) {3 console.log('Imposter created at %s', imposter.url);4 imposter.addStub({responses: [{is: {body: 'Hello world!'}}]}).then(function () {5 console.log('Stub added');6 });7});8{9}

Full Screen

Using AI Code Generation

copy

Full Screen

1const mb = require('mountebank');2const port = 2525;3const stub = {4{5"proxy": {6}7}8};9mb.create(port, stub, 3000)10.then(function (isCreated) {11console.log('Stub is created');12})13.catch(function (error) {14console.log('Error creating stub', error);15});16const mb = require('mountebank');17const port = 2525;18const mock = {19{20"is": {21"headers": {22},23"body": JSON.stringify({24})25}26}27};28mb.create(port, mock, 3000)29.then(function (isCreated) {30console.log('Mock is created');31})32.catch(function (error) {33console.log('Error creating mock', error);34});35const mb = require('mountebank');36const port = 2525;37const predicate = {38{39"equals": {40}41}42};43mb.create(port, predicate, 3000)44.then(function (isCreated) {45console.log('Predicate is created');46})47.catch(function (error) {48console.log('Error creating predicate', error);49});50const mb = require('mountebank');51const port = 2525;52const impostor = {53{54{55"proxy": {56}57}58}59};60mb.create(port, impostor, 3000)61.then(function (isCreated) {62console.log('Impostor is created');63})64.catch(function (error) {65console.log('Error creating impostor', error);66});67const mb = require('mountebank');68const port = 2525;69const impostor = {

Full Screen

Using AI Code Generation

copy

Full Screen

1const mb = require('mountebank');2const port = 2525;3const imposterPort = 2526;4const imposterName = 'testImposter';5const imposterProtocol = 'http';6const imposterStub = {7 {8 is: {9 headers: {10 },11 body: {12 }13 }14 }15};16const imposterPredicate = {17 equals: {18 }19};20const imposterStubPredicate = {21 {22 is: {23 headers: {24 },25 body: {26 }27 }28 }29};30const imposter = {31};32const imposterWithPredicate = {33};34mb.create({ port: port, pidfile: 'mb.pid', logfile: 'mb.log', ipWhitelist: ['*'] }, async function (error, server) {35 if (error) {36 console.error('Error creating mountebank server', error);37 }38 else {39 console.log('Mountebank server created successfully');40 await server.post('/imposters', imposter);41 console.log('Imposter created successfully');42 await server.delete('/imposters/' + imposterPort);43 console.log('Imposter deleted successfully');44 await server.post('/imposters', imposterWithPredicate);45 console.log('Imposter created with predicate successfully');46 await server.delete('/imposters/' + imposterPort);47 console.log('Imposter deleted successfully');48 await server.close();49 console.log('Mountebank server closed successfully');50 }51});52import { create } from 'mountebank';53import {

Full Screen

Using AI Code Generation

copy

Full Screen

1const mb = require('mountebank');2const port = 2525;3mb.create(port).then(function (imposter) {4 const stub = {5 {6 is: {7 }8 }9 };10 const predicate = {11 equals: {12 }13 };14 const imposter = {15 {16 }17 };18 return imposter.post();19}).then(function (imposter) {20 console.log(imposter);21});22const mb = require('mountebank');23const port = 2525;24mb.create(port).then(function (imposter) {25 const stub = {26 {27 is: {28 }29 }30 };31 const predicate = {32 equals: {33 }34 };35 const imposter = {36 {37 }38 };39 return imposter.post();40}).then(function (imposter) {41 console.log(imposter);42});43const mb = require('mountebank');44const port = 2525;45mb.create(port).then(function (imposter) {46 const stub = {47 {48 is: {49 }50 }51 };

Full Screen

Using AI Code Generation

copy

Full Screen

1var mb = require('mountebank');2var fs = require('fs');3var imposter = JSON.parse(fs.readFileSync('imposter.json').toString());4var response = JSON.parse(fs.readFileSync('response.json').toString());5mb.create(imposter, function (error, imposter) {6 if (error) {7 console.error('Error creating imposter', error);8 } else {9 console.log('Imposter created at ' + imposter.url);10 console.log('Adding response');11 mb.addResponse(imposter.port, response, function (error) {12 if (error) {13 console.error('Error adding response', error);14 } else {15 console.log('Response added');16 }17 });18 }19});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run mountebank automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful