Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:01

0001 # Configuration for merging spy rawAndCounters data with matching primaryRaw
0002 #============================================================================
0003 import FWCore.ParameterSet.Config as cms
0004 from Configuration.AlCa.GlobalTag import GlobalTag
0005 
0006 process = cms.Process('SPYEVENTMATCHING')
0007 
0008 #source of normal event data
0009 process.source = cms.Source(
0010     'PoolSource',
0011     fileNames = cms.untracked.vstring(
0012        #penultimate file in primary dataset 121835 (RandomTriggers with known matching spy event)
0013 #   'file:/eos/user/j/jblee/MainStream/298/269/00000/D04CCB24-4862-E711-92F2-02163E011F09.root',
0014 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/846/00000/3E397F5D-25B9-E411-801B-02163E011CD9.root',
0015 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/848/00000/54F96357-25B9-E411-B562-02163E0128CE.root',
0016 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/856/00000/082589A2-25B9-E411-ABB7-02163E012BDD.root',
0017 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/858/00000/064F08A5-10BB-E411-A2C0-02163E0123EF.root',
0018 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/874/00000/06B0CB9B-77BB-E411-9959-02163E0125EB.root',
0019 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/874/00000/22357546-2AB9-E411-964B-02163E01206E.root',
0020 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/data/Commissioning2015/RAW/v1/000/234/874/00000/66D33846-2AB9-E411-9CC8-02163E0122DB.root',
0021        )
0022     )
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025   input = cms.untracked.int32(-1)
0026 )
0027 
0028 #process.Tracer = cms.Service('Tracer',indentation = cms.untracked.string('$$'))
0029 process.load('DQM.SiStripCommon.MessageLogger_cfi')
0030 process.load('EventFilter.SiStripRawToDigi.SiStripDigis_cfi')
0031 
0032 # --- Conditions data ---
0033 # Find the appropriate Global Tags at
0034 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0035 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0036 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0037 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0038 
0039 
0040 #merger module
0041 process.load('DQM.SiStripMonitorHardware.SiStripSpyEventMatcher_cfi')
0042 process.SiStripSpyEventMatcher.SpySource.fileNames = cms.untracked.vstring(
0043 #    'file:/eos/cms/store/user/jblee/SpyRawToDigis234824_TEST.root'
0044 #     'file:/eos/cms/store/user/jblee//SpyRawToDigis298270_TEST.root'
0045 'file:SpyFEDemulated234824_TEST.root'
0046 
0047     )
0048 process.SiStripSpyEventMatcher.FilterNonMatchingEvents = cms.bool(True)
0049 process.SiStripSpyEventMatcher.MergeData = cms.bool(True)
0050 process.SiStripSpyEventMatcher.PrimaryEventRawDataTag = cms.InputTag('rawDataCollector')
0051 process.SiStripSpyEventMatcher.SpyTotalEventCountersTag = cms.InputTag('SiStripSpyUnpacker','TotalEventCount')
0052 process.SiStripSpyEventMatcher.SpyL1ACountersTag = cms.InputTag('SiStripSpyUnpacker','L1ACount')
0053 process.SiStripSpyEventMatcher.SpyAPVAddressesTag = cms.InputTag('SiStripSpyDigiConverter','APVAddress')
0054 process.SiStripSpyEventMatcher.RawSpyDataTag = cms.InputTag('rawDataCollector')
0055 process.SiStripSpyEventMatcher.SpyScopeDigisTag = cms.InputTag('SiStripSpyUnpacker','ScopeRawDigis')
0056 process.SiStripSpyEventMatcher.SpyPayloadDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyPayload')
0057 process.SiStripSpyEventMatcher.SpyReorderedDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyReordered')
0058 process.SiStripSpyEventMatcher.SpyVirginRawDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyVirginRaw')
0059 
0060 # ---- Path
0061 process.p = cms.Path(
0062     process.siStripDigis*
0063     process.SiStripSpyEventMatcher
0064     )
0065 
0066 process.output = cms.OutputModule(
0067     "PoolOutputModule",
0068     fileName = cms.untracked.string("SpyMatchedEvents234824_TEST2.root"),
0069     outputCommands = cms.untracked.vstring(
0070         'keep *'
0071         #'drop *',
0072         #'keep *_source_*_*'
0073         ),
0074     # Select only events that pass the spy matching filter
0075     SelectEvents = cms.untracked.PSet(
0076         SelectEvents = cms.vstring('p') 
0077         )
0078     )
0079 
0080 process.e = cms.EndPath( process.output )