CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def customise_l1GtPatternGeneratorFromRaw.customise (   process)

Definition at line 13 of file customise_l1GtPatternGeneratorFromRaw.py.

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

13 
14 def customise(process):
15 
16  #
17  # (re-)run the L1 emulator starting from a RAW file
18  #
19  from L1Trigger.Configuration.L1Trigger_custom import customiseL1EmulatorFromRaw
20  process=customiseL1EmulatorFromRaw(process)
21 
22  #
23  # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
24  #
25  from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
26  process=customiseL1TriggerConfiguration(process)
27 
28  #
29  # customization of output commands
30  #
31  from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
32  process=customiseOutputCommands(process)
33 
34  #
35  # load and configure the pattern test generator
36  #
37  process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtPatternGenerator_cfi")
38 
39  # take GCT and GMT data from emulators, not from unpackers
40  gctLabel = 'simGctDigis'
41  gmtLabel = 'simGmtDigis'
42  process.l1GtPatternGenerator.GctInputTag = gctLabel
43  process.l1GtPatternGenerator.GmtInputTag = gmtLabel
44 
45  process.l1GtPatternGenerator.CscInputTag = cms.InputTag("simDttfDigis","DT")
46  process.l1GtPatternGenerator.DtInputTag = cms.InputTag("simCsctfDigis","CSC")
47  process.l1GtPatternGenerator.RpcbInputTag = cms.InputTag("simRpcTriggerDigis","RPCb")
48  process.l1GtPatternGenerator.RpcfInputTag = cms.InputTag("simRpcTriggerDigis","RPCf")
49 
50  ## enable detailed output (event no/bx per line, item tracing)
51  #process.l1GtPatternGenerator.DebugOutput = cms.bool(True)
52 
53  #
54  # Global Trigger emulator configuration
55  # input data from the same sources as the pattern writer
56  #
57  process.simGtDigis.ProduceL1GtEvmRecord = False
58  process.simGtDigis.ProduceL1GtObjectMapRecord = False
59  process.simGtDigis.WritePsbL1GtDaqRecord = False
60  process.simGtDigis.EmulateBxInEvent = -1
61 
62  #
63  # L1 trigger report
64  #
65  from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
66  process=customiseL1TriggerReport(process)
67  process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
68 
69  #
70  # full sequence pattern generator from raw data
71  #
72 
73  process.LGtPatternGeneratorFromRaw= cms.Sequence(
74  process.CaloTPG_SimL1Emulator*process.l1GtTrigReport*process.l1GtPatternGenerator)
75  process.L1simulation_step.replace(
76  process.CaloTPG_SimL1Emulator,process.LGtPatternGeneratorFromRaw)
77 
78 
79 
80  #
81  return (process)