CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQM/L1TMonitor/python/inputsource_file_cfi.py

Go to the documentation of this file.
00001 #
00002 # provide online L1 Trigger DQM input from file(s)
00003 #
00004 # V M Ghete 2010-07-09
00005 
00006 import FWCore.ParameterSet.Config as cms
00007 
00008 ###################### user choices ######################
00009 
00010 dataType = 'RAW'
00011 #dataType = 'StreamFile'
00012 
00013 
00014 # runNumber for RAW only 
00015 runNumber = '165633-CAFDQM'
00016 #runNumber = 163661
00017 #runNumber = 161312
00018 #runNumber = 143657
00019 #runNumber = 137028
00020 
00021 maxNumberEvents = 10000
00022 
00023 ###################### end user choices ###################
00024 
00025 
00026 maxEvents = cms.untracked.PSet(
00027     input = cms.untracked.int32(maxNumberEvents)
00028 )
00029 
00030 
00031 # for RAW data, run first the RAWTODIGI 
00032 if dataType == 'StreamFile' :
00033     readFiles = cms.untracked.vstring()
00034     source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
00035 else :        
00036     readFiles = cms.untracked.vstring()
00037     secFiles = cms.untracked.vstring() 
00038     source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
00039 
00040 
00041 if dataType == 'RAW' : 
00042 
00043     if runNumber == 137028: 
00044     
00045         readFiles.extend( [
00046             '/store/data/Run2010A/ZeroBias/RAW/v1/000/137/028/0C88B386-3971-DF11-A163-000423D99896.root' 
00047             ] );
00048 
00049         secFiles.extend([
00050             ])    
00051     
00052     elif runNumber == 143657 : 
00053     
00054         readFiles.extend( [
00055             '/store/data/Run2010A/MinimumBias/RAW/v1/000/143/657/00FB1636-91AE-DF11-B177-001D09F248F8.root',
00056             '/store/data/Run2010A/MinimumBias/RAW/v1/000/143/657/023EB128-51AE-DF11-96D3-001D09F24682.root'
00057             ] );
00058 
00059         secFiles.extend([
00060             ])    
00061    
00062     elif runNumber == 161312 : 
00063     
00064         readFiles.extend( [
00065             '/store/data/Run2011A/MinimumBias/RAW/v1/000/161/312/FEE65985-EF55-E011-A137-001617E30F50.root',
00066             '/store/data/Run2011A/MinimumBias/RAW/v1/000/161/312/F4E4E71A-E755-E011-B7BA-001617E30CC8.root',
00067             '/store/data/Run2011A/MinimumBias/RAW/v1/000/161/312/F442D1A6-D755-E011-A93F-003048F01E88.root'
00068             ] );
00069 
00070         secFiles.extend([
00071             ])    
00072     elif runNumber == 163661 : 
00073     
00074         readFiles.extend( [
00075             '/store/data/Run2011A/MinimumBias/RAW/v1/000/163/661/2E455CA5-2272-E011-A3A8-003048F024F6.root'
00076             ] );
00077 
00078         secFiles.extend([
00079             ])    
00080    
00081     elif runNumber == '165633-CAFDQM' : 
00082     
00083         readFiles.extend( [
00084             'file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root'
00085             ] );
00086 
00087         secFiles.extend([
00088             ])    
00089    
00090 elif dataType == 'StreamFile' : 
00091 
00092     readFiles.extend( [
00093         'file:/lookarea_SM/Data.00147754.0001.A.storageManager.00.0000.dat'       
00094         ] );
00095 
00096 else :
00097     print 'Error: no such dataType:' + dataType + 'was specified'