Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 # Number of events to be generated
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1500)
0008 )
0009 
0010 # Include the RandomNumberGeneratorService definition
0011 process.load("IOMC.RandomEngine.IOMC_cff")
0012 
0013 # Generate ttbar events
0014 process.load("Configuration.Generator.QCD_Pt_80_120_cfi")
0015 
0016 # Famos sequences (NO HLT)
0017 process.load("FastSimulation.Configuration.CommonInputs_cff")
0018 process.load("FastSimulation.Configuration.FamosSequences_cff")
0019 
0020 process.BeamSpotDBSource = cms.ESSource("PoolDBESSource",
0021                                         process.CondDBSetup,
0022                                         toGet = cms.VPSet(cms.PSet(
0023     record = cms.string('BeamSpotObjectsRcd'),
0024     tag = cms.string('Early900GeVCollision_7p4cm_V1_IDEAL_V10'))),
0025     connect = cms.string('sqlite_file:EarlyCollision.db'))
0026                                         
0027 process.es_prefer_beamspot = cms.ESPrefer("PoolDBESSource","BeamSpotDBSource")                                         
0028 
0029 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
0030 #process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0031 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0032 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0033 
0034 # If you want to turn on/off pile-up
0035 process.famosPileUp.PileUpSimulator.averageNumber = 5.0
0036 # You may not want to simulate everything for your study
0037 process.fastSimProducer.SimulateCalorimetry = True
0038 for layer in process.fastSimProducer.detectorDefinition.BarrelLayers: 
0039     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0040 for layer in process.fastSimProducer.detectorDefinition.ForwardLayers: 
0041     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0042 
0043 # Get frontier conditions    - not applied in the HCAL, see below
0044 # Values for globaltag are "STARTUP_V5::All", "1PB::All", "10PB::All", "IDEAL_V5::All"
0045 process.GlobalTag.globaltag = "STARTUP_V5::All"
0046 
0047 # Apply ECAL miscalibration
0048 process.caloRecHits.RecHitsFactory.doMiscalib = True
0049 
0050 # Apply Tracker misalignment
0051 process.fastSimProducer.detectorDefinition.trackerAlignmentLabel = cms.untracked.string("MisAligned")
0052 process.misalignedTrackerGeometry.applyAlignment = True
0053 
0054 # Apply HCAL miscalibration (not ideal in that case) . Choose between hcalmiscalib_startup.xml , hcalmiscalib_1pb.xml , hcalmiscalib_10pb.xml (startup is the default)
0055 process.caloRecHits.RecHitsFactory.HCAL.Refactor = 1.0
0056 process.caloRecHits.RecHitsFactory.HCAL.Refactor_mean = 1.0
0057 #process.caloRecHits.RecHitsFactory.HCAL.fileNameHcal = "hcalmiscalib_startup.xml"
0058 
0059 process.load("RecoVertex.BeamSpotProducer.d0_phi_analyzer_cff")
0060 
0061 # Famos with everything !
0062 process.p1 = cms.Path(process.famosWithTracks*process.d0_phi_analyzer)
0063 
0064 
0065 
0066 # To write out events
0067 process.load("FastSimulation.Configuration.EventContent_cff")
0068 process.o1 = cms.OutputModule("PoolOutputModule",
0069     process.AODSIMEventContent,
0070     fileName = cms.untracked.string('AODIntegrationTest.root')
0071 )
0072 process.outpath = cms.EndPath(process.o1)
0073 
0074 # Keep output to a nice level
0075 # process.Timing =  cms.Service("Timing")
0076 process.load("FWCore/MessageService/MessageLogger_cfi")
0077 process.MessageLogger.cerr.enable = False
0078 process.MessageLogger.files.pyDetailedInfo=dict(extension="txt")
0079 
0080 # Make the job crash in case of missing product
0081 process.options = cms.untracked.PSet( Rethrow = cms.untracked.vstring('ProductNotFound') )