CMS 3D CMS Logo

Functions

customise_l1GtPatternGeneratorFromRaw Namespace Reference

Functions

def customise

Function Documentation

def customise_l1GtPatternGeneratorFromRaw::customise (   process)

Definition at line 13 of file customise_l1GtPatternGeneratorFromRaw.py.

00014                       :
00015     
00016     #
00017     # (re-)run the  L1 emulator starting from a RAW file
00018     #
00019     from L1Trigger.Configuration.L1Trigger_custom import customiseL1EmulatorFromRaw
00020     process=customiseL1EmulatorFromRaw(process)
00021    
00022     #
00023     # special configuration cases (change to desired configuration in customize_l1TriggerConfiguration)
00024     #
00025     from L1Trigger.Configuration.customise_l1TriggerConfiguration import customiseL1TriggerConfiguration
00026     process=customiseL1TriggerConfiguration(process)
00027  
00028     #
00029     # customization of output commands
00030     #
00031     from L1Trigger.Configuration.L1Trigger_custom import customiseOutputCommands
00032     process=customiseOutputCommands(process)
00033  
00034     #
00035     # load and configure the pattern test generator
00036     #
00037     process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtPatternGenerator_cfi")
00038 
00039     # take GCT and GMT data from emulators, not from unpackers
00040     gctLabel = 'simGctDigis'
00041     gmtLabel = 'simGmtDigis'
00042     process.l1GtPatternGenerator.GctInputTag = gctLabel
00043     process.l1GtPatternGenerator.GmtInputTag = gmtLabel
00044 
00045     process.l1GtPatternGenerator.CscInputTag = cms.InputTag("simDttfDigis","DT")
00046     process.l1GtPatternGenerator.DtInputTag = cms.InputTag("simCsctfDigis","CSC")
00047     process.l1GtPatternGenerator.RpcbInputTag = cms.InputTag("simRpcTriggerDigis","RPCb")
00048     process.l1GtPatternGenerator.RpcfInputTag = cms.InputTag("simRpcTriggerDigis","RPCf")
00049 
00050     ## enable detailed output (event no/bx per line, item tracing)
00051     #process.l1GtPatternGenerator.DebugOutput = cms.bool(True)
00052 
00053     #
00054     # Global Trigger emulator configuration 
00055     # input data from the same sources as the pattern writer
00056     #
00057     process.simGtDigis.ProduceL1GtEvmRecord = False
00058     process.simGtDigis.ProduceL1GtObjectMapRecord = False
00059     process.simGtDigis.WritePsbL1GtDaqRecord = False
00060     process.simGtDigis.EmulateBxInEvent = -1
00061          
00062     #     
00063     # L1 trigger report
00064     #
00065     from L1Trigger.Configuration.L1Trigger_custom import customiseL1TriggerReport
00066     process=customiseL1TriggerReport(process)
00067     process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
00068 
00069     #     
00070     # full sequence pattern generator from raw data
00071     #
00072         
00073     process.LGtPatternGeneratorFromRaw= cms.Sequence(
00074                         process.CaloTPG_SimL1Emulator*process.l1GtTrigReport*process.l1GtPatternGenerator)
00075     process.L1simulation_step.replace(
00076                         process.CaloTPG_SimL1Emulator,process.LGtPatternGeneratorFromRaw)
00077 
00078 
00079 
00080     #
00081     return (process)