Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ##
0004 ## (1) Remake RAW from ZS tracker digis
0005 ##
0006 
0007 import EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi
0008 SiStripDigiToZSRaw = EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi.SiStripDigiToRaw.clone(
0009     InputDigis = cms.InputTag('siStripZeroSuppression', 'VirginRaw'),
0010     FedReadoutMode = cms.string('ZERO_SUPPRESSED'),
0011     PacketCode = cms.string('ZERO_SUPPRESSED'),
0012     CopyBufferHeader = cms.bool(True),
0013     RawDataTag = cms.InputTag('rawDataCollector')
0014     )
0015 
0016 SiStripDigiToHybridRaw = SiStripDigiToZSRaw.clone(
0017     PacketCode = cms.string('ZERO_SUPPRESSED10'),
0018     )
0019 
0020 SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
0021     FedReadoutMode = cms.string('VIRGIN_RAW'),
0022     PacketCode = cms.string('VIRGIN_RAW')
0023 )
0024 
0025 ##
0026 ## (2) Combine new ZS RAW from tracker with existing RAW for other FEDs
0027 ##
0028 
0029 from EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi import rawDataCollector
0030 
0031 rawDataRepacker = rawDataCollector.clone(
0032     verbose = cms.untracked.int32(0),
0033     RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToZSRaw'),
0034                                        cms.InputTag('source'),
0035                                        cms.InputTag('rawDataCollector'))
0036     )
0037 hybridRawDataRepacker = rawDataRepacker.clone(
0038     RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToHybridRaw'),
0039                                        cms.InputTag('source'),
0040                                        cms.InputTag('rawDataCollector'))
0041     )
0042 
0043 virginRawDataRepacker = rawDataRepacker.clone(
0044     RawCollectionList = cms.VInputTag( cms.InputTag('SiStripRawDigiToVirginRaw'))
0045 )
0046 
0047 ##
0048 ## Repacked DigiToRaw Sequence
0049 ##
0050 
0051 DigiToRawRepackTask = cms.Task(SiStripDigiToZSRaw, rawDataRepacker)
0052 DigiToHybridRawRepackTask = cms.Task(SiStripDigiToHybridRaw, hybridRawDataRepacker)
0053 DigiToVirginRawRepackTask = cms.Task(SiStripRawDigiToVirginRaw, virginRawDataRepacker)
0054 
0055 DigiToRawRepack = cms.Sequence( DigiToRawRepackTask )
0056 DigiToHybridRawRepack = cms.Sequence( DigiToHybridRawRepackTask )
0057 DigiToVirginRawRepack = cms.Sequence( DigiToVirginRawRepackTask )
0058 DigiToSplitRawRepack = cms.Sequence( DigiToRawRepackTask, DigiToVirginRawRepackTask )