Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:52

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/SpyFEDemulated234824.root'.
0044      'file:/eos/cms/store/user/jblee//SpyRawToDigis298270_TEST.root'
0045     )
0046 process.SiStripSpyEventMatcher.FilterNonMatchingEvents = cms.bool(True)
0047 process.SiStripSpyEventMatcher.MergeData = cms.bool(True)
0048 process.SiStripSpyEventMatcher.PrimaryEventRawDataTag = cms.InputTag('rawDataCollector')
0049 process.SiStripSpyEventMatcher.SpyTotalEventCountersTag = cms.InputTag('SiStripSpyUnpacker','TotalEventCount')
0050 process.SiStripSpyEventMatcher.SpyL1ACountersTag = cms.InputTag('SiStripSpyUnpacker','L1ACount')
0051 process.SiStripSpyEventMatcher.SpyAPVAddressesTag = cms.InputTag('SiStripSpyDigiConverter','APVAddress')
0052 process.SiStripSpyEventMatcher.RawSpyDataTag = cms.InputTag('rawDataCollector')
0053 process.SiStripSpyEventMatcher.SpyScopeDigisTag = cms.InputTag('SiStripSpyUnpacker','ScopeRawDigis')
0054 process.SiStripSpyEventMatcher.SpyPayloadDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyPayload')
0055 process.SiStripSpyEventMatcher.SpyReorderedDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyReordered')
0056 process.SiStripSpyEventMatcher.SpyVirginRawDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyVirginRaw')
0057 
0058 # ---- Path
0059 process.p = cms.Path(
0060     process.siStripDigis*
0061     process.SiStripSpyEventMatcher
0062     )
0063 
0064 process.output = cms.OutputModule(
0065     "PoolOutputModule",
0066     fileName = cms.untracked.string("SpyMatchedEvents298270_TEST.root"),
0067     outputCommands = cms.untracked.vstring(
0068         'keep *'
0069         #'drop *',
0070         #'keep *_source_*_*'
0071         ),
0072     # Select only events that pass the spy matching filter
0073     SelectEvents = cms.untracked.PSet(
0074         SelectEvents = cms.vstring('p') 
0075         )
0076     )
0077 
0078 process.e = cms.EndPath( process.output )