CMS 3D CMS Logo

customise_l1EmulatorFromRaw.py
Go to the documentation of this file.
1 #
2 # customization fragment to run L1 emulator starting from a RAW file
3 #
4 # V.M. Ghete 2010-06-09
5 
6 import FWCore.ParameterSet.Config as cms
7 
8 def customise(process):
9 
10  #
11  # (re-)run the L1 emulator starting from a RAW file
12  #
13  from L1Trigger.Configuration.L1Trigger_custom import customiseL1EmulatorFromRaw
14  process=customiseL1EmulatorFromRaw(process)
15 
16  #
17  # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
18  #
19  from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
20  process=customiseL1TriggerConfiguration(process)
21 
22  #
23  # customization of output commands
24  #
25  from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
26  process=customiseOutputCommands(process)
27 
28  #
29  # print the L1 trigger report
30  # comment/un-comment the corresponding flag
31  #
32  #printL1TriggerReport = False
33  printL1TriggerReport = True
34 
35  if printL1TriggerReport == True :
36  from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
37  process=customiseL1TriggerReport(process)
38 
39  process.CaloTPG_SimL1Emulator_L1TriggerReport = cms.Sequence(
40  process.CaloTPG_SimL1Emulator*process.l1GtTrigReport)
41  process.L1simulation_step.replace(
42  process.CaloTPG_SimL1Emulator,process.CaloTPG_SimL1Emulator_L1TriggerReport)
43 
44  process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
45 
46 
47  #
48  return (process)
customise_l1EmulatorFromRaw.customise
def customise(process)
Definition: customise_l1EmulatorFromRaw.py:8
L1Trigger_custom.customiseL1TriggerReport
def customiseL1TriggerReport(process)
Definition: L1Trigger_custom.py:290
L1Trigger_custom.customiseL1EmulatorFromRaw
def customiseL1EmulatorFromRaw(process)
Definition: L1Trigger_custom.py:156
L1Trigger_custom.customiseOutputCommands
def customiseOutputCommands(process)
Definition: L1Trigger_custom.py:138
customise_l1TriggerConfiguration.customiseL1TriggerConfiguration
def customiseL1TriggerConfiguration(process)
Definition: customise_l1TriggerConfiguration.py:11