CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/Configuration/python/customise_l1GtEmulatorFromRaw.py

Go to the documentation of this file.
00001 #
00002 # customization fragment to run L1 GT emulator starting from a RAW file
00003 #
00004 # V.M. Ghete 2010-06-09
00005 
00006 import FWCore.ParameterSet.Config as cms
00007 
00008 def customise(process):
00009     
00010     #
00011     # (re-)run the  L1 GT emulator starting from a RAW file
00012     #
00013     from L1Trigger.Configuration.L1Trigger_custom import customiseL1GtEmulatorFromRaw
00014     process=customiseL1GtEmulatorFromRaw(process)
00015     
00016     #
00017     # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
00018     #
00019     from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
00020     process=customiseL1TriggerConfiguration(process)
00021  
00022     #
00023     # customization of output commands
00024     #
00025     from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
00026     process=customiseOutputCommands(process)
00027          
00028     #     
00029     # print the L1 trigger report
00030     # comment/un-comment the corresponding flag
00031     #
00032     #printL1TriggerReport = False
00033     printL1TriggerReport = True
00034     
00035     if printL1TriggerReport == True :
00036         from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
00037         process=customiseL1TriggerReport(process)
00038         
00039         process.SimL1Emulator_L1TriggerReport = cms.Sequence(process.SimL1Emulator*process.l1GtTrigReport)
00040         process.L1simulation_step.replace(process.SimL1Emulator,process.SimL1Emulator_L1TriggerReport)
00041 
00042         process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
00043 
00044 
00045     #
00046     return (process)