Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:59

0001 ## Dump  100  events in CSC rechit builder - Tim Cox - 03.12.2012
0002 ## This version runs in 610preX on a real data RelVal RAW sample,
0003 ## and uses indexer and mapper algos.
0004 ## Change Geometry_cff to GeometryDB_cff and update GT July.2022
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("TEST")
0009 
0010 process.load("Configuration.StandardSequences.GeometryDB_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0013 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0014 process.load("Configuration.StandardSequences.Reconstruction_cff")
0015 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0016 
0017 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0018 # 2022
0019 process.GlobalTag.globaltag = 'auto:phase1_2022_realistic'
0020 
0021 # --- NUMBER OF EVENTS --- 
0022 
0023 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0024 
0025 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring('ProductNotFound') )
0026 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0027 process.source    = cms.Source("PoolSource",
0028     fileNames = cms.untracked.vstring(
0029         '/store/relval/CMSSW_6_1_0_pre4-GR_P_V42_RelVal_mu2012C/SingleMu/RAW/v1/00000/F6AA1146-4F15-E211-8EE1-001A92810AD8.root'
0030     )
0031 )
0032 
0033 # Algorithm selection for Indexer & ChannelMapper
0034 
0035 process.dummy1 = cms.ESSource("EmptyESSource",
0036                                   recordName = cms.string("CSCIndexerRecord"),
0037                                   firstValid = cms.vuint32(1),
0038                                   iovIsRunNotTime = cms.bool(True)
0039                               )
0040 
0041 process.dummy2 = cms.ESSource("EmptyESSource",
0042                                   recordName = cms.string("CSCChannelMapperRecord"),
0043                                   firstValid = cms.vuint32(1),
0044                                   iovIsRunNotTime = cms.bool(True)
0045                               )
0046 
0047 process.CSCIndexerESProducer = cms.ESProducer("CSCIndexerESProducer", AlgoName = cms.string("CSCIndexerStartup") )
0048 process.CSCChannelMapperESProducer = cms.ESProducer("CSCChannelMapperESProducer", AlgoName = cms.string("CSCChannelMapperStartup") )
0049 
0050 
0051 # --- ACTIVATE LogTrace IN CSCRecHitD BUT NEED TO COMPILE IT WITH scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0052 # LogTrace output goes to cout; all other output to "junk.log"
0053 
0054 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0055 # module label is something like "muonCSCDigis"...
0056 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0057 process.MessageLogger.cerr.enable = False
0058 process.MessageLogger.files.junk = dict()
0059 process.MessageLogger.cout = cms.untracked.PSet(
0060     enable    = cms.untracked.bool(True),
0061     threshold = cms.untracked.string("DEBUG"),
0062     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0063     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0064     CSCRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0065 ##    , CSCRecoConditions = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0066 )
0067 
0068 #process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments * process.cscValidation)
0069 
0070 # Path and EndPath def
0071 process.unpack = cms.Path(process.muonCSCDigis)
0072 process.reco = cms.Path(process.csc2DRecHits)
0073 process.endjob = cms.EndPath(process.endOfProcess)
0074 
0075 # Schedule definition
0076 process.schedule = cms.Schedule(process.unpack, process.reco, process.endjob)
0077