CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DigiToRaw_Repack_cff.py
Go to the documentation of this file.
2 
3 ##
4 ## (1) Remake RAW from ZS tracker digis
5 ##
6 
8 SiStripDigiToZSRaw = EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi.SiStripDigiToRaw.clone(
9  InputModuleLabel = 'siStripZeroSuppression',
10  InputDigiLabel = cms.string('VirginRaw'),
11  FedReadoutMode = cms.string('ZERO_SUPPRESSED')
12  )
13 
14 SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
15  FedReadoutMode = cms.string('VIRGIN_RAW')
16 )
17 
18 ##
19 ## (2) Combine new ZS RAW from tracker with existing RAW for other FEDs
20 ##
21 
22 from EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi import rawDataCollector
23 
24 rawDataRepacker = rawDataCollector.clone(
25  verbose = cms.untracked.int32(0),
26  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToZSRaw'),
27  cms.InputTag('source'),
28  cms.InputTag('rawDataCollector'))
29  )
30 
31 virginRawDataRepacker = rawDataRepacker.clone(
32  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripRawDigiToVirginRaw'))
33 )
34 
35 ##
36 ## Repacked DigiToRaw Sequence
37 ##
38 
39 DigiToRawRepack = cms.Sequence( SiStripDigiToZSRaw * rawDataRepacker )
40 DigiToVirginRawRepack = cms.Sequence( SiStripRawDigiToVirginRaw * virginRawDataRepacker )
41 DigiToSplitRawRepack = cms.Sequence( DigiToRawRepack + DigiToVirginRawRepack )