CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customise_l1EmulatorFromRaw Namespace Reference

Functions

def customise
 

Function Documentation

def customise_l1EmulatorFromRaw.customise (   process)

Definition at line 8 of file customise_l1EmulatorFromRaw.py.

References L1Trigger_custom.customiseL1EmulatorFromRaw(), customise_l1TriggerConfiguration.customiseL1TriggerConfiguration(), L1Trigger_custom.customiseL1TriggerReport(), and L1Trigger_custom.customiseOutputCommands().

8 
9 def customise(process):
10 
11  #
12  # (re-)run the L1 emulator starting from a RAW file
13  #
14  from L1Trigger.Configuration.L1Trigger_custom import customiseL1EmulatorFromRaw
15  process=customiseL1EmulatorFromRaw(process)
16 
17  #
18  # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
19  #
20  from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
21  process=customiseL1TriggerConfiguration(process)
22 
23  #
24  # customization of output commands
25  #
26  from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
27  process=customiseOutputCommands(process)
28 
29  #
30  # print the L1 trigger report
31  # comment/un-comment the corresponding flag
32  #
33  #printL1TriggerReport = False
34  printL1TriggerReport = True
35 
36  if printL1TriggerReport == True :
37  from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
38  process=customiseL1TriggerReport(process)
39 
40  process.CaloTPG_SimL1Emulator_L1TriggerReport = cms.Sequence(
41  process.CaloTPG_SimL1Emulator*process.l1GtTrigReport)
42  process.L1simulation_step.replace(
43  process.CaloTPG_SimL1Emulator,process.CaloTPG_SimL1Emulator_L1TriggerReport)
44 
45  process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
46 
47 
48  #
49  return (process)