CMS 3D CMS Logo

customise_l1GtEmulatorFromRaw.py
Go to the documentation of this file.
1 #
2 # customization fragment to run L1 GT 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 GT emulator starting from a RAW file
12  #
13  from L1Trigger.Configuration.L1Trigger_custom import customiseL1GtEmulatorFromRaw
14  process=customiseL1GtEmulatorFromRaw(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.SimL1Emulator_L1TriggerReport = cms.Sequence(process.SimL1Emulator*process.l1GtTrigReport)
40  process.L1simulation_step.replace(process.SimL1Emulator,process.SimL1Emulator_L1TriggerReport)
41 
42  process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
43 
44 
45  #
46  return (process)
L1Trigger_custom.customiseL1TriggerReport
def customiseL1TriggerReport(process)
Definition: L1Trigger_custom.py:290
L1Trigger_custom.customiseL1GtEmulatorFromRaw
def customiseL1GtEmulatorFromRaw(process)
Definition: L1Trigger_custom.py:186
L1Trigger_custom.customiseOutputCommands
def customiseOutputCommands(process)
Definition: L1Trigger_custom.py:138
customise_l1GtEmulatorFromRaw.customise
def customise(process)
Definition: customise_l1GtEmulatorFromRaw.py:8
customise_l1TriggerConfiguration.customiseL1TriggerConfiguration
def customiseL1TriggerConfiguration(process)
Definition: customise_l1TriggerConfiguration.py:11