Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:44

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 )
0059 
0060 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import siStripDigis
0061 hltSiStripRawToDigi = siStripDigis.clone(ProductLabel = "rawDataRepacker")
0062 
0063 from RecoLocalTracker.Configuration.RecoLocalTracker_cff import siStripZeroSuppressionHLT
0064 
0065 from RecoLocalTracker.SiStripClusterizer.DefaultClusterizer_cff import *
0066 siStripClustersHLT = cms.EDProducer("SiStripClusterizer",
0067                                     Clusterizer = DefaultClusterizer,
0068                                     DigiProducersList = cms.VInputTag(
0069                                         cms.InputTag('hltSiStripRawToDigi','ZeroSuppressed'),
0070                                         cms.InputTag('siStripZeroSuppressionHLT','VirginRaw'),
0071                                         cms.InputTag('siStripZeroSuppressionHLT','ProcessedRaw'),
0072                                         cms.InputTag('siStripZeroSuppressionHLT','ScopeMode')),
0073                                 )
0074 
0075 from RecoLocalTracker.SiStripClusterizer.SiStripClusters2ApproxClusters_cff import * 
0076 
0077 from EventFilter.Utilities.EvFFEDExcluder_cfi import EvFFEDExcluder as _EvFFEDExcluder
0078 rawPrimeDataRepacker = _EvFFEDExcluder.clone(
0079     src = 'rawDataCollector',
0080     fedsToExclude = [foo for foo in range(50, 490)]
0081 )
0082 
0083 hltScalersRawToDigi =  cms.EDProducer( "ScalersRawToDigi",
0084    scalersInputTag = cms.InputTag( "rawDataRepacker" )
0085 )
0086 
0087 import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
0088 BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
0089     timeThreshold = 999999 # to allow using old runs in tests
0090 )
0091 
0092 DigiToApproxClusterRawTask = cms.Task(hltSiStripRawToDigi,siStripZeroSuppressionHLT,hltScalersRawToDigi,hltBeamSpotProducer,siStripClustersHLT,hltSiStripClusters2ApproxClusters,rawPrimeDataRepacker)
0093 DigiToApproxClusterRaw = cms.Sequence(DigiToApproxClusterRawTask)