CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/RecoParticleFlow/Benchmarks/Tools/aod_PYTHIA_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("HLT")
00004 
00005 # Number of events to be generated
00006 process.maxEvents = cms.untracked.PSet(
00007     input = cms.untracked.int32(2000)
00008 )
00009 
00010 
00011 # Include the RandomNumberGeneratorService definition
00012 process.load("FastSimulation.Configuration.RandomServiceInitialization_cff")
00013 process.RandomNumberGeneratorService.theSource.initialSeed = 123
00014 
00015 #process.load("Validation.RecoParticleFlow.source_singleTau_cfi")
00016 #process.load("Validation.RecoParticleFlow.source_singleTau_highPt_cfi")
00017 process.load("Validation.RecoParticleFlow.source_diJets_cfi")
00018 #process.load("Validation.RecoParticleFlow.source_ZToTauTau_cfi")
00019 
00020 
00021 process.source.maxEventsToPrint = cms.untracked.int32(2)
00022 process.source.pythiaPylistVerbosity = cms.untracked.int32(1)
00023 
00024 
00025 # L1 Menu and prescale factors : useful for testing all L1 paths
00026 process.load("Configuration.StandardSequences.L1TriggerDefaultMenu_cff")
00027 
00028 # Common inputs, with fake conditions
00029 process.load("FastSimulation.Configuration.CommonInputs_cff")
00030 
00031 # L1 Emulator and HLT Setup
00032 process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff")
00033 
00034 # Famos sequences
00035 process.load("FastSimulation.Configuration.FamosSequences_cff")
00036 
00037 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
00038 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
00039 # process.load("Configuration.StandardSequences.MagneticField_38T_cff")
00040 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
00041 
00042 # HLT paths - defined by configDB
00043 # This one is created on the fly by FastSimulation/Configuration/test/IntegrationTestWithHLT_py.csh
00044 process.load("FastSimulation.Configuration.HLT_cff")
00045 
00046 # Only event accepted by L1 + HLT are reconstructed
00047 process.HLTEndSequence = cms.Sequence(process.reconstructionWithFamos)
00048 
00049 # Schedule the HLT paths
00050 process.schedule = cms.Schedule()
00051 process.schedule.extend(process.HLTSchedule)
00052 
00053 # If uncommented : All events are reconstructed, including those rejected at L1/HLT
00054 # process.reconstruction = cms.Path(process.reconstructionWithFamos)
00055 # process.schedule.append(process.reconstruction)
00056 
00057 # Simulation sequence
00058 process.simulation = cms.Sequence(process.simulationWithFamos)
00059 # You many not want to simulate everything
00060 process.famosSimHits.SimulateCalorimetry = True
00061 process.famosSimHits.SimulateTracking = True
00062 # Parameterized magnetic field
00063 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
00064 # Number of pileup events per crossing
00065 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
00066 
00067 process.GlobalTag.globaltag = "IDEAL_V9::All"
00068 
00069 
00070 # To write out events 
00071 process.load("FastSimulation.Configuration.EventContent_cff")
00072 process.o1 = cms.OutputModule("PoolOutputModule",
00073     #process.AODSIMEventContent,
00074     fileName = cms.untracked.string('aod.root'),
00075     outputCommands = cms.untracked.vstring(
00076     "drop *",
00077     "keep recoPFJets_*_*_*",
00078     "keep recoCaloJets_*_*_*",
00079     "keep recoGenParticles_*_*_*"
00080     )
00081 )
00082 #process.o1.outputCommands.extend("drop *",
00083 #                                 "keep recoPFJets_*_*_*",
00084 #                                 "keep recoGenJets_*_*_*"
00085 #                                 )
00086 
00087 
00088 process.outpath = cms.EndPath(process.o1)
00089 
00090 # Add endpaths to the schedule
00091 process.schedule.append(process.outpath)
00092 
00093 
00094 
00095