CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Configuration/StandardSequences/python/DigiToRaw_Repack_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ##
00004 ## (1) Remake RAW from ZS tracker digis
00005 ##
00006 
00007 import EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi
00008 SiStripDigiToZSRaw = EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi.SiStripDigiToRaw.clone(
00009     InputModuleLabel = 'siStripZeroSuppression',
00010     InputDigiLabel = cms.string('VirginRaw'),
00011     FedReadoutMode = cms.string('ZERO_SUPPRESSED')
00012     )
00013 
00014 SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
00015         FedReadoutMode = cms.string('VIRGIN_RAW')
00016 )
00017 
00018 ##
00019 ## (2) Combine new ZS RAW from tracker with existing RAW for other FEDs
00020 ##
00021 
00022 from EventFilter.rawDataCollector.rawDataCollectorByLabel_cfi import rawDataCollector
00023 
00024 rawDataRepacker = rawDataCollector.clone(
00025     verbose = cms.untracked.int32(0),
00026     RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToZSRaw'),
00027                                        cms.InputTag('source'),
00028                                        cms.InputTag('rawDataCollector'))
00029     )
00030 
00031 virginRawDataRepacker = rawDataRepacker.clone(
00032         RawCollectionList = cms.VInputTag( cms.InputTag('SiStripRawDigiToVirginRaw'))
00033 )
00034 
00035 ##
00036 ## Repacked DigiToRaw Sequence
00037 ##
00038 
00039 DigiToRawRepack = cms.Sequence( SiStripDigiToZSRaw * rawDataRepacker )
00040 DigiToVirginRawRepack = cms.Sequence( SiStripRawDigiToVirginRaw * virginRawDataRepacker )
00041 DigiToSplitRawRepack = cms.Sequence( DigiToRawRepack + DigiToVirginRawRepack )