Best JavaScript code snippet using cypress
Diamond_test.py
Source: Diamond_test.py
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:...
GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM.py
Source: GluGluTo2Jets_M_300_2000_13TeV_exhume_cff_py_GEN_SIM.py
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:...
gluglu_step2_DIGI_DIGI2RAW.py
Source: gluglu_step2_DIGI_DIGI2RAW.py
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...
run_only_CTPPS_cfg_DIG_.py
Source: run_only_CTPPS_cfg_DIG_.py
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:...
gluglu_step3_RAW2DIGI_L1Reco_RECO.py
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)...
geometryTestRun_cfg.py
Source: geometryTestRun_cfg.py
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)...
step3_RAW2DIGI_RECO.py
Source: step3_RAW2DIGI_RECO.py
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...
FastSimWithCTPPS_cff.py
Source: FastSimWithCTPPS_cff.py
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 ...
Using AI Code Generation
1describe('My First Test', function() {2 it('Does not do much!', function() {3 cy.contains('type').click()4 cy.url().should('include', '/commands/actions')5 cy.get('.action-email')6 .type('
Using AI Code Generation
1describe('my first test', function() {2 it('Does not do much!', function() {3 cy.contains('type').click()4 cy.url().should('include', '/commands/actions')5 cy.get('.action-email')6 .type('
Using AI Code Generation
1describe('My First Test', () => {2 it('Does not do much!', () => {3 expect(true).to.equal(true)4 })5})6describe('My First Test', () => {7 it('Does not do much!', () => {8 expect(true).to.equal(true)9 })10})11describe('My First Test', () => {12 it('Does not do much!', () => {13 expect(true).to.equal(true)14 })15})16describe('My First Test', () => {17 it('Does not do much!', () => {18 expect(true).to.equal(true)19 })20})21describe 'My First Test', () =>22 it 'Does not do much!', () ->23 expect(true).to.equal(true)24describe 'My First Test', () =>25 it 'Does not do much!', () ->26 expect(true).to.equal(true)27describe 'My First Test', () =>28 it 'Does not do much!', () ->29 expect(true).to.equal(true)30describe 'My First Test', () =>31 it 'Does not do much!', () ->32 expect(true).to.equal(true)33describe 'My First Test', () =>34 it 'Does not do much!', () ->35 expect(true).to.equal(true)36describe 'My First Test', () =>37 it 'Does not do much!', () ->38 expect(true).to.equal(true)39describe 'My First Test', () =>40 it 'Does not do much!', () ->
Using AI Code Generation
1describe('Test', () => {2 it('test', () => {3 cy.get('input[name="q"]').type('Cypress')4 cy.get('input[name="btnK"]').click()5 })6})
Using AI Code Generation
1describe('My First Test Suite', function() {2 it('My FirstTest case', function() {3 cy.get('input[name="name"]:nth-child(2)').type(Cypress.env('name'));4 })5})6{7 "env": {8 }9}10{11}12{13}14{15}16{17}18{19}20{21}22{23}24{25}26{27}
Using AI Code Generation
1describe('Test', () => {2 it('should do something', () => {3 cy.get('input').type('test')4 cy.get('button').click()5 cy.get('h1').should('have.text', 'test')6 })7})8Cypress.Commands.add('login', (username, password) => {9 cy.get('input[name="username"]').type(username)10 cy.get('input[name="password"]').type(password)11 cy.get('button').click()12})13describe('Test', () => {14 it('should do something', () => {15 cy.login('user', 'pass')16 })17})18Cypress.Commands.add('login', (username, password) => {19 cy.get('input[name="username"]').type(username)20 cy.get('input[name="password"]').type(password)21 cy.get('button').click()22})23describe('Test', () => {24 it('should do something', () => {25 cy.login('user', 'pass')26 })27})28Cypress.Commands.add('login', (username, password) => {29 cy.get('input[name="username"]').type(username)30 cy.get('input[name="password"]').type(password)31 cy.get('button').click()32})33describe('Test', () => {34 it('should do something', () => {35 cy.login('user', 'pass')36 })37})38Cypress.Commands.add('login', (username, password) => {39 cy.get('input[name="username"]').type(username)40 cy.get('input[name="password"]').type(password)41 cy.get('button').click()42})43describe('Test', () => {44 it('should do something', () => {
Using AI Code Generation
1describe('Test', function () {2 it('test', function () {3 cy.get('input[name="q"]').type('Hello {enter}')4 cy.get('input[name="q"]').should('have.value', 'Hello')5 })6})7describe('Test', function () {8 it('test', function () {9 cy.get('input[name="q"]').type('Hello {enter}')10 cy.get('input[name="q"]').should('have.value', 'Hello')11 cy.task('log', 'Test')12 })13})14module.exports = (on, config) => {15 on('task', {16 log(message) {17 console.log(message)18 }19 })20}
Cypress does not always executes click on element
How to get current date using cy.clock()
.type() method in cypress when string is empty
Cypress route function not detecting the network request
How to pass files name in array and then iterating for the file upload functionality in cypress
confused with cy.log in cypress
why is drag drop not working as per expectation in cypress.io?
Failing wait for request in Cypress
How to Populate Input Text Field with Javascript
Is there a reliable way to have Cypress exit as soon as a test fails?
2022 here and tested with cypress version: "6.x.x"
until "10.x.x"
You could use { force: true }
like:
cy.get("YOUR_SELECTOR").click({ force: true });
but this might not solve it ! The problem might be more complex, that's why check below
My solution:
cy.get("YOUR_SELECTOR").trigger("click");
Explanation:
In my case, I needed to watch a bit deeper what's going on. I started by pin the click
action like this:
Then watch the console, and you should see something like:
Now click on line Mouse Events
, it should display a table:
So basically, when Cypress executes the click
function, it triggers all those events but somehow my component behave the way that it is detached the moment where click event
is triggered.
So I just simplified the click by doing:
cy.get("YOUR_SELECTOR").trigger("click");
And it worked ????
Hope this will fix your issue or at least help you debug and understand what's wrong.
Check out the latest blogs from LambdaTest on this topic:
When it comes to web automation testing, the first automation testing framework that comes to mind undoubtedly has to be the Selenium framework. Selenium automation testing has picked up a significant pace since the creation of the framework way back in 2004.
We just raised $45 million in a venture round led by Premji Invest with participation from existing investors. Here’s what we intend to do with the money.
Find element by Text in Selenium is used to locate a web element using its text attribute. The text value is used mostly when the basic element identification properties such as ID or Class are dynamic in nature, making it hard to locate the web element.
We are nearing towards the end of 2019, where we are witnessing the introduction of more aligned JavaScript engines from major browser vendors. Which often strikes a major question in the back of our heads as web-developers or web-testers, and that is, whether cross browser testing is still relevant? If all the major browser would move towards a standardized process while configuring their JavaScript engines or browser engines then the chances of browser compatibility issues are bound to decrease right? But does that mean that we can simply ignore cross browser testing?
Web products of top-notch quality can only be realized when the emphasis is laid on every aspect of the product. This is where web automation testing plays a major role in testing the features of the product inside-out. A majority of the web testing community (including myself) have been using the Selenium test automation framework for realizing different forms of web testing (e.g., cross browser testing, functional testing, etc.).
Cypress is a renowned Javascript-based open-source, easy-to-use end-to-end testing framework primarily used for testing web applications. Cypress is a relatively new player in the automation testing space and has been gaining much traction lately, as evidenced by the number of Forks (2.7K) and Stars (42.1K) for the project. LambdaTest’s Cypress Tutorial covers step-by-step guides that will help you learn from the basics till you run automation tests on LambdaTest.
You can elevate your expertise with end-to-end testing using the Cypress automation framework and stay one step ahead in your career by earning a Cypress certification. Check out our Cypress 101 Certification.
Watch this 3 hours of complete tutorial to learn the basics of Cypress and various Cypress commands with the Cypress testing at LambdaTest.
Get 100 minutes of automation test minutes FREE!!