Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:19

0001 # Implementation : Description of running this tool can be find  at :
0002 # https://twiki.cern.ch/twiki/bin/view/CMS/TkAlCosmicsRateMonitoring
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 import os
0007 
0008 process = cms.Process("cosmicRateAnalyzer")
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 
0011 process.load('Configuration.StandardSequences.MagneticField_cff') # B-field map
0012 process.load('Configuration.Geometry.GeometryRecoDB_cff') # Ideal geometry and interface
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") # Global tag
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0016 
0017 process.options = cms.untracked.PSet(
0018      SkipEvent= cms.untracked.vstring("ProductNotFound"), # make this exception fatal
0019   )
0020 process.maxEvents=cms.untracked.PSet(input=cms.untracked.int32(10000)) 
0021 
0022 import FWCore.Utilities.FileUtils as FileUtils
0023  
0024 readFiles = cms.untracked.vstring()
0025 
0026 
0027 readFiles = cms.untracked.vstring( FileUtils.loadListFromFile (os.environ['CMSSW_BASE']+'/src/Alignment/TrackerAlignment/test/'+'fileList.txt') )
0028 process.source = cms.Source("PoolSource",
0029                fileNames = readFiles,
0030                )
0031 
0032 process.TFileService = cms.Service("TFileService", fileName = cms.string("Cosmic_rate_tuple.root") )
0033 
0034 process.load("Alignment.TrackerAlignment.cosmicRateAnalyzer_cfi")
0035 process.p = cms.Path(process.cosmicRateAnalyzer)
0036