How to use process method in storybook-test-runner

Best JavaScript code snippet using storybook-test-runner

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

1const { process } = require('storybook-test-runner');2process({3 storybookBuildOptions: {4 buildOptions: {5 },6 },7 storybookOptions: {8 },9});

Full Screen

Using AI Code Generation

copy

Full Screen

1process.env.NODE_ENV = 'test';2const { storybookTestRunner } = require('storybook-test-runner');3storybookTestRunner({4 testRunnerConfig: {5 },6});7import { configure } from '@storybook/react';8const req = require.context('../src', true, /.stories.js$/);9function loadStories() {10 req.keys().forEach(filename => req(filename));11}12configure(loadStories, module);13import { testStorySnapshots } from 'storybook-test-runner';14import MyComponent from '../src/MyComponent.stories.js';15testStorySnapshots(MyComponent);

Full Screen

Using AI Code Generation

copy

Full Screen

1const { process } = require('storybook-test-runner');2const storybook = process({3});4const storybook2 = process({5});6module.exports = [storybook, storybook2];7const { test } = require('storybook-test-runner');8test({9 test: async ({ page, context }) => {10 },11});12const { test } = require('storybook-test-runner');13test({14 test: async ({ page, context }) => {15 },16});17const { test } = require('storybook-test-runner');18test({19 test: async ({ page, context }) => {20 },21});22const { test } = require('storybook-test-runner');23test({24 test: async ({ page, context }) => {25 },26});27const { test } = require('storybook-test-runner');28test({

Full Screen

Using AI Code Generation

copy

Full Screen

1const { process } = require('@storybook/addon-storyshots');2const { testRunner } = require('storybook-test-runner');3const { testRunner, puppeteer } = require('storybook-test-runner');4const { testRunner, puppeteer, jest } = require('storybook-test-runner');5const { process } = require('@storybook/addon-storyshots');6const { testRunner } = require('storybook-test-runner');7const { testRunner, puppeteer } = require('storybook-test-runner');8const { testRunner, puppeteer, jest } = require('storybook-test-runner');9const { process } = require('@storybook/addon-storyshots');10const { testRunner } = require('storybook-test-runner');11const { testRunner, puppeteer } = require('storybook-test-runner');12const { testRunner, puppeteer, jest } = require('storybook-test-runner');13const { process } = require('@storybook/addon-storyshots');14const { testRunner } = require('storybook-test-runner');15const { testRunner, puppeteer } = require('storybook-test-runner');16const { testRunner, puppeteer, jest } = require('storybook-test-runner');17const { process } = require('@storybook/addon-storyshots');18const { testRunner } = require('storybook-test-runner');19const { testRunner, puppeteer } = require('storybook-test

Full Screen

Using AI Code Generation

copy

Full Screen

1const { process } = require('storybook-test-runner');2const { expect } = require('chai');3process({4 {5 {6 {7 }8 }9 }10});11process({12 {13 {14 {15 }16 }17 }18});19process({20 {21 {22 {23 }24 }25 }26});27process({28 {29 {30 {31 }32 }33 }34});35process({36 {37 {

Full Screen

Using AI Code Generation

copy

Full Screen

1const { process } = require('storybook-test-runner');2const { run } = require('./test-runner');3const options = {4 storybook: {5 },6};7process(options);8const { run } = require('storybook-test-runner');9const { createRunner } = require('@storybook/runner');10const storybook = createRunner({11});12const run = async () => {13 await storybook.run();14};15module.exports = { run };16import { configure, addDecorator } from '@storybook/react';17import { withInfo } from '@storybook/addon-info';18addDecorator(withInfo);19const req = require.context('../src/components', true, /\.stories\.js$/);20function loadStories() {21 req.keys().forEach(filename => req(filename));22}23configure(loadStories, module);

Full Screen

Using AI Code Generation

copy

Full Screen

1const storybookTestRunner = require('storybook-test-runner');2storybookTestRunner({ 3 testRegex: '(/__tests__/.*|\\.(test|spec))\\.(jsx?|tsx?)$', 4 testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ], 5 transform: { '^.+\\.jsx?$': 'babel-jest' }, 6});7"scripts": {8 }9{10 {11 }12}13module.exports = {14 {15 targets: {16 },17 },18};19module.exports = {20 collectCoverageFrom: ['src/**/*.{js,jsx,mjs}'],

Full Screen

Using AI Code Generation

copy

Full Screen

1import { runStorybookTest } from 'storybook-test-runner';2runStorybookTest({3 jestConfig: {4 }5});6import { getTestResult } from 'storybook-test-runner';7getTestResult({8});9import { getTestResult } from 'storybook-test-runner';10getTestResult({11});12import { getTestResult } from 'storybook-test-runner';13getTestResult({14});15import { getTestResult } from 'storybook-test-runner';16getTestResult({17});18import { getTest

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 storybook-test-runner 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