Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ## Dump  1000  events in CSC segment builder - Tim Cox - 22.08.2014
0002 ## This version runs in 720pre3 on a real data RelVal RAW sample.
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 process.load("Configuration/StandardSequences/Geometry_cff")
0009 process.load("Configuration/StandardSequences/MagneticField_cff")
0010 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0011 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0012 process.load("Configuration.StandardSequences.Reconstruction_cff")
0013 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0014 
0015 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0016 
0017 # This is OK for 72x real data
0018 process.GlobalTag.globaltag = 'GR_R_71_V1::All'
0019 
0020 # --- NUMBER OF EVENTS --- 
0021 
0022 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0023 
0024 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring('ProductNotFound') )
0025 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0026 process.source    = cms.Source("PoolSource",
0027     fileNames = cms.untracked.vstring(
0028     '/store/relval/CMSSW_7_2_0_pre3/SingleMu/RAW/GR_H_V37_RelVal_mu2012D-v1/00000/0011FE1A-0E19-E411-BE99-0025905A607E.root'
0029     )
0030 )
0031 
0032 # --- ACTIVATE LogTrace IN VARIOUS MODULES - NEED TO COMPILE *EACH MODULE* WITH 
0033 # scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0034 # LogTrace output goes to cout; all other output to "junk.log"
0035 
0036 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0037 
0038 # module label is something like "muonCSCDigis"...
0039 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0040 process.MessageLogger.cerr.enable = False
0041 process.MessageLogger.files.junk = dict()
0042 process.MessageLogger.cout = cms.untracked.PSet(
0043     enable    = cms.untracked.bool(True),
0044     threshold = cms.untracked.string("DEBUG"),
0045     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0046     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0047     CSCRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0048     CSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0049   , CSCSegAlgoST = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0050 )
0051 
0052 #process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments * process.cscValidation)
0053 
0054 # Path and EndPath def
0055 process.unpack = cms.Path(process.muonCSCDigis)
0056 process.reco = cms.Path(process.csc2DRecHits * process.cscSegments)
0057 process.endjob = cms.EndPath(process.endOfProcess)
0058 
0059 # Schedule definition
0060 process.schedule = cms.Schedule(process.unpack, process.reco, process.endjob)
0061