Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Services
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 # Conditions
0013 from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
0014 GlobalTag.globaltag = "MC_31X_V2::All" 
0015 
0016 # Digi Source (common)
0017 from EventFilter.SiStripRawToDigi.test.SiStripTrivialDigiSource_cfi import *
0018 DigiSource.FedRawDataMode = False
0019 DigiSource.UseFedKey = False
0020 
0021 # DigiToRaw (dummy, not used, for timing purposes only)
0022 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0023 dummySiStripDigiToRaw = SiStripDigiToRaw.clone()
0024 
0025 # DigiToRaw (old) ### WARNING: default for cfi should be migrated to new once validated!!!
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 # DigiToRaw (new) ### WARNING: default for cfi should be migrated to new once validated!!!
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 # RawToDigi (new)
0046 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import *
0047 siStripDigis.ProductLabel = 'newSiStripDigiToRaw'
0048 siStripDigis.UseFedKey = False
0049 
0050 # RawToDigi (old)
0051 oldSiStripDigis = cms.EDProducer(
0052     "OldSiStripRawToDigiModule",
0053     ProductLabel =  cms.InputTag('oldSiStripDigiToRaw'),
0054     UseFedKey = cms.untracked.bool(False),
0055     )
0056 
0057 # Digi Validator (new)
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 # Digi Validator (old)
0065 oldDigiValidator = DigiValidator.clone()
0066 oldDigiValidator.TagCollection1 = "DigiSource"
0067 oldDigiValidator.TagCollection2 = "oldSiStripDigis:ZeroSuppressed"
0068 oldDigiValidator.RawCollection1 = False
0069 oldDigiValidator.RawCollection2 = False
0070 
0071 # Digi Validator (compare)
0072 testDigiValidator = DigiValidator.clone()
0073 testDigiValidator.TagCollection1 = "oldSiStripDigis:ZeroSuppressed"
0074 testDigiValidator.TagCollection2 = "siStripDigis:ZeroSuppressed"
0075 testDigiValidator.RawCollection1 = False
0076 testDigiValidator.RawCollection2 = False
0077 
0078 # PoolOutput
0079 output = cms.OutputModule(
0080     "PoolOutputModule",
0081     fileName = cms.untracked.string('output.root'),
0082     outputCommands = cms.untracked.vstring(
0083     'drop *',
0084     'keep SiStrip*_simSiStripDigis_*_*', # (to drop SimLinks)
0085     'keep *_*_*_DigiToRawToDigi'
0086     )
0087     )
0088 
0089 # Sequences and Paths
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