Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import FWCore.ParameterSet.Config as cms
import EventFilter.L1GlobalTriggerRawToDigi.l1GlobalTriggerRawToDigi_cfi

l1GtUnpack = EventFilter.L1GlobalTriggerRawToDigi.l1GlobalTriggerRawToDigi_cfi.l1GlobalTriggerRawToDigi.clone()

# input tag for GT readout collection: 
#     source = hardware record, 
#     l1GtPack = GT packer (DigiToRaw) 
l1GtUnpack.DaqGtInputTag = cms.InputTag("l1GtPack")

# FED Id for GT DAQ record 
# default value defined in DataFormats/FEDRawData/src/FEDNumbering.cc
l1GtUnpack.DaqGtFedId = cms.untracked.int32(813)

# mask for active boards (actually 16 bits)
#      if bit is zero, the corresponding board will not be unpacked
#      default: no board masked
l1GtUnpack.ActiveBoardsMask = cms.uint32(0xFFFF)

# number of "bunch crossing in the event" (bxInEvent) to be unpacked
# symmetric around L1Accept (bxInEvent = 0):
#    1 (bxInEvent = 0); 3 (F 0 1) (standard record); 5 (E F 0 1 2) (debug record)
# even numbers (except 0) "rounded" to the nearest lower odd number
# negative value: unpack all available bxInEvent   
# if more bxInEvent than available are required, unpack what exists and write a warning  
l1GtUnpack.UnpackBxInEvent = cms.int32(-1)