Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ## Dump  100  events in CSC segment builder - Tim Cox - 09.09.2013
0002 ## This version runs in 700pre3 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 process.GlobalTag.globaltag = 'PRE_62_V8::All'
0018 
0019 # --- NUMBER OF EVENTS --- 
0020 
0021 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0022 
0023 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring('ProductNotFound') )
0024 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0025 process.source    = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(
0027     '/store/relval/CMSSW_7_0_0_pre3/SingleMu/RAW/PRE_P62_V8_RelVal_mu2011B-v1/00000/127160CD-7215-E311-91F3-003048D15E14.root'
0028     )
0029 )
0030 
0031 # --- ACTIVATE LogTrace IN CSCRecHitD BUT NEED TO COMPILE IT WITH scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0032 # LogTrace output goes to cout; all other output to "junk.log"
0033 
0034 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0035 
0036 # module label is something like "muonCSCDigis"...
0037 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0038 process.MessageLogger.cerr.enable = False
0039 process.MessageLogger.files.junk = dict()
0040 process.MessageLogger.cout = cms.untracked.PSet(
0041     enable    = cms.untracked.bool(True),
0042     threshold = cms.untracked.string("DEBUG"),
0043     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0044     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0045     CSCRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0046     CSCSegAlgoST = cms.untracked.PSet( limit = cms.untracked.int32(-1) ) 
0047 )
0048 
0049 #process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments * process.cscValidation)
0050 
0051 # Path and EndPath def
0052 process.unpack = cms.Path(process.muonCSCDigis)
0053 process.reco = cms.Path(process.csc2DRecHits * process.cscSegments)
0054 process.endjob = cms.EndPath(process.endOfProcess)
0055 
0056 # Schedule definition
0057 process.schedule = cms.Schedule(process.unpack, process.reco, process.endjob)
0058