Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-18 00:39:58

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("IOMC.RandomEngine.IOMC_cff")
0012 
0013 # Generate ttbar events
0014 process.load("FastSimulation.Configuration.ttbar_cfi")
0015 
0016 # L1 Menu and prescale factors : useful for testing all L1 paths
0017 # Note: the L1 conditions and menu now come from the GlobalTag !!!!!!!!!!!!
0018 ###process.load("Configuration.StandardSequences.L1TriggerDefaultMenu_cff")
0019 
0020 # Other choices are
0021 # L1 Menu 2008 2x10E30 - Prescale
0022 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumi1030/L1Menu2008_2E30.cff")
0023 # L1 Menu 2008 2x10E30 - No Prescale
0024 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumi1030/L1Menu2008_2E30_Unprescaled.cff")
0025 # L1 Menu 2008 2x10E31 - Prescale
0026 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumi1031/L1Menu2008_2E31.cff")
0027 # L1 Menu 2008 2x10E31 - No Prescale
0028 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumi1031/L1Menu2008_2E31_Unprescaled.cff")
0029 # L1 Menu 2008 10E32 - Prescale 
0030 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumix1032/L1Menu2007.cff")
0031 # L1 Menu 2008 10E32 - No Prescale 
0032 # process.load("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/lumix1032/L1Menu2007_Unprescaled.cff")
0033 
0034 # Common inputs, with fake conditions
0035 process.load("FastSimulation.Configuration.CommonInputs_cff")
0036 
0037 # L1 Emulator and HLT Setup
0038 process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff")
0039 
0040 # Famos sequences
0041 process.load("FastSimulation.Configuration.FamosSequences_cff")
0042 
0043 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
0044 #process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0045 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0046 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0047 
0048 # HLT paths - defined by configDB
0049 # This one is created on the fly by FastSimulation/Configuration/test/IntegrationTestWithHLT_py.csh
0050 process.load("FastSimulation.Configuration.HLT_cff")
0051 
0052 # Only event accepted by L1 + HLT are reconstructed
0053 process.HLTEndSequence = cms.Sequence(process.reconstructionWithFamos)
0054 
0055 # Schedule the HLT paths
0056 
0057 # If uncommented : All events are reconstructed, including those rejected at L1/HLT
0058 process.reconstruction = cms.Path(process.reconstructionWithFamos)
0059 process.schedule.append(process.reconstruction)
0060 
0061 # Simulation sequence
0062 process.simulation = cms.Sequence(process.simulationWithFamos)
0063 # You many not want to simulate everything
0064 process.fastSimProducer.SimulateCalorimetry = True
0065 for layer in process.fastSimProducer.detectorDefinition.BarrelLayers: 
0066     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0067 for layer in process.fastSimProducer.detectorDefinition.ForwardLayers: 
0068     layer.interactionModels = cms.untracked.vstring("pairProduction", "nuclearInteraction", "bremsstrahlung", "energyLoss", "multipleScattering", "trackerSimHits")
0069 # Parameterized magnetic field
0070 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0071 # Number of pileup events per crossing
0072 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
0073 
0074 # Get frontier conditions   - not applied in the HCAL, see below
0075 process.GlobalTag.globaltag = "IDEAL_31X::All"
0076 
0077 
0078 # Set the early collions 10TeV parameters (as in the standard RelVals)
0079 process.fastSimProducer.VertexGenerator.SigmaZ=cms.double(3.8)
0080 process.fastSimProducer.VertexGenerator.Emittance = cms.double(7.03e-08)
0081 process.fastSimProducer.VertexGenerator.BetaStar = cms.double(300.0)
0082 
0083 # Apply ECAL and HCAL miscalibration 
0084 process.caloRecHits.RecHitsFactory.doMiscalib = False
0085 
0086 # Apply Tracker misalignment
0087 process.fastSimProducer.detectorDefinition.trackerAlignmentLabel = cms.untracked.string("MisAligned")
0088 process.misalignedTrackerGeometry.applyAlignment = True
0089 
0090 # Apply HCAL miscalibration (not ideal in that case).
0091 # Choose between hcalmiscalib_startup.xml , hcalmiscalib_1pb.xml , hcalmiscalib_10pb.xml (startup is the default)
0092 process.caloRecHits.RecHitsFactory.HCAL.Refactor = 1.0
0093 process.caloRecHits.RecHitsFactory.HCAL.Refactor_mean = 1.0
0094 #process.caloRecHits.RecHitsFactory.HCAL.fileNameHcal = "hcalmiscalib_startup.xml"
0095 
0096 
0097 # Note : if your process is not called HLT, you have to change that! 
0098 # process.hltTrigReport.HLTriggerResults = TriggerResults::PROD
0099 # process.hltHighLevel.TriggerResultsTag = TriggerResults::PROD 
0100 
0101 # To write out events 
0102 process.load("FastSimulation.Configuration.EventContent_cff")
0103 process.o1 = cms.OutputModule("PoolOutputModule",
0104     process.FEVTDEBUGHLTEventContent,
0105     fileName = cms.untracked.string('Output.root'),
0106     dataset = cms.untracked.PSet(
0107     dataTier = cms.untracked.string('GEN-SIM-DIGI-HLTDEBUG-RECO')
0108     ) 
0109 )
0110 process.outpath = cms.EndPath(process.o1)
0111 
0112 # Add endpaths to the schedule
0113 process.schedule.append(process.outpath)
0114 
0115 process.configurationMetadata = cms.untracked.PSet(
0116        version = cms.untracked.string('$Revision: 1.6 $'),
0117           name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/FastSimulation/Validation/test/Template_cfg.py,v $'),
0118           annotation = cms.untracked.string('RelVal Fast Sim ==SAMPLE== IDEAL')
0119        ) 
0120 
0121 # Keep the logging output to a nice level #
0122 # process.Timing =  cms.Service("Timing")
0123 # process.load("FWCore/MessageService/MessageLogger_cfi")
0124 # process.MessageLogger.destinations = cms.untracked.vstring("pyDetailedInfo.txt")
0125 
0126