CMS 3D CMS Logo

DigiToRaw_Repack_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
8 SiStripDigiToZSRaw = EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi.SiStripDigiToRaw.clone(
9  InputDigis = cms.InputTag('siStripZeroSuppression', 'VirginRaw'),
10  FedReadoutMode = cms.string('ZERO_SUPPRESSED'),
11  PacketCode = cms.string('ZERO_SUPPRESSED'),
12  CopyBufferHeader = cms.bool(True),
13  RawDataTag = cms.InputTag('rawDataCollector')
14  )
15 
16 SiStripDigiToHybridRaw = SiStripDigiToZSRaw.clone(
17  PacketCode = cms.string('ZERO_SUPPRESSED10'),
18  )
19 
20 SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
21  FedReadoutMode = cms.string('VIRGIN_RAW'),
22  PacketCode = cms.string('VIRGIN_RAW')
23 )
24 
25 
28 
29 from EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi import rawDataCollector
30 
31 rawDataRepacker = rawDataCollector.clone(
32  verbose = cms.untracked.int32(0),
33  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToZSRaw'),
34  cms.InputTag('source'),
35  cms.InputTag('rawDataCollector'))
36  )
37 hybridRawDataRepacker = rawDataRepacker.clone(
38  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripDigiToHybridRaw'),
39  cms.InputTag('source'),
40  cms.InputTag('rawDataCollector'))
41  )
42 
43 virginRawDataRepacker = rawDataRepacker.clone(
44  RawCollectionList = cms.VInputTag( cms.InputTag('SiStripRawDigiToVirginRaw'))
45 )
46 
47 
50 
51 DigiToRawRepackTask = cms.Task(SiStripDigiToZSRaw, rawDataRepacker)
52 DigiToHybridRawRepackTask = cms.Task(SiStripDigiToHybridRaw, hybridRawDataRepacker)
53 DigiToVirginRawRepackTask = cms.Task(SiStripRawDigiToVirginRaw, virginRawDataRepacker)
54 
55 DigiToRawRepack = cms.Sequence( DigiToRawRepackTask )
56 DigiToHybridRawRepack = cms.Sequence( DigiToHybridRawRepackTask )
57 DigiToVirginRawRepack = cms.Sequence( DigiToVirginRawRepackTask )
58 DigiToSplitRawRepack = cms.Sequence( DigiToRawRepackTask, DigiToVirginRawRepackTask )
59 
60 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import siStripDigis
61 siStripDigisHLT = siStripDigis.clone(ProductLabel = "rawDataRepacker")
62 
63 from RecoLocalTracker.Configuration.RecoLocalTracker_cff import siStripZeroSuppressionHLT
64 
66 siStripClustersHLT = cms.EDProducer("SiStripClusterizer",
67  Clusterizer = DefaultClusterizer,
68  DigiProducersList = cms.VInputTag(
69  cms.InputTag('siStripDigisHLT','ZeroSuppressed'),
70  cms.InputTag('siStripZeroSuppressionHLT','VirginRaw'),
71  cms.InputTag('siStripZeroSuppressionHLT','ProcessedRaw'),
72  cms.InputTag('siStripZeroSuppressionHLT','ScopeMode')),
73  )
74 
75 from RecoLocalTracker.SiStripClusterizer.SiStripClusters2ApproxClusters_cff import hltSiStripClusters2ApproxClusters
76 
77 from EventFilter.Utilities.EvFFEDExcluder_cfi import EvFFEDExcluder as _EvFFEDExcluder
78 rawPrimeDataRepacker = _EvFFEDExcluder.clone(
79  src = 'rawDataCollector',
80  fedsToExclude = [foo for foo in range(50, 490)]
81 )
82 
83 DigiToApproxClusterRawTask = cms.Task(siStripDigisHLT,siStripZeroSuppressionHLT,siStripClustersHLT,hltSiStripClusters2ApproxClusters,rawPrimeDataRepacker)
84 DigiToApproxClusterRaw = cms.Sequence(DigiToApproxClusterRawTask)