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_V6::All" 
0015 
0016 # Region cabling
0017 from Configuration.StandardSequences.Geometry_cff import *
0018 from Configuration.StandardSequences.MagneticField_cff import *
0019 from CalibTracker.SiStripESProducers.SiStripRegionConnectivity_cfi import *
0020 
0021 # Digi Source (common)
0022 from EventFilter.SiStripRawToDigi.test.SiStripTrivialDigiSource_cfi import *
0023 DigiSource.FedRawDataMode = False
0024 DigiSource.UseFedKey = False
0025 
0026 # DigiToRaw (dummy, not used, for timing purposes only)
0027 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0028 dummySiStripDigiToRaw = SiStripDigiToRaw.clone()
0029 
0030 
0031 # ----- Reference RawToDigiToClusters chains -----
0032 
0033 # Old DigiToRaw and RawToDigi
0034 oldSiStripDigiToRaw = cms.EDProducer(
0035     "OldSiStripDigiToRawModule",
0036     InputDigis = cms.InputTag("DigiSource", ""),
0037     FedReadoutMode = cms.untracked.string('ZERO_SUPPRESSED'),
0038     PacketCode = cms.untracked.string('ZERO_SUPPRESSED'),
0039     UseFedKey = cms.untracked.bool(False)
0040     )
0041 oldSiStripDigis = cms.EDProducer(
0042     "OldSiStripRawToDigiModule",
0043     ProductLabel      = cms.InputTag('oldSiStripDigiToRaw'),
0044     AppendedBytes     = cms.untracked.int32(0),
0045     UseDaqRegister    = cms.bool(False),
0046     UseFedKey         = cms.untracked.bool(False),
0047     UnpackBadChannels = cms.bool(False),
0048     TriggerFedId      = cms.untracked.int32(0)
0049     #FedEventDumpFreq  = cms.untracked.int32(0),
0050     #FedBufferDumpFreq = cms.untracked.int32(0),
0051     )
0052 
0053 # New DigiToRaw and RawToDigi
0054 from EventFilter.SiStripRawToDigi.SiStripDigiToRaw_cfi import *
0055 SiStripDigiToRaw.InputDigis = cms.InputTag("DigiSource", "ZeroSuppressed")
0056 from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import *
0057 siStripDigis.ProductLabel = 'SiStripDigiToRaw'
0058 
0059 # Clusterizer (reference "new")
0060 from RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi import *
0061 siStripClusters.DigiProducersList = cms.VInputTag(cms.InputTag('siStripDigis:ZeroSuppressed'))
0062 
0063 
0064 # ----- New RawToClusters chain -----
0065 
0066 # DigiToRaw (new)
0067 newSiStripDigiToRaw = SiStripDigiToRaw.clone()
0068 
0069 # RawToClusters (new)
0070 from EventFilter.SiStripRawToDigi.SiStripRawToClusters_cfi import *
0071 SiStripRawToClustersFacility.ProductLabel = cms.InputTag("newSiStripDigiToRaw")
0072 
0073 # Regions Of Interest (new)
0074 from EventFilter.SiStripRawToDigi.SiStripRawToClustersRoI_cfi import *
0075 SiStripRoI.SiStripLazyGetter = cms.InputTag("SiStripRawToClustersFacility")
0076 
0077 # Clusters DSV Builder (new)
0078 from EventFilter.SiStripRawToDigi.test.SiStripClustersDSVBuilder_cfi import *
0079 siStripClustersDSV.SiStripLazyGetter = cms.InputTag("SiStripRawToClustersFacility")
0080 siStripClustersDSV.SiStripRefGetter = cms.InputTag("SiStripRoI")
0081 siStripClustersDSV.DetSetVectorNew = True
0082 
0083 
0084 # ----- Validators -----
0085 
0086 from EventFilter.SiStripRawToDigi.test.SiStripClusterValidator_cfi import *
0087 
0088 # Cluster Validator (new-to-reference)
0089 newValidateSiStripClusters = ValidateSiStripClusters.clone()
0090 newValidateSiStripClusters.Collection1 = cms.untracked.InputTag("siStripClusters")
0091 newValidateSiStripClusters.Collection2 = cms.untracked.InputTag("siStripClustersDSV")
0092 newValidateSiStripClusters.DetSetVectorNew = True
0093 
0094 
0095 # ----- Sequences and Paths -----
0096 
0097 
0098 # PoolOutput
0099 output = cms.OutputModule(
0100     "PoolOutputModule",
0101     fileName = cms.untracked.string('output.root'),
0102     outputCommands = cms.untracked.vstring(
0103     'drop *',
0104     'keep SiStrip*_simSiStripDigis_*_*', # (to drop SimLinks)
0105     'keep *_*_*_DigiToRawToClusters'
0106     )
0107     )
0108 
0109 
0110 reference_new = cms.Sequence(
0111     SiStripDigiToRaw *
0112     siStripDigis *
0113     siStripClusters
0114     )
0115 
0116 new = cms.Sequence(
0117     newSiStripDigiToRaw *
0118     SiStripRawToClustersFacility *
0119     SiStripRoI *
0120     siStripClustersDSV *
0121     newValidateSiStripClusters
0122     )
0123 
0124 #test = cms.Sequence(
0125 #    testValidateSiStripClusters
0126 #    )
0127 
0128 e = cms.EndPath( output )
0129 s = cms.Sequence( dummySiStripDigiToRaw * reference_new * new ) #* test )