Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-18 00:40:15

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 
0010 # Include the RandomNumberGeneratorService definition
0011 process.load("FastSimulation.Configuration.RandomServiceInitialization_cff")
0012 
0013 # Generate ttbar events
0014 # process.load("Configuration.Generator.TTbar_cfi")
0015 process.load("RecoParticleFlow.Configuration.source_singleTau_cfi")
0016 
0017 # --- This was for 2e30 :
0018 # process.load("Configuration.StandardSequences.L1TriggerDefaultMenu_cff")
0019 
0020 # --- This is for 8e29 :NEW DEFAULT 
0021 #process.load('L1Trigger/Configuration/L1StartupConfig_cff')
0022 #process.load('L1TriggerConfig/L1GtConfigProducers/Luminosity/startup/L1Menu_Commissioning2009_v0_L1T_Scales_20080926_startup_Imp0_Unprescaled_cff')
0023 
0024 # --- This is for 1e31 :
0025 #process.load('L1TriggerConfig/L1GtConfigProducers/Luminosity/lumi1031/L1Menu_MC2009_v0_L1T_Scales_20080922_Imp0_Unprescaled_cff')
0026 
0027 
0028 # Common inputs, with fake conditions
0029 #process.load("FastSimulation.Configuration.CommonInputs_cff")
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0031 process.load('FastSimulation.Configuration.Geometries_cff')
0032 
0033 # L1 Emulator and HLT Setup
0034 process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff")
0035 
0036 # Famos sequences
0037 process.load("FastSimulation.Configuration.FamosSequences_cff")
0038 
0039 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
0040 #process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0041 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0042 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0043 
0044 # HLT paths - defined by configDB
0045 # This one is created on the fly by FastSimulation/Configuration/test/IntegrationTestWithHLT_py.csh
0046 process.load("FastSimulation.Configuration.HLT_GRun_cff")
0047 
0048 # Only event accepted by L1 + HLT are reconstructed
0049 process.load("RecoParticleFlow.PFProducer.particleFlowSimParticle_cff")
0050 process.reconstructionWithFamos += process.particleFlowSimParticle
0051 process.reconstructionWithFamos += process.caloJetMetGen
0052 
0053 process.HLTEndSequence = cms.Sequence(process.reconstructionWithFamos)
0054 
0055 # Schedule the HLT paths (and allows HLTAnalyzers for this test):
0056 from FastSimulation.HighLevelTrigger.HLTSetup_cff import hltL1GtTrigReport
0057 process.hltTrigReport = cms.EDAnalyzer( "HLTrigReport",
0058     HLTriggerResults = cms.InputTag( 'TriggerResults','','HLT' )
0059 )
0060 process.HLTAnalyzerEndpath = cms.EndPath( hltL1GtTrigReport + process.hltTrigReport )
0061 process.schedule.append(process.HLTAnalyzerEndpath)
0062 
0063 # If uncommented : All events are reconstructed, including those rejected at L1/HLT
0064 # process.reconstruction = cms.Path(process.reconstructionWithFamos)
0065 # process.schedule.append(process.reconstruction)
0066 
0067 # Simulation sequence
0068 #process.simulation = cms.Sequence(process.ProductionFilterSequence*process.simulationWithFamos)
0069 process.source = cms.Source("EmptySource")
0070 process.simulation = cms.Sequence(process.generator*process.simulationWithFamos)
0071 
0072 # You many not want to simulate everything
0073 process.fastSimProducer.SimulateCalorimetry = True
0074 for layer in process.fastSimProducer.detectorDefinition.BarrelLayers: 
0075     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0076 for layer in process.fastSimProducer.detectorDefinition.ForwardLayers: 
0077     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0078 # Parameterized magnetic field
0079 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0080 # Number of pileup events per crossing
0081 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
0082 
0083 process.fastSimProducer.VertexGenerator.BetaStar = 0.00001
0084 process.fastSimProducer.VertexGenerator.SigmaZ = 0.00001
0085 
0086 # Get frontier conditions   - not applied in the HCAL, see below
0087 # from Configuration.AlCa.autoCond import autoCond
0088 from Configuration.AlCa.autoCond import autoCond
0089 process.GlobalTag.globaltag = autoCond['startup']
0090 
0091 # Apply ECAL and HCAL miscalibration 
0092 process.ecalRecHit.doMiscalib = True
0093 process.hbhereco.doMiscalib = True
0094 process.horeco.doMiscalib = True
0095 process.hfreco.doMiscalib = True
0096 
0097 # Apply Tracker misalignment
0098 process.fastSimProducer.detectorDefinition.trackerAlignmentLabel = cms.untracked.string("MisAligned")
0099 process.misalignedTrackerGeometry.applyAlignment = True
0100 process.misalignedDTGeometry.applyAlignment = True
0101 process.misalignedCSCGeometry.applyAlignment = True
0102 
0103 # Attention ! for the HCAL IDEAL==STARTUP
0104 # process.caloRecHits.RecHitsFactory.HCAL.Refactor = 1.0
0105 # process.caloRecHits.RecHitsFactory.HCAL.Refactor_mean = 1.0
0106 # process.caloRecHits.RecHitsFactory.HCAL.fileNameHcal = "hcalmiscalib_0.0.xml"
0107 
0108 # Note : if your process is not called HLT, you have to change that! 
0109 # process.hltTrigReport.HLTriggerResults = TriggerResults::PROD
0110 # process.hltHighLevel.TriggerResultsTag = TriggerResults::PROD 
0111 
0112 
0113 # To write out events 
0114 process.load("FastSimulation.Configuration.EventContent_cff")
0115 process.o1 = cms.OutputModule("PoolOutputModule",
0116     process.AODSIMEventContent,
0117     fileName = cms.untracked.string('AODIntegrationTestWithHLT.root')
0118 )
0119 
0120 process.load("RecoParticleFlow.Configuration.Display_EventContent_cff")
0121 process.display = cms.OutputModule("PoolOutputModule",
0122     process.DisplayEventContent,
0123     fileName = cms.untracked.string('display.root')
0124 )
0125 
0126 process.outpath = cms.EndPath(process.o1 + process.display)
0127 
0128 # Add endpaths to the schedule
0129 process.schedule.append(process.outpath)
0130 
0131 # Keep the logging output to a nice level #
0132 # process.Timing =  cms.Service("Timing")
0133 process.load("FWCore/MessageService/MessageLogger_cfi")
0134 process.MessageLogger.L1GtTrigReport=dict()
0135 process.MessageLogger.HLTrigReport=dict()
0136 #process.MessageLogger.destinations = cms.untracked.vstring("pyDetailedInfo.txt","cout")
0137 #
0138 #process.MessageLogger.cout = cms.untracked.PSet(threshold=cms.untracked.string("INFO"),
0139 #                                                default=cms.untracked.PSet(limit=cms.untracked.int32(0)),
0140 #                                                FamosManager=cms.untracked.PSet(limit=cms.untracked.int32(100000)))
0141 
0142 # Make the job crash in case of missing product
0143 process.options = cms.untracked.PSet( Rethrow = cms.untracked.vstring('ProductNotFound') )
0144