![]() |
![]() |
00001 import FWCore.ParameterSet.Config as cms 00002 00003 process = cms.Process("GENSIMDIGIL1DIGI2RAW") 00004 # this example configuration offers some minimum 00005 # annotation, to help users get through; please 00006 # don't hesitate to read through the comments 00007 #--------------------------------------------------------------------- 00008 # INITIALIZATIONS AND services 00009 # use messageLogger to redirect/suppress multiple 00010 # service messages coming from the system 00011 process.load("FWCore.MessageService.MessageLogger_cfi") 00012 00013 # general services, as Random Number generator Service 00014 process.load("Configuration.StandardSequences.Services_cff") 00015 00016 # global initialization of geometry and magnetic field 00017 process.load("Configuration.StandardSequences.Geometry_cff") 00018 00019 process.load("Configuration.StandardSequences.MagneticField_cff") 00020 00021 # NB: Mag Field can be set to 0 00022 #process.load("Configuration.StandardSequences.UseZeroBField_cff") 00023 # conditions are needed for digitization and higher levels 00024 process.load("Configuration.StandardSequences.FakeConditions_cff") 00025 00026 #--------------------------------------------------------------------- 00027 # WORK-FLOW OF STEPS (GEN, SIM, DIGI, L1, DIGI2RAW) 00028 # an example of "source", pions with Pt = 10 GeV 00029 process.load("Configuration.generator.SinglePiPt10_cfi") 00030 00031 # this config frament brings you the generator information 00032 # Vertex smearing is invoked here, needs an explicit inclusion 00033 process.load("Configuration.StandardSequences.Generator_cff") 00034 00035 process.load("Configuration.StandardSequences.VtxSmearedBetafuncEarlyCollision_cff") 00036 00037 # this config frament brings 2 steps of the detector simulation: 00038 # -- G4-based hit level detector simulation 00039 # -- digitization (electronics readout modeling) 00040 # it returns 2 sequences : 00041 # -- psim (G4 sim) 00042 # -- pdigi (digitization in all subsystems) 00043 process.load("Configuration.StandardSequences.Simulation_cff") 00044 00045 # please note the IMPORTANT: 00046 # in order to operate Digis, one needs to include Mixing module 00047 # (pileup modeling), at least in the 0-pileup mode 00048 # 00049 # There're 3 possible configurations of the Mixing module : 00050 # no-pileup, low luminosity pileup, and high luminosity pileup 00051 # 00052 # they come, respectively, through the 3 config fragments below 00053 # 00054 # *each* config returns label "mix"; thus you canNOT have them 00055 # all together in the same configuration, but only one !!! 00056 process.load("Configuration.StandardSequences.MixingNoPileUp_cff") 00057 00058 #process.load("Configuration.StandardSequences.MixingLowLumiPileUp_cff") 00059 #process.load("Configuration.StandardSequences.MixingHighLumiPileUp_cff") 00060 00061 process.load("Configuration.StandardSequences.L1Emulator_cff") 00062 00063 process.load("Configuration.StandardSequences.DigiToRaw_cff") 00064 00065 # Event output 00066 process.load("Configuration.eventContent.EventContent_cff") 00067 00068 process.maxEvents = cms.untracked.PSet( 00069 input = cms.untracked.int32(1) 00070 ) 00071 process.FEVT = cms.OutputModule("PoolOutputModule", 00072 process.FEVTSIMDIGIEventContent, 00073 fileName = cms.untracked.string('GENSIMDIGIL1DIGI2RAW.root') 00074 ) 00075 00076 process.p0 = cms.Path(process.pgen) 00077 process.p1 = cms.Path(process.psim) 00078 process.p2 = cms.Path(process.pdigi) 00079 process.p3 = cms.Path(process.l1Emulator) 00080 process.p4 = cms.Path(process.digiToRaw) 00081 process.outpath = cms.EndPath(process.FEVT) 00082 00083 #--------------------------------------------------------------------- 00084 # For external file as source: 00085 # process.source = cms.Source("PoolSource", 00086 # fileNames = cms.untracked.vstring('file:gen.root') 00087 # ) 00088 00089 # In order to use a part of the schedule: remove the unwanted paths 00090 # and use the external source if no generator as source is wanted 00091 00092 process.schedule = cms.Schedule(process.p0,process.p1,process.p2,process.p3,process.p4,process.outpath) 00093 00094 00095