Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HLT")
0004 
0005 # Number of events to be generated
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(100)
0008 )
0009 # Number of lumi sections to be generated
0010 process.maxLuminosityBlocks=cms.untracked.PSet(
0011     input=cms.untracked.int32(10)
0012 )
0013 # Number of runs to be generated
0014 
0015 # Include the RandomNumberGeneratorService definition
0016 process.load("FastSimulation.Configuration.RandomServiceInitialization_cff")
0017 
0018 # Generate ttbar events
0019 process.load("Configuration.Generator.TTbar_cfi")
0020 
0021 # L1 Menu and prescale factors : useful for testing all L1 paths
0022 
0023 # Note: the L1 conditions and menu now come from the GlobalTag !
0024 
0025 # --- This was for 2e30 :
0026 # process.load("Configuration.StandardSequences.L1TriggerDefaultMenu_cff")
0027 
0028 # --- This is for 8e29 :
0029 # process.load('L1Trigger/Configuration/L1StartupConfig_cff')
0030 # process.load('L1TriggerConfig/L1GtConfigProducers/Luminosity/startup/L1Menu_Commissioning2009_v0_L1T_Scales_20080926_startup_Imp0_Unprescaled_cff')
0031 
0032 # --- This is for 1e31 :
0033 #process.load('L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1031/L1Menu_MC2009_v0_L1T_Scales_20080922_Imp0_Unprescaled_cff')
0034 
0035 # Other choices are
0036 # L1 Menu 2008 2x10E30 - Prescale
0037 # process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1030/L1Menu2008_2E30_cff")
0038 # L1 Menu 2008 2x10E30 - No Prescale
0039 #process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1030/L1Menu2008_2E30_Unprescaled_cff")
0040 # L1 Menu 2008 2x10E31 - Prescale
0041 # process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1031/L1Menu2008_2E31_cff")
0042 # L1 Menu 2008 2x10E31 - No Prescale
0043 # process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1031/L1Menu2008_2E31_Unprescaled_cff")
0044 # L1 Menu 2008 10E32 - Prescale 
0045 # process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1x1032/L1Menu2007_cff")
0046 # L1 Menu 2008 10E32 - No Prescale 
0047 # process.load("L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1x1032/L1Menu2007_Unprescaled_cff")
0048 
0049 
0050 # Common inputs, with fake conditions
0051 process.load("FastSimulation.Configuration.CommonInputs_cff")
0052 process.GlobalTag.globaltag = "MC_3XY_V20::All"
0053 
0054 # L1 Emulator and HLT Setup
0055 process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff")
0056 
0057 # Famos sequences
0058 process.load("FastSimulation.Configuration.FamosSequences_cff")
0059 
0060 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
0061 #process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0062 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0063 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0064 
0065 # HLT paths -- defined from ConfigDB
0066 # This one is created on the fly by FastSimulation/Configuration/test/ExampleWithHLT_py.csh
0067 process.load("FastSimulation.Configuration.HLT_1E31_cff")
0068 
0069 # Simulation sequence
0070 #process.simulation = cms.Sequence(process.ProductionFilterSequence*process.simulationWithFamos)
0071 process.source = cms.Source("EmptySource",
0072                             processingMode=cms.untracked.string('RunsLumisAndEvents'),
0073                             numberEventsInRun=cms.untracked.uint32(100),
0074                             numberEventsInLuminosityBlock=cms.untracked.uint32(10),
0075                             firstRun=cms.untracked.uint32(122314),
0076                             firstLuminosityBlock=cms.untracked.uint32(1)
0077                             )
0078 
0079 process.simulation = cms.Sequence(process.generator*process.simulationWithFamos)
0080 
0081 # You many not want to simulate everything
0082 process.fastSimProducer.SimulateCalorimetry = True
0083 for layer in process.fastSimProducer.detectorDefinition.BarrelLayers: 
0084     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0085 for layer in process.fastSimProducer.detectorDefinition.ForwardLayers: 
0086     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0087 # Number of pileup events per crossing
0088 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
0089 
0090 # No reconstruction - only HLT
0091 process.HLTEndSequence = cms.Sequence(process.dummyModule)
0092 
0093 # HLT schedule
0094 process.schedule = cms.Schedule()
0095 
0096 # To write out events 
0097 process.load("FastSimulation.Configuration.EventContent_cff")
0098 process.o1 = cms.OutputModule("PoolOutputModule",
0099     #process.AODSIMEventContent,
0100     fileName = cms.untracked.string('simSample122314-1.root'),
0101     #logicalFileName = cms.untracked.string(''),
0102     dataset = cms.untracked.PSet(
0103        dataTier = cms.untracked.string ('GEN-SIM-DIGI-RECO')
0104     )
0105 )
0106 
0107 process.outpath = cms.EndPath(process.o1)
0108 
0109 # Add endpaths to the schedule
0110 process.schedule.append(process.outpath)
0111 
0112 process.load("FWCore/MessageService/MessageLogger_cfi")
0113 process.MessageLogger.L1GtTrigReport=dict()
0114 process.MessageLogger.HLTrigReport=dict()
0115 
0116 # Keep the logging output to a nice level #
0117 ##process.Timing =  cms.Service("Timing")
0118 ##process.MessageLogger.destinations = cms.untracked.vstring("pyDetailedInfo.txt","cout")
0119 ##
0120 ##process.MessageLogger.cout = cms.untracked.PSet(threshold=cms.untracked.string("INFO"),
0121 ##                                                default=cms.untracked.PSet(limit=cms.untracked.int32(0)),
0122 ##                                                FamosManager=cms.untracked.PSet(limit=cms.untracked.int32(100000)))
0123 
0124 # Make the job crash in case of missing product
0125 process.options = cms.untracked.PSet( Rethrow = cms.untracked.vstring('ProductNotFound') )