Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:27

0001 #
0002 # customization fragment to run L1 emulator starting from a RAW file
0003 #
0004 # V.M. Ghete 2010-06-09
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 def customise(process):
0009     
0010     #
0011     # (re-)run the  L1 emulator starting from a RAW file
0012     #
0013     from L1Trigger.Configuration.L1Trigger_custom import customiseL1EmulatorFromRaw
0014     process=customiseL1EmulatorFromRaw(process)
0015    
0016     #
0017     # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
0018     #
0019     from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
0020     process=customiseL1TriggerConfiguration(process)
0021  
0022     #
0023     # customization of output commands
0024     #
0025     from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
0026     process=customiseOutputCommands(process)
0027          
0028     #     
0029     # print the L1 trigger report
0030     # comment/un-comment the corresponding flag
0031     #
0032     #printL1TriggerReport = False
0033     printL1TriggerReport = True
0034     
0035     if printL1TriggerReport == True :
0036         from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
0037         process=customiseL1TriggerReport(process)
0038         
0039         process.CaloTPG_SimL1Emulator_L1TriggerReport = cms.Sequence(
0040                                                     process.CaloTPG_SimL1Emulator*process.l1GtTrigReport)
0041         process.L1simulation_step.replace(
0042                             process.CaloTPG_SimL1Emulator,process.CaloTPG_SimL1Emulator_L1TriggerReport)
0043 
0044         process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
0045 
0046 
0047     #
0048     return (process)