Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:36

0001 ## Run standalone CSCRecoBadChannelsAnalyzer - test bad strip channels - Tim Cox - 07.10.2014
0002 ## This version runs in 720pre6 on a real data RelVal RAW sample.
0003 
0004 ## Output via MessageLogger - configured, after much flailing, so that
0005 ## ONLY the LogVerbatim("CSCBadChannels") messages are sent to std:output.
0006 
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("TEST")
0011 
0012 process.load("Configuration/StandardSequences/Geometry_cff")
0013 process.load("Configuration/StandardSequences/MagneticField_cff")
0014 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0015 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0016 process.load("Configuration.StandardSequences.Reconstruction_cff")
0017 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0018 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0019 
0020 process.MessageLogger.cerr.enable = False
0021 process.MessageLogger.cout = cms.untracked.PSet(
0022     enable    = cms.untracked.bool(True),
0023     threshold = cms.untracked.string("INFO"),
0024     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0025     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0026     CSCBadChannels = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0027 )
0028 
0029 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0030 
0031 # This is OK for 72x real data
0032 process.GlobalTag.globaltag = "GR_R_71_V1::All"
0033 
0034 # --- NUMBER OF EVENTS ---  JUST ONE!
0035 
0036 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 1 ) )
0037 
0038 # --- MUST HAVE A DUMMY SOURCE
0039 
0040 process.source = cms.Source("EmptySource",
0041  firstRun = cms.untracked.uint32(100001)
0042 )
0043 
0044 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring("ProductNotFound") )
0045 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0046 
0047 process.analyze = cms.EDAnalyzer("CSCRecoBadChannelsAnalyzer",
0048     readBadChannels = cms.bool(True),
0049     readBadChambers = cms.bool(False),
0050     CSCUseTimingCorrections = cms.bool(False),
0051     CSCUseGasGainCorrections = cms.bool(False)
0052 )
0053 
0054 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0055 
0056 process.p = cms.Path(process.analyze)
0057 process.ep = cms.EndPath(process.printEventNumber)