Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:55

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('test')
0004 
0005 process.source = cms.Source(
0006   "PoolSource",
0007   fileNames = cms.untracked.vstring(
0008         '/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/121/632/00BE1303-F3D4-DE11-AA08-001D09F29169.root'
0009         ),
0010   skipBadFiles = cms.untracked.bool(True),                        
0011   #inputCommands = cms.untracked.vstring('drop *', 'keep *_source_*_*'),
0012 
0013   )
0014 
0015 #process.load("DQM.SiStripMonitorHardware.test.source_cff")
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1000)
0018     )
0019 
0020 # Conditions (Global Tag is used here):
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 #process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0023 process.GlobalTag.globaltag = "GR09_P_V6::All"
0024 process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0025 
0026 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0027 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0028 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0029 # Real data raw to digi
0030 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0031 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0032 
0033 ##########################################################
0034 #needed to produce tkHistoMap+shot histos.
0035 #Can comment if commenting apvshotsanalyzer in main path
0036 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0037 process.load("DPGAnalysis.SiStripTools.apvshotsanalyzer_cfi")
0038 process.TFileService = cms.Service("TFileService", 
0039                                    fileName = cms.string("Shot.root"),
0040                                    closeFileFast = cms.untracked.bool(True)
0041                                    )
0042 ###########################################################
0043 
0044 process.load('DQM.SiStripMonitorHardware.siStripShotFilter_cfi')
0045 process.siStripShotFilter.OutputFilePath = "shotChannels.dat"
0046 
0047 process.p = cms.Path( 
0048     process.siStripDigis
0049     *process.siStripZeroSuppression
0050     *process.apvshotsanalyzer
0051     *process.siStripShotFilter
0052     )
0053 
0054 #process.saveDigis = cms.OutputModule( 
0055 #    "PoolOutputModule",
0056 #    outputCommands = cms.untracked.vstring(
0057 #        'drop *_*_*_HLT',
0058 #        'drop *_*_*Raw_DQMCMMonitor',
0059 #        'drop *_*_ScopeMode_DQMCMMonitor',
0060 #        'keep *_siStripDigis_ZeroSuppressed_*',
0061 #        'keep *_source_*_*'
0062 #        ),
0063 #    fileName = cms.untracked.string('Digi_run106019.root')
0064 #    )
0065 
0066 #process.pout = cms.EndPath( process.saveDigis )