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.
1 import FWCore.ParameterSet.Config as cms
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  CopyBufferHeader = cms.bool(True),
13  RawDataTag = cms.InputTag('rawDataCollector')
14  )
15 
16 SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
17  FedReadoutMode = cms.string('VIRGIN_RAW')
18 )
19 
20 ##
21 ## (2) Combine new ZS RAW from tracker with existing RAW for other FEDs
22 ##
23 
24 from EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi import rawDataCollector
25 
26 rawDataRepacker = rawDataCollector.clone(
27  verbose = cms.untracked.int32(0),
28  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToZSRaw'),
29  cms.InputTag('source'),
30  cms.InputTag('rawDataCollector'))
31  )
32 
33 virginRawDataRepacker = rawDataRepacker.clone(
34  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripRawDigiToVirginRaw'))
35 )
36 
37 ##
38 ## Repacked DigiToRaw Sequence
39 ##
40 
41 DigiToRawRepack = cms.Sequence( SiStripDigiToZSRaw * rawDataRepacker )
42 DigiToVirginRawRepack = cms.Sequence( SiStripRawDigiToVirginRaw * virginRawDataRepacker )
43 DigiToSplitRawRepack = cms.Sequence( DigiToRawRepack + DigiToVirginRawRepack )