File indexing completed on 2023-03-17 11:00:23
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004 from DQM.SiStripCommon.MessageLogger_cfi import *
0005 MessageLogger.debugModules = cms.untracked.vstring()
0006 Timing = cms.Service("Timing")
0007 Tracer = cms.Service(
0008 "Tracer",
0009 sourceSeed = cms.untracked.string("$$")
0010 )
0011
0012
0013 from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
0014 GlobalTag.globaltag = "MC_31X_V2::All"
0015
0016
0017 from EventFilter.SiStripRawToDigi.test.SiStripTrivialDigiSource_cfi import *
0018 DigiSource.FedRawDataMode = False
0019 DigiSource.UseFedKey = False
0020
0021
0022 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0023 dummySiStripDigiToRaw = SiStripDigiToRaw.clone()
0024
0025
0026 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0027 oldSiStripDigiToRaw = cms.EDProducer(
0028 "OldSiStripDigiToRawModule",
0029 InputDigis = cms.InputTag("DigiSource", ""),
0030 FedReadoutMode = cms.untracked.string('ZERO_SUPPRESSED'),
0031 PacketCode = cms.untracked.string('ZERO_SUPPRESSED'),
0032 UseFedKey = cms.untracked.bool(False)
0033 )
0034
0035
0036 newSiStripDigiToRaw = cms.EDProducer(
0037 "SiStripDigiToRawModule",
0038 InputDigis = cms.InputTag("simSiStripDigis", "ZeroSuppressed"),
0039 FedReadoutMode = cms.string('ZERO_SUPPRESSED'),
0040 PacketCode = cms.string('ZERO_SUPPRESSED'),
0041 UseFedKey = cms.bool(False),
0042 UseWrongDigiType = cms.bool(False)
0043 )
0044
0045
0046 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import *
0047 siStripDigis.ProductLabel = 'newSiStripDigiToRaw'
0048 siStripDigis.UseFedKey = False
0049
0050
0051 oldSiStripDigis = cms.EDProducer(
0052 "OldSiStripRawToDigiModule",
0053 ProductLabel = cms.InputTag('oldSiStripDigiToRaw'),
0054 UseFedKey = cms.untracked.bool(False),
0055 )
0056
0057
0058 from EventFilter.SiStripRawToDigi.test.SiStripDigiValidator_cfi import *
0059 DigiValidator.TagCollection1 = "DigiSource"
0060 DigiValidator.TagCollection2 = "siStripDigis:ZeroSuppressed"
0061 DigiValidator.RawCollection1 = False
0062 DigiValidator.RawCollection2 = False
0063
0064
0065 oldDigiValidator = DigiValidator.clone()
0066 oldDigiValidator.TagCollection1 = "DigiSource"
0067 oldDigiValidator.TagCollection2 = "oldSiStripDigis:ZeroSuppressed"
0068 oldDigiValidator.RawCollection1 = False
0069 oldDigiValidator.RawCollection2 = False
0070
0071
0072 testDigiValidator = DigiValidator.clone()
0073 testDigiValidator.TagCollection1 = "oldSiStripDigis:ZeroSuppressed"
0074 testDigiValidator.TagCollection2 = "siStripDigis:ZeroSuppressed"
0075 testDigiValidator.RawCollection1 = False
0076 testDigiValidator.RawCollection2 = False
0077
0078
0079 output = cms.OutputModule(
0080 "PoolOutputModule",
0081 fileName = cms.untracked.string('output.root'),
0082 outputCommands = cms.untracked.vstring(
0083 'drop *',
0084 'keep SiStrip*_simSiStripDigis_*_*',
0085 'keep *_*_*_DigiToRawToDigi'
0086 )
0087 )
0088
0089
0090 new = cms.Sequence(
0091 newSiStripDigiToRaw *
0092 siStripDigis *
0093 DigiValidator
0094 )
0095
0096 old = cms.Sequence(
0097 oldSiStripDigiToRaw *
0098 oldSiStripDigis *
0099 oldDigiValidator
0100 )
0101
0102 test = cms.Sequence(
0103 testDigiValidator
0104 )
0105
0106 s = cms.Sequence( dummySiStripDigiToRaw * old * new * test )
0107